[Webkit-unassigned] [Bug 162387] New: REGRESSION(r206165): [GTK] Web inspector broken since r206165

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 22 06:31:23 PDT 2016


https://bugs.webkit.org/show_bug.cgi?id=162387

            Bug ID: 162387
           Summary: REGRESSION(r206165): [GTK] Web inspector broken since
                    r206165
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Local Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Keywords: Gtk
          Severity: Normal
          Priority: P2
         Component: WebKit Gtk
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: cgarcia at igalia.com
                CC: achristensen at apple.com, bugs-noreply at webkitgtk.org,
                    sam at webkit.org

Web inspector no longer works after r206165 because it fails to load all resources with messages like:

CONSOLE ERROR Refused to load resource:///org/webkitgtk/inspector/UserInterface/External/CodeMirror/codemirror.css because it does not appear in the style-src directive of the Content Security Policy.
CONSOLE ERROR Refused to load resource:///org/webkitgtk/inspector/UserInterface/External/CodeMirror/codemirror.js because it does not appear in the script-src directive of the Content Security Policy.

Adding resource: to style-src or script-src doesn't work, resources are indeed loaded, but then it fails with:

resource:///org/webkitgtk/inspector/UserInterface/Base/Setting.js:61:44: CONSOLE ERROR SecurityError (DOM Exception 18): The operation is insecure.
resource:///org/webkitgtk/inspector/UserInterface/Main.html:1:21: CONSOLE ERROR ReferenceError: Can't find variable: InspectorFrontendAPI

Because since r206165 resource scheme is considered as unique origin. Simply including resource in the list of schemes checked in shouldTreatAsUniqueOrigin() would fix it, but I'm not sure it's really correct, because that's supposed to be the list of special schemes according to the spec (https://url.spec.whatwg.org/#origin).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160922/4b7beaf8/attachment.html>


More information about the webkit-unassigned mailing list