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

Issue 2340263003: Move Document.fullscreenElement to DocumentOrShadowRoot (Closed)

Created:
4 years, 3 months ago by kochi
Modified:
4 years, 1 month ago
CC:
asvitkine+watch_chromium.org, blink-reviews, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, rwlbuis, sof, webcomponents-bugzilla_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move Document.fullscreenElement to DocumentOrShadowRoot This change aims to prevent nodes in shadow tree from leaking via global API (document.fullscreenElement). The change is discussed at: https://github.com/w3c/webcomponents/issues/180 And spec is being updated at: https://github.com/whatwg/fullscreen/pull/54 BUG=622585 TBR=ericwilligers@chromium.org for tools/metrics/histograms/histograms.xml Committed: https://crrev.com/7025a706a1b4d382e5241905904ca803808000f9 Cr-Commit-Position: refs/heads/master@{#427610}

Patch Set 1 #

Patch Set 2 : DocumentOrShadowRoot #

Patch Set 3 : nits #

Patch Set 4 : Revert webkitFullscreenElement #

Patch Set 5 : Get back webkitFullscreenElement change #

Patch Set 6 : rebase #

Patch Set 7 : Move Mozilla version to DocumentOrShadowRoot #

Patch Set 8 : nits. #

Total comments: 12

Patch Set 9 : Update test. #

Total comments: 4

Patch Set 10 : rebase/reformat/wip #

Patch Set 11 : wip #

Patch Set 12 : Fix for comments #

Total comments: 6

Patch Set 13 : Ready for review, added v0 test #

Patch Set 14 : rebase #

Total comments: 4

Patch Set 15 : Fix for comments #

Patch Set 16 : rebase #

Total comments: 4

Patch Set 17 : rebase #

Patch Set 18 : Fix for hayato's comments. #

