Summary: document.origin returns the Unicode serialization of the document's origin. The returned value does not depend on what document.domain was set to.

Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=931884

Spec: http://dom.spec.whatwg.org/#dom-document-origin

Platform coverage: All of them.

Estimated release: 37

I don't plan to put this behind a pref. It's trivial to back out if need be.

Blink is considering implementing this too, and they're trying to find out whether we plan to implement. I think this is a useful feature and we should add it.

The only caveat is possible confusion due to the difference between document.origin and location.origin; I'm a bit torn about what to do about that, if anything, short of removing location.origin....

-Boris
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to