Implement icon change notification dump for Chromium's test shell.
https://bugs.webkit.org/show_bug.cgi?id=112614

This was previously implemented for some other platforms in r58111
and r116547.

In r122806, fast/dom/icon-url-property.html stopped using it, but
it is useful for tests, so I plan to re-add it to that test again.

Reviewed by Jochen Eisinger.

* DumpRenderTree/chromium/TestRunner/public/WebTestProxy.h:
(WebTestRunner::WebTestProxy::didChangeIcon): Add handler so that
 icon change notifications from WebKit may be logged in test output.
* DumpRenderTree/chromium/TestRunner/src/TestRunner.cpp:
(WebTestRunner::TestRunner::TestRunner): Expose dumpIconChanges.
(WebTestRunner::TestRunner::reset): Clear the new dump variable.
(WebTestRunner::TestRunner::shouldDumpIconChanges): Expose the dump vairable.
(WebTestRunner):
(WebTestRunner::TestRunner::dumpIconChanges): Implement the test method.
* DumpRenderTree/chromium/TestRunner/src/TestRunner.h:
(TestRunner):
* DumpRenderTree/chromium/TestRunner/src/WebTestProxy.cpp:
(WebTestRunner::WebTestProxyBase::didChangeIcon):
(WebTestRunner):
* DumpRenderTree/chromium/WebViewHost.cpp:
(WebViewHost::didChangeIcon): Add the output about changing the icon.
* DumpRenderTree/chromium/WebViewHost.h:
(WebViewHost):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146139 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Text track cues do not update sizes when entering or exiting full screen.
https://bugs.webkit.org/show_bug.cgi?id=112472

Reviewed by Eric Carlson.

The style properties of the TextCueBoxes were not being updated after the size of the video bounds changed.
Because getDisplayTree() will not do it when the cue itself has not changed, explicitly call videoSizeDidChange()
from updateSizes().

* html/shadow/MediaControlElements.cpp:
(WebCore::MediaControlTextTrackContainerElement::updateSizes): call videoSizeDidChange() on every active cue.
* html/track/TextTrackCue.h:
(WebCore::TextTrackCue::hasDisplayTree): returns whether or not the cue has created a display tree without side effects.
(WebCore::TextTrackCue::videoSizeDidChange): Overridable empty method.
* html/track/TextTrackCueGeneric.cpp:
(WebCore::TextTrackCueGeneric::videoSizeDidChange): Update the CSS height attribute of the cue box using the new video size.
* html/track/TextTrackCueGeneric.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146140 268f45cc-cd09-0410-ab3c-d52691b4dbfc
CSP 1.1: Schemeless source expressions match HTTPS resources on HTTP sites.
https://bugs.webkit.org/show_bug.cgi?id=112573

Reviewed by Adam Barth.

Source/WebCore:

Currently, the directive 'script-src example.com' would match only
scripts served from 'http://example.com' when served on an HTTP site,
and only scripts served from 'https://example.com' when served on an
HTTPS site. This patch changes the matching behavior for ports that
have enabled CSP_NEXT in order to encourage use of HTTPS resources by
allow schemeless source expressions to match HTTPS origins when on
HTTP sites.

Thread: http://lists.w3.org/Archives/Public/public-webappsec/2013Mar/0013.html
Spec change: https://dvcs.w3.org/hg/content-security-policy/rev/a7dc8820946e

Test: http/tests/security/contentSecurityPolicy/source-list-parsing-10.html

* page/ContentSecurityPolicy.cpp:
(WebCore::CSPSource::CSPSource):
    Pass the current policy into CSPSource so that we can check the
    protected resource's scheme inside schemeMatches, rather than
    overwriting the source expression's scheme before creating the
    CSPSource.
(WebCore::CSPSource::schemeMatches):
    If CSP_NEXT is enabled, ensure that HTTPS resources match the
    HTTP scheme when loaded on HTTP pages with schemaless source
    expressions.
(WebCore::CSPSource::portMatches):
    Check the port against the URL's scheme: if m_scheme isn't
    empty, this will match it. If m_scheme is empty, we can't
    do a strict match against it, nor can we do a strict match
    against the protected resource's port. Checking the URL's
    port against the default port for its scheme solves this
    problem elegantly.
(WebCore::CSPSourceList::parse):
(WebCore::CSPSourceList::addSourceSelf):
    Pass in the policy when creating a CSPSource object.

LayoutTests:

* http/tests/security/contentSecurityPolicy/resources/multiple-iframe-test.js:
    Add support for full URLs in this type of test, which enables loading
    scripts from hosts other than the current page's.
* http/tests/security/contentSecurityPolicy/source-list-parsing-01-expected.txt:
* http/tests/security/contentSecurityPolicy/source-list-parsing-01.html:
    Drops a test from the first parsing group, as it's better grouped
    with the new test added below.
* http/tests/security/contentSecurityPolicy/source-list-parsing-10-expected.txt: Added.
* http/tests/security/contentSecurityPolicy/source-list-parsing-10.html: Copied from LayoutTests/http/tests/security/contentSecurityPolicy/source-list-parsing-01.html.
    Adds a new test that checks HTTPS scripts loaded against a
    schemeless source expression.
* platform/chromium/http/tests/security/contentSecurityPolicy/source-list-parsing-10-expected.txt: Added.
* platform/gtk/http/tests/security/contentSecurityPolicy/source-list-parsing-10-expected.txt: Added.
    This patch has different behavior for ports that enable CSP_NEXT,
    currently Chromium and GTK.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146141 268f45cc-cd09-0410-ab3c-d52691b4dbfc