Title: [198334] trunk/Source/WebCore
Revision
198334
Author
[email protected]
Date
2016-03-17 09:43:41 -0700 (Thu, 17 Mar 2016)

Log Message

Unreviewed, rolling out r198201.
https://bugs.webkit.org/show_bug.cgi?id=155585

That was not the proper solution (Requested by KaL on
#webkit).

Reverted changeset:

"REGRESSION (r197724): [GTK] Web Inspector: Images being
blocked by CSP 2.0"
https://bugs.webkit.org/show_bug.cgi?id=155432
http://trac.webkit.org/changeset/198201

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (198333 => 198334)


--- trunk/Source/WebCore/ChangeLog	2016-03-17 16:38:56 UTC (rev 198333)
+++ trunk/Source/WebCore/ChangeLog	2016-03-17 16:43:41 UTC (rev 198334)
@@ -1,3 +1,18 @@
+2016-03-17  Commit Queue  <[email protected]>
+
+        Unreviewed, rolling out r198201.
+        https://bugs.webkit.org/show_bug.cgi?id=155585
+
+        That was not the proper solution (Requested by KaL on
+        #webkit).
+
+        Reverted changeset:
+
+        "REGRESSION (r197724): [GTK] Web Inspector: Images being
+        blocked by CSP 2.0"
+        https://bugs.webkit.org/show_bug.cgi?id=155432
+        http://trac.webkit.org/changeset/198201
+
 2016-03-16  Chris Fleizach  <[email protected]>
 
         AX: Implement AutoFill Available attribute for a text field

Modified: trunk/Source/WebCore/page/csp/ContentSecurityPolicySourceList.cpp (198333 => 198334)


--- trunk/Source/WebCore/page/csp/ContentSecurityPolicySourceList.cpp	2016-03-17 16:38:56 UTC (rev 198333)
+++ trunk/Source/WebCore/page/csp/ContentSecurityPolicySourceList.cpp	2016-03-17 16:43:41 UTC (rev 198334)
@@ -104,17 +104,10 @@
     // FIXME: We should not hardcode the directive names. We should make use of the constants in ContentSecurityPolicyDirectiveList.cpp.
     // See <https://bugs.webkit.org/show_bug.cgi?id=155133>.
     bool isAllowed = url.protocolIsInHTTPFamily();
-    if (equalLettersIgnoringASCIICase(m_directiveName, "img-src")) {
+    if (equalLettersIgnoringASCIICase(m_directiveName, "img-src"))
         isAllowed |= url.protocolIsData();
-#if PLATFORM(GTK)
-        isAllowed |= url.protocolIs("resource");
-#endif
-    } else if (equalLettersIgnoringASCIICase(m_directiveName, "media-src")) {
+    else if (equalLettersIgnoringASCIICase(m_directiveName, "media-src"))
         isAllowed |= url.protocolIsData() || url.protocolIsBlob();
-#if PLATFORM(GTK)
-        isAllowed |= url.protocolIs("resource");
-#endif
-    }
     return isAllowed;
 }
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to