WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
52452
Web Inspector: [Extensions API] webInspector.resources.onFinished is not fired for redirected resources
https://bugs.webkit.org/show_bug.cgi?id=52452
Summary
Web Inspector: [Extensions API] webInspector.resources.onFinished is not fire...
Andrey Kosyakov
Reported
2011-01-14 08:54:30 PST
webInspector.resources.onFinished is not fired for resources that were redirected. In general, the logic of starting/finishing is often inconsistent in NetworkManager: sometimes, not all consumers are notified on resource being finished, sometimes resources are not cleaned up upon finishing from NetworkManager._resourcesById.
Attachments
patch
(13.93 KB, patch)
2011-01-14 09:17 PST
,
Andrey Kosyakov
no flags
Details
Formatted Diff
Diff
patch to land
(15.42 KB, patch)
2011-01-17 09:15 PST
,
Andrey Kosyakov
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Andrey Kosyakov
Comment 1
2011-01-14 09:17:45 PST
Created
attachment 78948
[details]
patch
Pavel Feldman
Comment 2
2011-01-17 01:59:32 PST
Comment on
attachment 78948
[details]
patch View in context:
https://bugs.webkit.org/attachment.cgi?id=78948&action=review
> Source/WebCore/inspector/front-end/NetworkManager.js:183 > + this._finishResource(resource, time);
We should not do two refreshes per operation.
> Source/WebCore/inspector/front-end/NetworkManager.js:221 > + this._startResource(resource);
Audits will break on web sockets.
> Source/WebCore/inspector/front-end/NetworkManager.js:258 > + this._finishResource(resource, time);
ditto
Andrey Kosyakov
Comment 3
2011-01-17 09:15:45 PST
Created
attachment 79180
[details]
patch to land
Andrey Kosyakov
Comment 4
2011-01-17 09:19:43 PST
(In reply to
comment #2
)
> (From update of
attachment 78948
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=78948&action=review
> > > Source/WebCore/inspector/front-end/NetworkManager.js:183 > > + this._finishResource(resource, time); > > We should not do two refreshes per operation.
As discussed, I would rather leave this as is: NetworkPanel.refreshResources() is cheap, as it postpones actual DOM refresh to an async timer event (so two refreshes will still be one). OTOH, I'm reluctant to put any skipRefresh-like flags into the interface, especially in view of planned transition to events.
> > Source/WebCore/inspector/front-end/NetworkManager.js:221 > > + this._startResource(resource); > > Audits will break on web sockets. > > > Source/WebCore/inspector/front-end/NetworkManager.js:258 > > + this._finishResource(resource, time); > > ditto
We just use these events there for updating the progress indicator, so it won'r really break. Thanks, though, fixed this.
Eric Seidel (no email)
Comment 5
2011-01-31 16:07:09 PST
Comment on
attachment 78948
[details]
patch Cleared Pavel Feldman's review+ from obsolete
attachment 78948
[details]
so that this bug does not appear in
http://webkit.org/pending-commit
.
Andrey Kosyakov
Comment 6
2011-11-30 09:42:16 PST
Manually committed
r75950
:
http://trac.webkit.org/changeset/75950
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug