Contact emails
Spec
https://dom.spec.whatwg.org/#dom-document-originPatch
https://codereview.chromium.org/758913002/Summary
This tiny feature adds an 'origin' accessor to the Document object, which can be used to read the document's actual origin, rather than the origin of it's location (which is available via 'document.location.origin').
Motivation
Right now, developers have no good mechanism to determine what a document's _effective_ origin is. Consider '<iframe sandbox>', for instance, which changes the document's origin, while leaving it's location untouched.
This gap makes it a bit more difficult to write tests for some features. See http://lists.w3.org/Archives/Public/public-webappsec/2014Nov/0299.html for an example where this has been annoying.
Compatibility Risk
Low. Firefox intends to implement as well https://bugzilla.mozilla.org/show_bug.cgi?id=931884.
Ongoing technical constraints
None.
Will this feature be supported on all sixfive Blink platforms (Windows, Mac, Linux, Chrome OS, and Android, and Android WebView)?
Yes.
OWP launch tracking bug?
https://crbug.com/436377Link to entry on the feature dashboard
Small change, fits under general DOM features.
Requesting approval to ship?
Yes
>> > email to blink-dev+unsubscribe@chromium.org.
https://bugzilla.mozilla.org/show_bug.cgi?id=931884#c1 is a patch, so it's a bit more than a bug report. That said, I potentially overstated Mozilla's position, thanks for calling me on it. Perhaps Anne or Boris (CCd) can expound on their colleagues' opinions in a more authoritative manner?
I don't think the revision markedly changes the state of the world. The feature remains tiny and useful, and I haven't seen any objections to its implementation from other vendors. I'd still like to implement and ship it. :)
-mike
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
-Boris
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
-Boris