[Webkit-unassigned] [Bug 145692] New: Scripts with protocol-relative URLs fail to load when nested in two or more friendly iframes

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jun 5 05:34:29 PDT 2015


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

            Bug ID: 145692
           Summary: Scripts with protocol-relative URLs fail to load when
                    nested in two or more friendly iframes
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: Macintosh
                OS: Mac OS X 10.10
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: x at jx0.co

See the bug report for the same issue in Chrome, presumably in shared WebKit code: https://code.google.com/p/chromium/issues/detail?id=496814

Example URL:
http://viajon.net/test/protocol_relative_test.html

Steps to reproduce the problem:
1. Click "Load Protocol-Relative Script" button to see the issue.
2. You can click the http or https (need to accept self-signed cert first) versions of the button to see the script loading working.

What is the expected behavior?
The script should load and run properly.

What went wrong?
When a script tag is loaded with a protocol-relative URL inside of two friendly iframes, the load fails. Specifying an explicit scheme causes the load to succeed. For example:

<iframe id="outer">
  <iframe id="inner">
    <script src="//domain.com/script-to-load.js"></script>
  </iframe>
</iframe>

The script-to-load.js file is never downloaded and run.

-- 
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/20150605/d2b6671a/attachment-0001.html>


More information about the webkit-unassigned mailing list