WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
83802
Web Inspector: extracting NetworkRequest from Resource (step 3)
https://bugs.webkit.org/show_bug.cgi?id=83802
Summary
Web Inspector: extracting NetworkRequest from Resource (step 3)
Pavel Feldman
Reported
2012-04-12 12:01:13 PDT
This change extracts NetworkRequest from the Resource. It is now clear that these two should have super class that would be responsible for parsing URL and would define the requestContent signature. Corresponding patch will follow.
Attachments
Patch
(62.27 KB, patch)
2012-04-12 12:07 PDT
,
Pavel Feldman
yurys
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Pavel Feldman
Comment 1
2012-04-12 12:01:42 PDT
See
https://bugs.webkit.org/show_bug.cgi?id=61363
for the meta bug.
Pavel Feldman
Comment 2
2012-04-12 12:07:07 PDT
Created
attachment 136950
[details]
Patch
Timothy Hatcher
Comment 3
2012-04-12 12:18:12 PDT
What is the motivation for this change?
Pavel Feldman
Comment 4
2012-04-12 13:03:17 PDT
(In reply to
comment #3
)
> What is the motivation for this change?
I posted more details in
https://bugs.webkit.org/show_bug.cgi?id=61363#c2
.
Pavel Podivilov
Comment 5
2012-04-13 04:30:02 PDT
Comment on
attachment 136950
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=136950&action=review
> Source/WebCore/inspector/front-end/RawSourceCode.js:57 > + if (this._request)
Is it possible that both request and resource exist? If yes, it should be "this._request && !this._resource".
> Source/WebCore/inspector/front-end/RawSourceCode.js:138 > + if (!this._request || !this._hasNewScripts)
It should probably be !this._resource.
Pavel Feldman
Comment 6
2012-04-13 04:43:04 PDT
(In reply to
comment #5
)
> (From update of
attachment 136950
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=136950&action=review
> > > Source/WebCore/inspector/front-end/RawSourceCode.js:57 > > + if (this._request) > > Is it possible that both request and resource exist? If yes, it should be "this._request && !this._resource". >
No, it is not possible.
> > Source/WebCore/inspector/front-end/RawSourceCode.js:138 > > + if (!this._request || !this._hasNewScripts) > > It should probably be !this._resource.
This is ex-useTemporaryContent, so it is based on request, not resource.
Yury Semikhatsky
Comment 7
2012-04-13 05:00:27 PDT
Comment on
attachment 136950
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=136950&action=review
>> Source/WebCore/inspector/front-end/RawSourceCode.js:57 >> + if (this._request) > > Is it possible that both request and resource exist? If yes, it should be "this._request && !this._resource".
Let's rename it to _pendingRequest
> Source/WebCore/inspector/front-end/ResourceScriptMapping.js:99 > + if (request && (request.finished || request.type !== WebInspector.resourceTypes.Document))
request.finished check seems redundant for inflights.
Pavel Feldman
Comment 8
2012-04-13 05:15:30 PDT
Committed
r114116
: <
http://trac.webkit.org/changeset/114116
>
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