Bug 36445 - Web Inspector: fake workers fail if created before document is loaded
Summary: Web Inspector: fake workers fail if created before document is loaded
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-22 08:54 PDT by Andrey Kosyakov
Modified: 2010-03-22 19:11 PDT (History)
8 users (show)

See Also:


Attachments
Defer attaching fake workers iframe to document until after document is loaded (3.02 KB, patch)
2010-03-22 09:28 PDT, Andrey Kosyakov
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Kosyakov 2010-03-22 08:54:09 PDT
Fake workers implementation that is used when Debug checkbox on Workers sidebar is ticked currently use iframes to simulate workers. The implementation attempts to append iframe to document right at the time of fake worker creation, so it fails if document is not yet loaded. Fake workers should detect that no document.body is present yet and defer iframe creation.
Comment 1 Andrey Kosyakov 2010-03-22 09:28:37 PDT
Created attachment 51294 [details]
Defer attaching fake workers iframe to document until after document is loaded
Comment 2 WebKit Commit Bot 2010-03-22 19:11:09 PDT
Comment on attachment 51294 [details]
Defer attaching fake workers iframe to document until after document is loaded

Clearing flags on attachment: 51294

Committed r56374: <http://trac.webkit.org/changeset/56374>
Comment 3 WebKit Commit Bot 2010-03-22 19:11:14 PDT
All reviewed patches have been landed.  Closing bug.