[Webkit-unassigned] [Bug 8852] Scripts should not be executed before preceding stylesheets are loaded
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Dec 29 16:55:45 PST 2010
https://bugs.webkit.org/show_bug.cgi?id=8852
--- Comment #17 from Antti Koivisto <koivisto at iki.fi> 2010-12-29 16:55:44 PST ---
> > WebCore/html/parser/HTMLScriptRunner.cpp:-310
> > - // FIXME: We do not block inline <script> tags on stylesheets to match the
> > - // old parser for now. When we do, the ASSERT below should be added.
> > - // See https://bugs.webkit.org/show_bug.cgi?id=40047
> > - // ASSERT(document()->haveStylesheetsLoaded());
>
> Why didn’t you add the assertion the way the comment said we would?
Because the assert would be wrong as we still allow script execution with pending sheets in the case of nested script execution. The comment above tries to explain.
(I could modify the assert, but asserting for the exact same thing I test with if() above seems pointless)
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list