[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:50:43 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=8852





--- Comment #16 from Antti Koivisto <koivisto at iki.fi>  2010-12-29 16:50:42 PST ---
(In reply to comment #13)
> > If the element does not have a src attribute
> 
> But this bug is about a link element with an href attribute, not a script element without src? 

We implemented blocking external script execution on stylesheet loads years ago. Using this bug for the remaining work seems appropriate. Your test case is about inline scripts too.

> Please don't get me wrong, I'm not opposing this change myself, but there seems to be significant controversy around it. I'm also not sure what Mozilla did in <https://bugzilla.mozilla.org/show_bug.cgi?id=84582> in the end.

What controversy? The only reason we didn't do this along with the original change was that it was much more work with the old parser and there was other stuff to do. Having this kind of behavior difference between inline and external scripts makes no sense at all (besides, HTML5 requires it and no other engine behaves like this as far as I know).

I think the unclear part is what to do with script inserted external stylesheet/inline script pair. The patch maintains the old behavior in this rare case for now even though HTML5 (or Gecko) apparently do not have this special case. https://bugs.webkit.org/show_bug.cgi?id=40047 had some discussion...

-- 
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