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

Issue 399703002: Find the current fullscreen video element rather than the one on top of stack (Closed)

Created:
6 years, 5 months ago by qinmin
Modified:
6 years, 5 months ago
CC:
abarth-chromium, blink-reviews, blink-reviews-rendering, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr., rune+blink, zoltan1
Project:
blink
Visibility:
Public.

Description

Find the current fullscreen video element rather than the one on top of stack When requestFullscren() is called, we don't know when willEnterFullscreen() will get called. For android webview, requestFullscreen() might even result in no calls to willenterfullscreen() if webapp doesn't support fullscreen video. So before willEnterfullscreen is called, we should not use the provisional video element on top of the stack to modify the layer tree. Instead, we should wait for the provisional element to become current. Therefore, we should call currentFullScreenElementFrom() on the fullscreen document. BUG=389496 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=178714

Patch Set 1 #

Patch Set 2 : layout test #

Total comments: 2

Patch Set 3 : nits #

Patch Set 4 : fix test expectations #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -1 line) Patch
A LayoutTests/fullscreen/video-fail-to-enter-full-screen.html View 1 2 1 chunk +16 lines, -0 lines 0 comments Download
A LayoutTests/fullscreen/video-fail-to-enter-full-screen-expected.txt View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
A LayoutTests/platform/linux/virtual/android/fullscreen/video-fail-to-enter-full-screen-expected.png View 1 2 3 Binary file 0 comments Download
M Source/core/rendering/compositing/RenderLayerCompositor.cpp View 1 2 3 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 19 (0 generated)
qinmin
PTAL
6 years, 5 months ago (2014-07-16 18:54:26 UTC) #1
esprehn
This doesn't make sense to me, how can the element end up full screen even ...
6 years, 5 months ago (2014-07-16 19:29:09 UTC) #2
qinmin
On 2014/07/16 19:29:09, esprehn wrote: > This doesn't make sense to me, how can the ...
6 years, 5 months ago (2014-07-16 19:46:26 UTC) #3
trchen
On 2014/07/16 19:29:09, esprehn wrote: > This doesn't make sense to me, how can the ...
6 years, 5 months ago (2014-07-17 00:34:15 UTC) #4
esprehn
This needs a test then, and also please wrap your change description somewhere sensible like ...
6 years, 5 months ago (2014-07-17 00:48:54 UTC) #5
qinmin
On 2014/07/17 00:48:54, esprehn wrote: > This needs a test then, and also please wrap ...
6 years, 5 months ago (2014-07-17 02:34:39 UTC) #6
qinmin
On 2014/07/17 02:34:39, qinmin wrote: > On 2014/07/17 00:48:54, esprehn wrote: > > This needs ...
6 years, 5 months ago (2014-07-18 21:27:01 UTC) #7
esprehn
lgtm, it's a shame we have all this hackery. https://codereview.chromium.org/399703002/diff/40001/LayoutTests/fullscreen/video-fail-to-enter-full-screen.html File LayoutTests/fullscreen/video-fail-to-enter-full-screen.html (right): https://codereview.chromium.org/399703002/diff/40001/LayoutTests/fullscreen/video-fail-to-enter-full-screen.html#newcode2 LayoutTests/fullscreen/video-fail-to-enter-full-screen.html:2: ...
6 years, 5 months ago (2014-07-21 21:21:57 UTC) #8
qinmin
https://codereview.chromium.org/399703002/diff/40001/LayoutTests/fullscreen/video-fail-to-enter-full-screen.html File LayoutTests/fullscreen/video-fail-to-enter-full-screen.html (right): https://codereview.chromium.org/399703002/diff/40001/LayoutTests/fullscreen/video-fail-to-enter-full-screen.html#newcode2 LayoutTests/fullscreen/video-fail-to-enter-full-screen.html:2: <body> On 2014/07/21 21:21:57, esprehn wrote: > Leave out ...
6 years, 5 months ago (2014-07-22 01:55:01 UTC) #9
qinmin
The CQ bit was checked by qinmin@chromium.org
6 years, 5 months ago (2014-07-22 01:55:04 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qinmin@chromium.org/399703002/60001
6 years, 5 months ago (2014-07-22 01:55:21 UTC) #11
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 5 months ago (2014-07-22 03:01:24 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-22 03:27:01 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/17010)
6 years, 5 months ago (2014-07-22 03:27:02 UTC) #14
esprehn
You're failing real tests: virtual/android/fullscreen/video-fail-to-enter-full-screen.html fullscreen/video-fail-to-enter-full-screen.html
6 years, 5 months ago (2014-07-22 03:36:47 UTC) #15
qinmin
On 2014/07/22 03:36:47, esprehn wrote: > You're failing real tests: > > virtual/android/fullscreen/video-fail-to-enter-full-screen.html > fullscreen/video-fail-to-enter-full-screen.html ...
6 years, 5 months ago (2014-07-22 16:46:58 UTC) #16
qinmin
The CQ bit was checked by qinmin@chromium.org
6 years, 5 months ago (2014-07-22 21:44:23 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qinmin@chromium.org/399703002/80001
6 years, 5 months ago (2014-07-22 21:45:05 UTC) #18
commit-bot: I haz the power
6 years, 5 months ago (2014-07-23 00:27:01 UTC) #19
Message was sent while issue was closed.
Change committed as 178714

Powered by Google App Engine
This is Rietveld 408576698