CSP doesn't work for a wide variety of cases
authorabarth@webkit.org <abarth@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 28 Sep 2011 18:06:54 +0000 (18:06 +0000)
committerabarth@webkit.org <abarth@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 28 Sep 2011 18:06:54 +0000 (18:06 +0000)
commit4951039eddadc9cc7c7bba061f653ba5b2898e29
treef2929df32cce60e571122105386eade296a243f3
parentdc6738d3cb82b105de16d24ad0d8ecf35d64a482
CSP doesn't work for a wide variety of cases
https://bugs.webkit.org/show_bug.cgi?id=68921

Reviewed by Darin Adler.

Patch suggested by Sam Weinig.  It's unclear to me how to test this
change because all our tests run on non-default ports, which is why we
have this bug in the first place.  Mozilla uses a proxy while testing
so they can test with URLs like http://example.com, but we don't have
such a facility.

* page/ContentSecurityPolicy.cpp:
(WebCore::CSPSource::portMatches):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96239 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/page/ContentSecurityPolicy.cpp