Bug 81555
| Summary: | location.origin should be standardized or removed | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Boris Zbarsky <bzbarsky> |
| Component: | DOM | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED CONFIGURATION CHANGED | ||
| Severity: | Normal | CC: | abarth, ahmad.saleem792, ap, arv, bfulgham, gsnedders, ian, rniwa, syoichi |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Boris Zbarsky
This property doesn't seem to be present in the spec, and none of Gecko, Trident, Presto implement it....
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Adam Barth
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).
Boris Zbarsky
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...
Ian 'Hixie' Hickson
It will eventually, I just haven't updated HTML yet because the URL spec isn't solid enough yet.
Alexey Proskuryakov
Looks like this bug should be closed at this point - it does not make sense to track HTML standard work in WebKit bugzilla.
Ahmad Saleem
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!
Ryosuke Niwa
Yeah, this has been standardized awhile ago.