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

Issue 458223003: Remove the fullscreen element stack exemption for webkitRequestFullScreen() (Closed)

Created:
6 years, 4 months ago by philipj_slow
Modified:
6 years, 4 months ago
Reviewers:
falken
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, sof, eae+blinkwatch, rwlbuis
Project:
blink
Visibility:
Public.

Description

Remove the fullscreen element stack exemption for webkitRequestFullScreen() This exemption allowed the fullscreen element stack to get into a state not otherwise possible, namely with elements in any order as opposed to in tree order. It also seemed possible to enter fullscreen in a sibling iframe, leading to a (cross-document) set of fullscreen elements forming a tree instead of a simple chain, a case without any test coverage. Removing the exemption means that a webkitfullscreenerror event will be fired if one is already in fullscreen and requests fullscreen for an element other than a descendant of the current fullscreen element. The use counter was intended to tell whether any content depends on this or not, but data will not be available for a long time yet. In order to be affected one needs to, in fullscreen, have a currently visible button request fullscreen for an element currently not visible, which seems far-fetched, so site compat is probably not a problem. The use counter for webkitRequestFullScreen() provides an upper bound: http://www.chromestatus.com/metrics/feature/timeline/popularity/177 BUG=383813 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=180243

Patch Set 1 #

Patch Set 2 : tweak test #

Patch Set 3 : spec typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -50 lines) Patch
M LayoutTests/fullscreen/full-screen-css.html View 1 chunk +16 lines, -17 lines 0 comments Download
M LayoutTests/fullscreen/full-screen-css-expected.txt View 1 chunk +5 lines, -5 lines 0 comments Download
M LayoutTests/fullscreen/full-screen-twice.html View 1 1 chunk +3 lines, -17 lines 0 comments Download
M LayoutTests/fullscreen/full-screen-twice-expected.txt View 1 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/dom/FullscreenElementStack.cpp View 1 2 1 chunk +4 lines, -8 lines 0 comments Download
M Source/core/frame/UseCounter.h View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
philipj_slow
PTAL. There's complexity here I'd rather not have to think about, so I think we ...
6 years, 4 months ago (2014-08-12 21:35:18 UTC) #1
falken
looks good Is it worth adding a test case for erroring when you try to ...
6 years, 4 months ago (2014-08-13 04:39:50 UTC) #2
philipj_slow
As it turns out we already had good coverage with full-screen-twice-newapi.html, so rather than changing ...
6 years, 4 months ago (2014-08-13 08:40:41 UTC) #3
philipj_slow
tweak test
6 years, 4 months ago (2014-08-13 08:46:52 UTC) #4
philipj_slow
spec typo
6 years, 4 months ago (2014-08-13 10:58:04 UTC) #5
falken
lgtm
6 years, 4 months ago (2014-08-14 02:15:30 UTC) #6
philipj_slow
The CQ bit was checked by philipj@opera.com
6 years, 4 months ago (2014-08-14 05:20:45 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/philipj@opera.com/458223003/40001
6 years, 4 months ago (2014-08-14 05:21:35 UTC) #8
commit-bot: I haz the power
6 years, 4 months ago (2014-08-14 06:24:29 UTC) #9
Message was sent while issue was closed.
Committed patchset #3 (40001) as 180243

Powered by Google App Engine
This is Rietveld 408576698