Patch Set 19 : Style nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+214 lines, -3 lines) Patch
A third_party/WebKit/LayoutTests/shadow-dom/fullscreen-element-in-shadow-complex.html View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +75 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/shadow-dom/fullscreen-element-in-shadow-simple.html View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +43 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/shadow-dom/v0/fullscreen-element-in-v0.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +44 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/DocumentFullscreen.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/DocumentFullscreen.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/DocumentOrShadowRoot.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/DocumentOrShadowRoot.idl View 1 2 3 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Fullscreen.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Fullscreen.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +37 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/UseCounter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 62 (43 generated)
kochi
PTAL
4 years, 3 months ago (2016-09-15 11:09:22 UTC) #12
foolip
High level I think it's actually important that we keep the prefixed and unprefixed API ...
4 years, 3 months ago (2016-09-15 16:07:36 UTC) #16
kochi
On 2016/09/15 16:07:36, foolip wrote: > High level I think it's actually important that we ...
4 years, 3 months ago (2016-09-20 11:12:57 UTC) #20
foolip
https://codereview.chromium.org/2340263003/diff/140001/third_party/WebKit/Source/core/dom/DocumentFullscreen.idl File third_party/WebKit/Source/core/dom/DocumentFullscreen.idl (right): https://codereview.chromium.org/2340263003/diff/140001/third_party/WebKit/Source/core/dom/DocumentFullscreen.idl#newcode32 third_party/WebKit/Source/core/dom/DocumentFullscreen.idl:32: [MeasureAs=PrefixedDocumentIsFullscreen] readonly attribute boolean webkitIsFullScreen; If you change DocumentOrShadowRoot.cpp ...
4 years, 3 months ago (2016-09-20 13:44:22 UTC) #21
kochi
Sorry for not updating for a while. Could you take a look? https://codereview.chromium.org/2340263003/diff/140001/third_party/WebKit/Source/core/dom/DocumentFullscreen.idl File third_party/WebKit/Source/core/dom/DocumentFullscreen.idl ...
4 years, 2 months ago (2016-10-07 14:26:42 UTC) #28
foolip
https://codereview.chromium.org/2340263003/diff/140001/third_party/WebKit/Source/core/dom/DocumentOrShadowRoot.idl File third_party/WebKit/Source/core/dom/DocumentOrShadowRoot.idl (right): https://codereview.chromium.org/2340263003/diff/140001/third_party/WebKit/Source/core/dom/DocumentOrShadowRoot.idl#newcode24 third_party/WebKit/Source/core/dom/DocumentOrShadowRoot.idl:24: // Fullscreen API On 2016/10/07 14:26:42, kochi_ooo_until_oct_14 wrote: > ...
4 years, 2 months ago (2016-10-10 12:13:41 UTC) #29
kochi
Sorry for the long turnaround, I'm back from ooo. Could you review this? foolip@, for ...
4 years, 2 months ago (2016-10-17 11:14:27 UTC) #33
kochi
foolip@, could you review? Now I can spend more cycles on this CL so it ...
4 years, 1 month ago (2016-10-24 15:07:19 UTC) #34
foolip
On 2016/10/24 15:07:19, kochi wrote: > foolip@, could you review? > > Now I can ...
4 years, 1 month ago (2016-10-24 15:15:58 UTC) #35
foolip
On 2016/10/17 11:14:27, kochi wrote: > Sorry for the long turnaround, I'm back from ooo. ...
4 years, 1 month ago (2016-10-24 15:29:42 UTC) #36
foolip
lgtm % nits https://codereview.chromium.org/2340263003/diff/320001/third_party/WebKit/Source/core/dom/DocumentFullscreen.h File third_party/WebKit/Source/core/dom/DocumentFullscreen.h (right): https://codereview.chromium.org/2340263003/diff/320001/third_party/WebKit/Source/core/dom/DocumentFullscreen.h#newcode42 third_party/WebKit/Source/core/dom/DocumentFullscreen.h:42: static Element* webkitFullscreenElement(Document&); Can you keep ...
4 years, 1 month ago (2016-10-24 15:30:13 UTC) #37
kochi
Thanks for the review! The updated patch uploaded. hayato@, could you also take a look? ...
4 years, 1 month ago (2016-10-25 10:08:04 UTC) #40
hayato
lgtm https://codereview.chromium.org/2340263003/diff/360001/third_party/WebKit/Source/core/dom/Fullscreen.cpp File third_party/WebKit/Source/core/dom/Fullscreen.cpp (right): https://codereview.chromium.org/2340263003/diff/360001/third_party/WebKit/Source/core/dom/Fullscreen.cpp#newcode230 third_party/WebKit/Source/core/dom/Fullscreen.cpp:230: } else { else if https://codereview.chromium.org/2340263003/diff/360001/third_party/WebKit/Source/core/dom/Fullscreen.cpp#newcode231 third_party/WebKit/Source/core/dom/Fullscreen.cpp:231: if ...
4 years, 1 month ago (2016-10-26 03:15:56 UTC) #47
kochi
Thanks for the review! https://codereview.chromium.org/2340263003/diff/360001/third_party/WebKit/Source/core/dom/Fullscreen.cpp File third_party/WebKit/Source/core/dom/Fullscreen.cpp (right): https://codereview.chromium.org/2340263003/diff/360001/third_party/WebKit/Source/core/dom/Fullscreen.cpp#newcode230 third_party/WebKit/Source/core/dom/Fullscreen.cpp:230: } else { On 2016/10/26 ...
4 years, 1 month ago (2016-10-26 04:52:12 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2340263003/400001
4 years, 1 month ago (2016-10-26 04:53:35 UTC) #53
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/289617)
4 years, 1 month ago (2016-10-26 05:02:33 UTC) #55
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2340263003/420001
4 years, 1 month ago (2016-10-26 05:05:49 UTC) #58
commit-bot: I haz the power
Committed patchset #19 (id:420001)
4 years, 1 month ago (2016-10-26 06:33:30 UTC) #60
commit-bot: I haz the power
4 years, 1 month ago (2016-10-26 06:35:23 UTC) #62
Message was sent while issue was closed.
Patchset 19 (id:??) landed as
https://crrev.com/7025a706a1b4d382e5241905904ca803808000f9
Cr-Commit-Position: refs/heads/master@{#427610}

Powered by Google App Engine
This is Rietveld 408576698