WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
112564
Refactor Use initiatorType instead of initiatorName in CachedResourceRequest
https://bugs.webkit.org/show_bug.cgi?id=112564
Summary
Refactor Use initiatorType instead of initiatorName in CachedResourceRequest
pdeng6
Reported
2013-03-18 06:18:49 PDT
use initiatorType() to return "css" "img" "link" "xmlhttprequest" is better for meaning and keep consistent with its client Resource Timing.
Attachments
Patch
(8.55 KB, patch)
2013-03-18 06:25 PDT
,
pdeng6
abarth
: review-
webkit.review.bot
: commit-queue-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
pdeng6
Comment 1
2013-03-18 06:25:58 PDT
Created
attachment 193548
[details]
Patch
WebKit Review Bot
Comment 2
2013-03-18 06:33:47 PDT
Please wait for approval from
abarth@webkit.org
,
dglazkov@chromium.org
,
fishd@chromium.org
,
jamesr@chromium.org
or
tkent@chromium.org
before submitting, as this patch contains changes to the Chromium public API. See also
https://trac.webkit.org/wiki/ChromiumWebKitAPI
.
WebKit Review Bot
Comment 3
2013-03-18 06:40:02 PDT
Comment on
attachment 193548
[details]
Patch
Attachment 193548
[details]
did not pass cr-linux-debug-ews (chromium-xvfb): Output:
http://webkit-commit-queue.appspot.com/results/17242008
Adam Barth
Comment 4
2013-03-18 09:03:20 PDT
Comment on
attachment 193548
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=193548&action=review
I'm not sure the benefits of this change are worth the code and API churn.
> Source/WebKit/chromium/public/WebCachedURLRequest.h:56 > - WEBKIT_EXPORT WebString initiatorName() const; > + WEBKIT_EXPORT WebString initiatorType() const;
This API change is likely to break code in Chromium that consumes this API.
James Simonsen
Comment 5
2013-03-18 11:31:17 PDT
(In reply to
comment #4
)
> (From update of
attachment 193548
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=193548&action=review
> > I'm not sure the benefits of this change are worth the code and API churn.
Agreed. Also, this field is not just for Resource Timing, so we shouldn't restrict ourselves to matching that. I think Jochen and Marja are using it for something.
Marja Hölttä
Comment 6
2013-03-18 16:06:41 PDT
Yeah, it's potentially used by the declarative web request api (battre@ & vabr@ can tell if it's used for real).
pdeng6
Comment 7
2013-03-18 20:37:28 PDT
thanks for all comments. cr-linux-debug-ews failed because I missed touch some MACRO. I've searched the code, and found WebCachedURLRequest::initiatorName() only used in WebTestProxyBase::willRequestResource besides Resource Timing, and I guess the intent there is also return type rather than name, the real usage? :) Thanks Pan
Dominic Battre
Comment 8
2013-04-05 07:06:19 PDT
(In reply to
comment #6
)
> Yeah, it's potentially used by the declarative web request api (battre@ & vabr@ can tell if it's used for real).
Please excuse my late reply. This is not used in the WebRequest API. According to code search only WebKit/Tools/DumpRenderTree/chromium/TestRunner/src/WebTestProxy.cpp calls this function.
Joseph Pecoraro
Comment 9
2017-02-10 11:56:33 PST
This seems stale and is only a name change. Lets close.
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