Summary: | Web Inspector: [Regression] Resource content is not loaded if Resource.requestContent method is called before network request is finished. | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Vsevolod Vlasov <vsevik> | ||||
Component: | Web Inspector (Deprecated) | Assignee: | Vsevolod Vlasov <vsevik> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | apavlov, bweinstein, joepeck, keishi, loislo, pfeldman, pmuellr, rik, timothy, yurys | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Attachments: |
|
Description
Vsevolod Vlasov
2012-06-28 03:36:24 PDT
Created attachment 149932 [details]
Patch
Comment on attachment 149932 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=149932&action=review > LayoutTests/http/tests/inspector/resource-tree/resource-request-content-while-loading.html:27 > + contentWasRequested = true; No need to set it second time > LayoutTests/http/tests/inspector/resource-tree/resource-request-content-while-loading.html:38 > + if (contentWasLoaded) Page reload reply should always come before _addRequest unless you receive _addRequest for the page that was not reloaded yet. Probably using a synchronously loaded resources would allow to avoid this non-determinism. Committed r121537: <http://trac.webkit.org/changeset/121537> (In reply to comment #2) > (From update of attachment 149932 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=149932&action=review > > > LayoutTests/http/tests/inspector/resource-tree/resource-request-content-while-loading.html:27 > > + contentWasRequested = true; > > No need to set it second time Done. > > LayoutTests/http/tests/inspector/resource-tree/resource-request-content-while-loading.html:38 > > + if (contentWasLoaded) > > Page reload reply should always come before _addRequest unless you receive _addRequest for the page that was not reloaded yet. Probably using a synchronously loaded resources would allow to avoid this non-determinism. It turned out I didn't need all this page reloaded events, landed without listening to them. |