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

Issue 2758233003: Fix the conditions when fullscreen detector listeners are registered (Closed)

Created:
3 years, 9 months ago by Zhiqiang Zhang (Slow)
Modified:
3 years, 9 months ago
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, eric.carlson_apple.com, feature-media-reviews_chromium.org, fs, gasubic, mlamouri+watch-blink_chromium.org, nessy, Srirama
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix the conditions when fullscreen detector listeners are registered Previously, we rely on the DOMNode[Inserted/Removed]IntoDocument events to attach/detach the detector. However this won't work if the video element is created from the parsing process. This CL fixes the issue by overriding insertedInto() and removedFrom() callbacks, which always works regardless of how the video element is inserted into the document. BUG=703210 Review-Url: https://codereview.chromium.org/2758233003 Cr-Commit-Position: refs/heads/master@{#458147} Committed: https://chromium.googlesource.com/chromium/src/+/d9d39e2308b617bad51c86f9703828a2fbef95d8

Patch Set 1 #

Total comments: 2

Patch Set 2 : addressed mlamouri's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -43 lines) Patch
M third_party/WebKit/Source/core/html/HTMLMediaElement.h View 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLVideoElement.h View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLVideoElement.cpp View 1 1 chunk +15 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/MediaCustomControlsFullscreenDetector.h View 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/html/MediaCustomControlsFullscreenDetector.cpp View 4 chunks +6 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/core/html/MediaCustomControlsFullscreenDetectorTest.cpp View 3 chunks +69 lines, -21 lines 0 comments Download

Messages

Total messages: 13 (6 generated)
Zhiqiang Zhang (Slow)
PTAL
3 years, 9 months ago (2017-03-20 16:49:05 UTC) #2
mlamouri (slow - plz ping)
lgtm with comment addressed https://codereview.chromium.org/2758233003/diff/1/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp File third_party/WebKit/Source/core/html/HTMLVideoElement.cpp (right): https://codereview.chromium.org/2758233003/diff/1/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp#newcode93 third_party/WebKit/Source/core/html/HTMLVideoElement.cpp:93: if (insertionPoint->inActiveDocument() && m_customControlsFullscreenDetector) OOC, ...
3 years, 9 months ago (2017-03-20 17:05:25 UTC) #3
Zhiqiang Zhang (Slow)
https://codereview.chromium.org/2758233003/diff/1/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp File third_party/WebKit/Source/core/html/HTMLVideoElement.cpp (right): https://codereview.chromium.org/2758233003/diff/1/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp#newcode93 third_party/WebKit/Source/core/html/HTMLVideoElement.cpp:93: if (insertionPoint->inActiveDocument() && m_customControlsFullscreenDetector) On 2017/03/20 at 17:05:25, mlamouri ...
3 years, 9 months ago (2017-03-20 17:14:22 UTC) #4
Zhiqiang Zhang (Slow)
+skobes for rubber-stamping HTMLVideoElement.*
3 years, 9 months ago (2017-03-20 17:23:55 UTC) #6
skobes
rs lgtm
3 years, 9 months ago (2017-03-20 17:33:00 UTC) #7
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/2758233003/20001
3 years, 9 months ago (2017-03-20 17:33:59 UTC) #10
commit-bot: I haz the power
3 years, 9 months ago (2017-03-20 19:18:08 UTC) #13
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/d9d39e2308b617bad51c86f97038...

Powered by Google App Engine
This is Rietveld 408576698