[Webkit-unassigned] [Bug 27612] handling scripts can block UI

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Aug 7 07:16:25 PDT 2009


--- Comment #3 from Yong Li <yong.li at torchmobile.com>  2009-08-07 07:16:25 PDT ---
Well, CachedScript originally supports async mode, because it's loading network
resource. It's sync mode only when the resource happens to exist in the cache.

The patch actually uses async mode for both cases.

There was a bug introduced by that, which is fixed in
DocumentLoader::isLoadingInAPISense(). isLoadingInAPISense() returned false if
tokenizer is not processing source and there's no pending request for that
document. The patch fixes that by checking Document::parsing().

I don't think it can introduce onload() event problem. If there is a problem,
it must have existed in original code, because old code uses async mode, too.

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