Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(256)

Issue 758913002: Implement the 'document.origin' accessor. (Closed)

Created:
6 years ago by Mike West
Modified:
6 years ago
CC:
arv+blink, blink-reviews, blink-reviews-dom_chromium.org, Inactive, dglazkov+blink, eae+blinkwatch, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Implement the 'document.origin' accessor. Recently added to DOM at https://dom.spec.whatwg.org/#dom-document-origin. Firefox is working on an implementation in https://bugzilla.mozilla.org/show_bug.cgi?id=931884. BUG=436377 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=186330

Patch Set 1 #

Total comments: 2

Patch Set 2 : Test. #

Total comments: 6

Patch Set 3 : Feedback. #

Total comments: 3

Patch Set 4 : Moar assertions. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+192 lines, -0 lines) Patch
A LayoutTests/http/tests/security/document-origin.html View 1 2 1 chunk +156 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/security/document-origin-domain.html View 1 2 3 1 chunk +23 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/security/resources/postmessage-document-origin.html View 1 chunk +10 lines, -0 lines 0 comments Download
M Source/core/dom/Document.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/dom/Document.idl View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 21 (4 generated)
Mike West
Hey Jochen, WDYT? I think this is too small to go through the intent process, ...
6 years ago (2014-11-25 09:57:14 UTC) #2
sof
On 2014/11/25 09:57:14, Mike West wrote: > Hey Jochen, WDYT? I think this is too ...
6 years ago (2014-11-25 10:46:41 UTC) #3
Mike West
On 2014/11/25 10:46:41, sof wrote: > On 2014/11/25 09:57:14, Mike West wrote: > > Hey ...
6 years ago (2014-11-25 10:53:05 UTC) #4
mlamouri (slow - plz ping)
https://codereview.chromium.org/758913002/diff/1/Source/core/dom/Document.idl File Source/core/dom/Document.idl (right): https://codereview.chromium.org/758913002/diff/1/Source/core/dom/Document.idl#newcode60 Source/core/dom/Document.idl:60: readonly attribute DOMString? origin; Mozilla patch and DOM spec ...
6 years ago (2014-11-25 11:02:13 UTC) #6
Mike West
Thanks, Mounir! https://codereview.chromium.org/758913002/diff/1/Source/core/dom/Document.idl File Source/core/dom/Document.idl (right): https://codereview.chromium.org/758913002/diff/1/Source/core/dom/Document.idl#newcode60 Source/core/dom/Document.idl:60: readonly attribute DOMString? origin; On 2014/11/25 11:02:13, ...
6 years ago (2014-11-25 11:26:16 UTC) #7
mlamouri (slow - plz ping)
On 2014/11/25 11:26:16, Mike West wrote: > Thanks, Mounir! > > https://codereview.chromium.org/758913002/diff/1/Source/core/dom/Document.idl > File Source/core/dom/Document.idl ...
6 years ago (2014-11-25 13:51:59 UTC) #8
Mike West
On 2014/11/25 13:51:59, Mounir Lamouri wrote: > On 2014/11/25 11:26:16, Mike West wrote: > > ...
6 years ago (2014-11-25 13:58:41 UTC) #9
mlamouri (slow - plz ping)
lgtm https://codereview.chromium.org/758913002/diff/20001/Source/core/dom/Document.h File Source/core/dom/Document.h (right): https://codereview.chromium.org/758913002/diff/20001/Source/core/dom/Document.h#newcode352 Source/core/dom/Document.h:352: String origin() const { return securityOrigin()->toString(); } nit: ...
6 years ago (2014-11-25 14:37:50 UTC) #10
jochen (gone - plz use gerrit)
https://codereview.chromium.org/758913002/diff/20001/LayoutTests/http/tests/security/document-origin.html File LayoutTests/http/tests/security/document-origin.html (right): https://codereview.chromium.org/758913002/diff/20001/LayoutTests/http/tests/security/document-origin.html#newcode6 LayoutTests/http/tests/security/document-origin.html:6: <iframe id="srcdoc" srcdoc="<p>yay</p>"></iframe> where do you check the origin ...
6 years ago (2014-11-25 15:53:50 UTC) #11
Mike West
https://codereview.chromium.org/758913002/diff/20001/LayoutTests/http/tests/security/document-origin.html File LayoutTests/http/tests/security/document-origin.html (right): https://codereview.chromium.org/758913002/diff/20001/LayoutTests/http/tests/security/document-origin.html#newcode6 LayoutTests/http/tests/security/document-origin.html:6: <iframe id="srcdoc" srcdoc="<p>yay</p>"></iframe> On 2014/11/25 15:53:49, jochen (slow) wrote: ...
6 years ago (2014-11-25 15:56:35 UTC) #12
Mike West
On 2014/11/25 15:56:35, Mike West wrote: > https://codereview.chromium.org/758913002/diff/20001/LayoutTests/http/tests/security/document-origin.html > File LayoutTests/http/tests/security/document-origin.html (right): > > https://codereview.chromium.org/758913002/diff/20001/LayoutTests/http/tests/security/document-origin.html#newcode6 ...
6 years ago (2014-11-25 17:36:48 UTC) #13
jochen (gone - plz use gerrit)
On 2014/11/25 at 17:36:48, mkwst wrote: > On 2014/11/25 15:56:35, Mike West wrote: > > ...
6 years ago (2014-11-26 14:01:02 UTC) #14
philipj_slow
https://codereview.chromium.org/758913002/diff/40001/LayoutTests/http/tests/security/document-origin.html File LayoutTests/http/tests/security/document-origin.html (right): https://codereview.chromium.org/758913002/diff/40001/LayoutTests/http/tests/security/document-origin.html#newcode20 LayoutTests/http/tests/security/document-origin.html:20: (function() { You can get rid of the function ...
6 years ago (2014-11-28 09:07:31 UTC) #16
Mike West
https://codereview.chromium.org/758913002/diff/40001/LayoutTests/http/tests/security/document-origin.html File LayoutTests/http/tests/security/document-origin.html (right): https://codereview.chromium.org/758913002/diff/40001/LayoutTests/http/tests/security/document-origin.html#newcode20 LayoutTests/http/tests/security/document-origin.html:20: (function() { On 2014/11/28 09:07:31, philipj wrote: > You ...
6 years ago (2014-11-28 09:10:55 UTC) #17
philipj_slow
https://codereview.chromium.org/758913002/diff/40001/LayoutTests/http/tests/security/document-origin-domain.html File LayoutTests/http/tests/security/document-origin-domain.html (right): https://codereview.chromium.org/758913002/diff/40001/LayoutTests/http/tests/security/document-origin-domain.html#newcode17 LayoutTests/http/tests/security/document-origin-domain.html:17: document.domain = "example.test"; Can you also assert the value ...
6 years ago (2014-11-28 09:12:46 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/758913002/60001
6 years ago (2014-12-02 19:50:14 UTC) #20
commit-bot: I haz the power
6 years ago (2014-12-02 19:56:37 UTC) #21
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=186330

Powered by Google App Engine
This is Rietveld 408576698