Bug 49000

Summary: Location is lacking a constructor in DOMWindow.idl
Product: WebKit Reporter: Derk-Jan Hartman <hartman.wiki>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WORKSFORME    
Severity: Normal CC: ap
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   

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.