Bug 81555 - location.origin should be standardized or removed
Summary: location.origin should be standardized or removed
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-19 13:52 PDT by Boris Zbarsky
Modified: 2022-08-09 12:20 PDT (History)
9 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Boris Zbarsky 2012-03-19 13:52:16 PDT
This property doesn't seem to be present in the spec, and none of Gecko, Trident, Presto implement it....
Comment 1 Adam Barth 2012-03-19 15:58:46 PDT
Yeah, the spec is here, but I haven't done a good job of following through and driving this spec through the standards process:

http://dvcs.w3.org/hg/url/raw-file/tip/Overview.html

IMHO, origin is a useful property (and easy to implement).
Comment 2 Boris Zbarsky 2012-03-19 19:29:37 PDT
That's fine (and I agree that if defined clearly this is not hard to implement), but HTML5 isn't even using that URL spec for Location...
Comment 3 Ian 'Hixie' Hickson 2012-03-20 17:00:12 PDT
It will eventually, I just haven't updated HTML yet because the URL spec isn't solid enough yet.
Comment 4 Alexey Proskuryakov 2012-03-20 17:04:14 PDT
Looks like this bug should be closed at this point - it does not make sense to track HTML standard work in WebKit bugzilla.
Comment 5 Ahmad Saleem 2022-08-09 12:18:45 PDT
It seems that Webkit now support it:

https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_loc_origin

Also MDN show that Webkit / Safari support it since Safari 5.1:

https://developer.mozilla.org/en-US/docs/Web/API/Location/origin

I am going to mark this as "RESOLVED CONFIGURATION CHANGED", I tried to find bug about implementation from Webkit Github but I couldn't. If someone can find implementation bug, please mark it as "DUPLICATE of BugID". Thanks!
Comment 6 Ryosuke Niwa 2022-08-09 12:20:56 PDT
Yeah, this has been standardized awhile ago.