Bug 76350

Summary: ScriptRunner should also keep references to pending async scripts
Product: WebKit Reporter: jochen
Component: New BugsAssignee: jochen
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, ossy, simonjam, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 76083    
Attachments:
Description Flags
Patch
none
Patch
none
Patch none

Description jochen 2012-01-15 14:40:26 PST
ScriptRunner should also keep references to pending async scripts
Comment 1 jochen 2012-01-15 14:43:39 PST
Created attachment 122574 [details]
Patch
Comment 2 jochen 2012-01-15 14:58:52 PST
Created attachment 122575 [details]
Patch
Comment 3 Adam Barth 2012-01-15 15:00:16 PST
Comment on attachment 122575 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=122575&action=review

> Source/WebCore/dom/ScriptElement.cpp:236
> +        m_element->document()->scriptRunner()->queueScriptForExecution(this, m_cachedScript, ScriptRunner::ASYNC_EXECUTION);

These enum values shouldn't be in ALL_CAPS, but that's a pre-existing problem.

> Source/WebCore/dom/ScriptRunner.cpp:102
> +    default:
> +        ASSERT_NOT_REACHED();

In WebKit, we leave off the default cases for enums so the compiler can complain when we forget one.
Comment 4 Csaba Osztrogon√°c 2012-01-16 00:48:58 PST
I skipped the failing test on Qt: http://trac.webkit.org/changeset/105038 to make the bot green. Please unskip it when you land the proper fix.
Comment 5 jochen 2012-01-16 01:20:34 PST
Created attachment 122603 [details]
Patch
Comment 6 WebKit Review Bot 2012-01-16 01:37:18 PST
Comment on attachment 122603 [details]
Patch

Clearing flags on attachment: 122603

Committed r105041: <http://trac.webkit.org/changeset/105041>
Comment 7 WebKit Review Bot 2012-01-16 01:37:23 PST
All reviewed patches have been landed.  Closing bug.