[Webkit-unassigned] [Bug 161311] New: Relative URLs not resolved in the correct iframe when triggering click event cross-frame

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Aug 29 08:36:54 PDT 2016


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

            Bug ID: 161311
           Summary: Relative URLs not resolved in the correct iframe when
                    triggering click event cross-frame
    Classification: Unclassified
           Product: WebKit
           Version: Other
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Frames
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: zenojevski at gmail.com

Created attachment 287268
  --> https://bugs.webkit.org/attachment.cgi?id=287268&action=review
Test case

Version 10.0 (12602.1.50.0.2)
iOS and macOS

When programmatically triggering a click event on a button which is inside an iframe,
relative URLS are not resolved according to that frame, but to the frame from where the event
was sent.

Included is a testcase which demonstrates the bug. Open the top.html frame, and try to
click the outside button (which clicks the inside button) and the inside button.

Look at the console to see the issue:

> Failed to load resource: the server responded with a status of 404 (File not found) - http://localhost:8080/Testcase/other.html

Instead it should resolve the URL as:

> http://localhost:8080/Testcase/sub/other.html

Which is relative to the frame containing the button.

URLs should be resolved relative to the frame where the clicked element resides.

-- 
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/20160829/1c86c385/attachment.html>


More information about the webkit-unassigned mailing list