Bug 49000 - Location is lacking a constructor in DOMWindow.idl
Summary: Location is lacking a constructor in DOMWindow.idl
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-04 08:05 PDT by Derk-Jan Hartman
Modified: 2015-07-01 01:26 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Derk-Jan Hartman 2010-11-04 08:05:54 PDT
https://developer.mozilla.org/en/DOM/window.location
"Returns a Location object, which contains information about the URL of the document and provides methods for changing that URL. You can also assign to this property to load another URL."

When using the inspector I see that I actually do get a Location object returned from window.location. However alert(window.location instanceof Location) throws: ReferenceError: Can't find variable: Location

Occording to Wildfox, this is because there is no constructor for Location.
Comment 1 Derk-Jan Hartman 2013-08-28 02:55:03 PDT
I can still reproduce this in Version 6.0.5 (8536.30.1)
Comment 2 Derk-Jan Hartman 2015-06-30 13:44:34 PDT
This is fixed in at least Safari 9 seed 1, possibly earlier.
Comment 3 Alexey Proskuryakov 2015-07-01 01:26:57 PDT
Thank you for following up! This is indeed fixed in shipping Safari versions already, not sure when exactly.