Summary: | window.Location is undefined | ||
---|---|---|---|
Product: | WebKit | Reporter: | Tom Van Goethem <tomvangoethem> |
Component: | DOM | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED WORKSFORME | ||
Severity: | Normal | CC: | ap, mathias |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Mac | ||
OS: | OS X 10.8 |
Description
Tom Van Goethem
2013-11-07 03:08:47 PST
Minimal test case: data:text/html,<script>var%20result%20=%20'FAIL';%20try%20{%20if%20(window.location%20instanceof%20window.Location)%20{%20result%20=%20'PASS';%20}%20}%20catch(e)%20{}%20document.write(result);</script> FWIW, I get PASS on WebKit nightly r158804. > Minimal test case:
>
> data:text/html,<script>var%20result%20=%20'FAIL';%20try%20{%20if%20(window.location%20instanceof%20window.Location)%20{%20result%20=%20'PASS';%20}%20}%20catch(e)%20{}%20document.write(result);</script>
>
> FWIW, I get PASS on WebKit nightly r158804.
This returns FAIL on Safari 6.0.5 (8536.30.1), Mac OS X 10.8.5 and Safari 6.0 (8536.25), iOS 6.1.3
window.Location has been supported for a long time. There might have been some issue with instanceof, but Safari 6.0.5 is ancient history, and so is iOS 6. This test works as expected in Safari 7. |