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

Issue 710933003: Handle parser-blocking script cancellations while nested. (Closed)

Created:
6 years, 1 month ago by sof
Modified:
6 years, 1 month ago
CC:
blink-reviews, dglazkov+blink, blink-reviews-html_chromium.org, senorblanco, yhirano
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Handle parser-blocking script cancellations while nested. Gracefully handle cancellation of a parser-blocking script load that was initiated while already executing scripts. That is, quietly stop waiting for it to load without notifying the host. R=marja@chromium.org,kouhei@chromium.org,haraken@chromium.org BUG=398090 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=185122

Patch Set 1 #

Patch Set 2 : Test window.close() behavior via a popup window instead #

Patch Set 3 : Generalize cancellation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -0 lines) Patch
A LayoutTests/fast/parser/document-write-then-close.html View 1 1 chunk +11 lines, -0 lines 0 comments Download
A LayoutTests/fast/parser/document-write-then-close-expected.txt View 1 chunk +3 lines, -0 lines 0 comments Download
A LayoutTests/fast/parser/resources/document-write-then-close.html View 1 1 chunk +7 lines, -0 lines 0 comments Download
M Source/core/html/parser/HTMLScriptRunner.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/html/parser/HTMLScriptRunner.cpp View 1 2 1 chunk +26 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (3 generated)
sof
Please take a look.
6 years, 1 month ago (2014-11-10 11:46:26 UTC) #2
marja
I wonder how this plays with --enable-v8-script-streaming... maybe it works out of the box? (I'll ...
6 years, 1 month ago (2014-11-10 12:02:50 UTC) #3
sof
On 2014/11/10 12:02:50, marja wrote: > I wonder how this plays with --enable-v8-script-streaming... maybe it ...
6 years, 1 month ago (2014-11-10 12:17:40 UTC) #4
marja
One thing that confuses me is that why HTMLScriptRunner::detach is not called before the script ...
6 years, 1 month ago (2014-11-10 13:32:10 UTC) #5
sof
On 2014/11/10 13:32:10, marja wrote: > One thing that confuses me is that why HTMLScriptRunner::detach ...
6 years, 1 month ago (2014-11-10 14:53:46 UTC) #6
marja
On 2014/11/10 14:53:46, sof wrote: > On 2014/11/10 13:32:10, marja wrote: > > One thing ...
6 years, 1 month ago (2014-11-10 15:36:05 UTC) #7
marja
(But I do think that calling both stopWatchingForLoad and releaseAndClearElement is a good idea; it's ...
6 years, 1 month ago (2014-11-11 09:41:03 UTC) #8
marja
lgtm; I'm convinced that this works (can't really disagree with the test), and I don't ...
6 years, 1 month ago (2014-11-11 09:49:05 UTC) #9
sof
On 2014/11/11 09:49:05, marja wrote: > lgtm; I'm convinced that this works (can't really disagree ...
6 years, 1 month ago (2014-11-11 09:57:46 UTC) #10
kouhei (in TOK)
lgtm 2
6 years, 1 month ago (2014-11-11 10:02:51 UTC) #11
haraken
LGTM
6 years, 1 month ago (2014-11-11 10:23:39 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/710933003/40001
6 years, 1 month ago (2014-11-11 10:39:18 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001) as 185122
6 years, 1 month ago (2014-11-11 12:14:56 UTC) #15
Noel Gordon
message-port-close.html started failing after this change: http://build.chromium.org/p/chromium.webkit/builders/WebKit%20Mac10.9/builds/13387 related?
6 years, 1 month ago (2014-11-11 13:26:48 UTC) #16
Noel Gordon
6 years, 1 month ago (2014-11-11 13:28:05 UTC) #18
sof
On 2014/11/11 13:28:05, noel gordon wrote:
6 years, 1 month ago (2014-11-11 13:34:12 UTC) #19
marja
Sounds surprising, since that test shouldn't go via this code path, but who knows. When ...
6 years, 1 month ago (2014-11-11 13:34:38 UTC) #20
sof
On 2014/11/11 13:26:48, noel gordon wrote: > message-port-close.html started failing after this change: > > ...
6 years, 1 month ago (2014-11-11 13:35:20 UTC) #21
Noel Gordon
Not clear to me either. Some change in behavior around here ... http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=fast%2Fevents%2Fmessage-port-close.html which the ...
6 years, 1 month ago (2014-11-11 13:42:55 UTC) #22
sof
On 2014/11/11 13:42:55, noel gordon wrote: > Not clear to me either. Some change in ...
6 years, 1 month ago (2014-11-11 13:52:28 UTC) #23
sof
6 years, 1 month ago (2014-11-11 14:23:28 UTC) #24
Message was sent while issue was closed.
On 2014/11/11 13:52:28, sof wrote:
> On 2014/11/11 13:42:55, noel gordon wrote:
> > Not clear to me either.  Some change in behavior around here ...
> > 
> >
>
http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=fas...
> > 
> > which the gardeners will need to clean up.
> 
> Yes, looking into it (modulo slow local building of ToT.)

Due to https://codereview.chromium.org/704933002

Powered by Google App Engine
This is Rietveld 408576698