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

Issue 496443008: Transfer pending async script loader to new document. (Closed)

Created:
6 years, 3 months ago by sof
Modified:
6 years, 3 months ago
CC:
blink-reviews, blink-reviews-html_chromium.org, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, rwlbuis, Nate Chapin
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Transfer pending async script loader to new document. If a script element is moved to a new document and it has a pending async script being loaded in the old document, transfer the pending script load to the new document. R=japhet@chromium.org BUG=407824 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181081

Patch Set 1 #

Patch Set 2 : Extend to SVG script elements #

Patch Set 3 : add test #

Patch Set 4 : Add testcase for script load error path #

Patch Set 5 : Robustify new test wrt expected output #

Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -3 lines) Patch
A LayoutTests/fast/dom/HTMLScriptElement/append-child-adopt-node-crash.html View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/HTMLScriptElement/append-child-adopt-node-crash-expected.txt View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/HTMLScriptElement/append-child-adopt-node-error-crash.html View 1 2 3 1 chunk +20 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/HTMLScriptElement/append-child-adopt-node-error-crash-expected.txt View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/HTMLScriptElement/resources/append-child-adopt-node-error-frame.html View 1 2 3 1 chunk +19 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/HTMLScriptElement/resources/append-child-adopt-node-error-frame.svg View 1 2 3 4 1 chunk +16 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/HTMLScriptElement/resources/append-child-adopt-node-frame.html View 1 2 3 1 chunk +18 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/HTMLScriptElement/resources/append-child-adopt-node-frame.svg View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/HTMLScriptElement/resources/should-load.js View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/dom/ScriptRunner.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M Source/core/dom/ScriptRunner.cpp View 1 2 3 chunks +16 lines, -3 lines 0 comments Download
M Source/core/html/HTMLScriptElement.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/HTMLScriptElement.cpp View 1 2 chunks +7 lines, -0 lines 0 comments Download
M Source/core/svg/SVGScriptElement.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/svg/SVGScriptElement.cpp View 1 2 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
sof
sigbjornf@opera.com changed reviewers: + haraken@chromium.org, morrita@chromium.org, tkent@chromium.org
6 years, 3 months ago (2014-08-28 08:50:00 UTC) #1
sof
Please take a look. The test is essentially morrita-san's from http://crbug.com/361011
6 years, 3 months ago (2014-08-28 08:50:00 UTC) #2
sof
sigbjornf@opera.com changed reviewers: + abarth@chromium.org
6 years, 3 months ago (2014-08-28 11:10:46 UTC) #3
sof
+abarth (accidentally left out initially.)
6 years, 3 months ago (2014-08-28 11:10:46 UTC) #4
haraken
On 2014/08/28 11:10:46, sof wrote: > +abarth (accidentally left out initially.) Yeah, abarth would be ...
6 years, 3 months ago (2014-08-28 11:52:46 UTC) #5
sof
On 2014/08/28 11:52:46, haraken wrote: > On 2014/08/28 11:10:46, sof wrote: > > +abarth (accidentally ...
6 years, 3 months ago (2014-08-28 12:18:48 UTC) #6
sof
On 2014/08/28 12:18:48, sof wrote: > On 2014/08/28 11:52:46, haraken wrote: > > On 2014/08/28 ...
6 years, 3 months ago (2014-08-28 12:24:00 UTC) #7
sof
On 2014/08/28 11:52:46, haraken wrote: > On 2014/08/28 11:10:46, sof wrote: > > +abarth (accidentally ...
6 years, 3 months ago (2014-08-28 19:46:03 UTC) #8
Nate Chapin
japhet@chromium.org changed reviewers: + japhet@chromium.org
6 years, 3 months ago (2014-08-28 21:39:44 UTC) #9
Nate Chapin
LGTM Should there be a test variant that's expected to fail the transfer to the ...
6 years, 3 months ago (2014-08-28 21:39:44 UTC) #10
sof
On 2014/08/28 21:39:44, Nate Chapin wrote: > LGTM > > Should there be a test ...
6 years, 3 months ago (2014-08-29 08:52:46 UTC) #11
sof
The CQ bit was checked by sigbjornf@opera.com
6 years, 3 months ago (2014-08-29 08:53:21 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sigbjornf@opera.com/496443008/80001
6 years, 3 months ago (2014-08-29 08:53:51 UTC) #13
commit-bot: I haz the power
6 years, 3 months ago (2014-08-29 09:28:44 UTC) #14
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as 181081

Powered by Google App Engine
This is Rietveld 408576698