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

Issue 190463002: Remove document().page() null checks in MediaControls (Closed)

Created:
6 years, 9 months ago by philipj_slow
Modified:
6 years, 9 months ago
CC:
blink-reviews, nessy, gasubic, fs, eric.carlson_apple.com, feature-media-reviews_chromium.org, dglazkov+blink, adamk+blink_chromium.org, vcarbune.chromium
Visibility:
Public.

Description

Remove document().page() null checks in MediaControls These were needed in WebKit when the render theme was accessed via the page, but that is no longer the case, these null checks are the only bits in MediaControls that access document().page() at all. It's possible that some code deeper down assumes that the page is not null and will now begin to crash, but a quick scan of Source/core/ didn't reveal anything obvious. BUG=341813 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168855

Patch Set 1 #

Total comments: 1

Patch Set 2 : test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -17 lines) Patch
A LayoutTests/media/controls-in-frameless-document.html View 1 1 chunk +20 lines, -0 lines 0 comments Download
A + LayoutTests/media/controls-in-frameless-document-expected.txt View 1 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/html/shadow/MediaControls.cpp View 4 chunks +0 lines, -15 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
philipj_slow
6 years, 9 months ago (2014-03-07 18:31:01 UTC) #1
acolwell GONE FROM CHROMIUM
Could we potentially get a crash if an HTMLMediaElement was pulled out of an iframe, ...
6 years, 9 months ago (2014-03-08 20:14:31 UTC) #2
eseidel
These days we ask Document::isActive() since that requires the document to be in a frame ...
6 years, 9 months ago (2014-03-08 20:37:00 UTC) #3
eseidel
https://codereview.chromium.org/190463002/diff/1/Source/core/html/shadow/MediaControls.cpp File Source/core/html/shadow/MediaControls.cpp (left): https://codereview.chromium.org/190463002/diff/1/Source/core/html/shadow/MediaControls.cpp#oldcode59 Source/core/html/shadow/MediaControls.cpp:59: PassRefPtr<MediaControls> MediaControls::create(Document& document) One way to test these methods ...
6 years, 9 months ago (2014-03-08 20:39:04 UTC) #4
philipj_slow
I've added a test that triggers all the removed code paths except MediaControls::startHideFullscreenControlsTimer(), verified by ...
6 years, 9 months ago (2014-03-09 17:15:28 UTC) #5
eseidel
lgtm
6 years, 9 months ago (2014-03-10 19:13:09 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/philipj@opera.com/190463002/20001
6 years, 9 months ago (2014-03-10 19:13:22 UTC) #7
commit-bot: I haz the power
6 years, 9 months ago (2014-03-10 19:20:04 UTC) #8
Message was sent while issue was closed.
Change committed as 168855

Powered by Google App Engine
This is Rietveld 408576698