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

Issue 25362002: Block load event dispatching on old document when an HTMLMediaElement is moved between documents. (Closed)

Created:
7 years, 2 months ago by acolwell GONE FROM CHROMIUM
Modified:
7 years, 1 month ago
Reviewers:
adamk, abarth-chromium
CC:
blink-reviews, feature-media-reviews_chromium.org, dglazkov+blink, nessy, vcarbune.chromium, adamk+blink_chromium.org
Visibility:
Public.

Description

Block load event dispatching on old document when an HTMLMediaElement is moved between documents. BUG=272786 TEST=LayoutTests/http/tests/media/video-in-iframe-crash.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=159031

Patch Set 1 #

Patch Set 2 : Add LayoutTest and update comments. #

Patch Set 3 : Rebase #

Total comments: 8

Patch Set 4 : Address CR comments. #

Patch Set 5 : Rebase and move reloadPage() call so the test is more deterministic. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -2 lines) Patch
A LayoutTests/http/tests/media/video-in-iframe-crash.html View 1 2 3 4 1 chunk +62 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/media/video-in-iframe-crash-expected.txt View 1 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/html/HTMLMediaElement.cpp View 1 2 3 4 2 chunks +12 lines, -2 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
acolwell GONE FROM CHROMIUM
7 years, 2 months ago (2013-10-01 18:10:01 UTC) #1
abarth-chromium
https://codereview.chromium.org/25362002/diff/7001/LayoutTests/http/tests/media/video-in-iframe-crash.html File LayoutTests/http/tests/media/video-in-iframe-crash.html (right): https://codereview.chromium.org/25362002/diff/7001/LayoutTests/http/tests/media/video-in-iframe-crash.html#newcode20 LayoutTests/http/tests/media/video-in-iframe-crash.html:20: //consoleWrite("Load " + loadCount); Please remove commented out code. ...
7 years, 2 months ago (2013-10-01 19:49:18 UTC) #2
acolwell GONE FROM CHROMIUM
https://codereview.chromium.org/25362002/diff/7001/LayoutTests/http/tests/media/video-in-iframe-crash.html File LayoutTests/http/tests/media/video-in-iframe-crash.html (right): https://codereview.chromium.org/25362002/diff/7001/LayoutTests/http/tests/media/video-in-iframe-crash.html#newcode20 LayoutTests/http/tests/media/video-in-iframe-crash.html:20: //consoleWrite("Load " + loadCount); On 2013/10/01 19:49:19, abarth wrote: ...
7 years, 2 months ago (2013-10-01 22:02:03 UTC) #3
abarth-chromium
Would a WebFrameTest give you better control over the timing and let you make the ...
7 years, 2 months ago (2013-10-01 22:05:16 UTC) #4
acolwell GONE FROM CHROMIUM
On 2013/10/01 22:05:16, abarth wrote: > Would a WebFrameTest give you better control over the ...
7 years, 2 months ago (2013-10-02 01:01:48 UTC) #5
acolwell GONE FROM CHROMIUM
On 2013/10/02 01:01:48, acolwell wrote: > On 2013/10/01 22:05:16, abarth wrote: > > Would a ...
7 years, 2 months ago (2013-10-04 20:23:18 UTC) #6
abarth-chromium
lgtm Ok. LGTM. I suspect this test will just end up being flaky and be ...
7 years, 2 months ago (2013-10-05 05:53:34 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/acolwell@chromium.org/25362002/22001
7 years, 2 months ago (2013-10-05 05:53:46 UTC) #8
commit-bot: I haz the power
Retried try job too often on mac_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_blink_rel&number=6490
7 years, 2 months ago (2013-10-05 08:26:59 UTC) #9
acolwell GONE FROM CHROMIUM
On 2013/10/05 05:53:34, abarth wrote: > lgtm > > Ok. LGTM. I suspect this test ...
7 years, 2 months ago (2013-10-07 15:34:52 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/acolwell@chromium.org/25362002/22001
7 years, 2 months ago (2013-10-07 15:35:30 UTC) #11
commit-bot: I haz the power
Change committed as 159031
7 years, 2 months ago (2013-10-07 16:27:28 UTC) #12
eric.carlson
On 2013/10/04 20:23:18, acolwell wrote: > > I'm still having a heck of a time ...
7 years, 1 month ago (2013-11-07 17:00:00 UTC) #13
eric.carlson
On 2013/11/07 17:00:00, eric.carlson wrote: > > FWIW, I replaced the timeout with "iframe.onload = ...
7 years, 1 month ago (2013-11-07 17:44:34 UTC) #14
acolwell GONE FROM CHROMIUM
7 years, 1 month ago (2013-11-07 17:58:13 UTC) #15
Message was sent while issue was closed.
On 2013/11/07 17:44:34, eric.carlson wrote:
> On 2013/11/07 17:00:00, eric.carlson wrote:
> > 
> > FWIW, I replaced the timeout with "iframe.onload =
> > moveIframeBodyIntoDocumentBody" when I merged these changes to WebKit.
> 
> Or rather when I looked into merging the changes. It turns out this change
isn't
> necessary in WebKit.

I tried using onload when I was working on this bug. Doing that changed the
behavior enough to prevent the crash from reproducing.

Powered by Google App Engine
This is Rietveld 408576698