[Webkit-unassigned] [Bug 123983] New: window.Location is undefined

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Nov 7 03:10:00 PST 2013


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

           Summary: window.Location is undefined
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.8
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: tomvangoethem at gmail.com


The following script will throw a TypeError ('undefined' is not a valid argument for 'instanceof' (evaluating 'window.location instanceof window.Location')) because window.Location is undefined
<script>
if (window.location instanceof window.Location) {
  console.log('ok');
}
</script>

Other browsers I tested (Chrome 30.0/FireFox 24.0) do not have this issue.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list