[Webkit-unassigned] [Bug 153121] New: window.location.replace with invalid urls should throw

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jan 15 04:15:35 PST 2016


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

            Bug ID: 153121
           Summary: window.location.replace with invalid urls should throw
    Classification: Unclassified
           Product: WebKit
           Version: Safari 9
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: History
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: kileras at gmail.com

Steps to reproduce
Go to any site
Open the console
Type window.location.replace('//')

What should happen?
As per spec https://www.w3.org/TR/html5/browsers.html#dom-location-replace it should throw an exception

What actually happen?
It shows a error html page saying "Safari can't open the page "https:whatever/" because the page's address is invalid" and doesn't throw at all.

-- 
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/20160115/92bf9253/attachment.html>


More information about the webkit-unassigned mailing list