Bug 138473

Summary: Don't send identifierForInitialRequest callback method for request with DoNotSendCallbacks option.
Product: WebKit Reporter: Yongjun Zhang <yongjun_zhang>
Component: WebCore Misc.Assignee: Yongjun Zhang <yongjun_zhang>
Status: RESOLVED FIXED    
Severity: Normal CC: ap, buildbot, commit-queue, ddkilzer, japhet, mitz, psolanki, rniwa
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: iOS 8.1   
Attachments:
Description Flags
Remove iOS specific lines in ResourceLoader.cpp since they are not needed any more.
none
Fix style issue. none

Description Yongjun Zhang 2014-11-06 13:21:51 PST
In iOS, identifierForInitialRequest callback method is always called for any request, even the request has opted out with DoNotSendCallbacks.
Comment 1 Yongjun Zhang 2014-11-06 13:23:00 PST
<rdar://problem/14125129>
Comment 2 Yongjun Zhang 2014-11-06 13:44:55 PST
Created attachment 241129 [details]
Remove iOS specific lines in ResourceLoader.cpp since they are not needed any more.
Comment 3 WebKit Commit Bot 2014-11-06 13:46:31 PST
Attachment 241129 [details] did not pass style-queue:


ERROR: Source/WebCore/ChangeLog:3:  Line contains tab character.  [whitespace/tab] [5]
ERROR: Source/WebCore/ChangeLog:4:  Line contains tab character.  [whitespace/tab] [5]
ERROR: Source/WebCore/ChangeLog:6:  Line contains tab character.  [whitespace/tab] [5]
ERROR: Source/WebCore/ChangeLog:7:  Line contains tab character.  [whitespace/tab] [5]
ERROR: Source/WebCore/ChangeLog:8:  Line contains tab character.  [whitespace/tab] [5]
ERROR: Source/WebCore/ChangeLog:9:  Line contains tab character.  [whitespace/tab] [5]
ERROR: Source/WebCore/ChangeLog:15:  Line contains tab character.  [whitespace/tab] [5]
ERROR: Source/WebCore/ChangeLog:16:  Line contains tab character.  [whitespace/tab] [5]
Total errors found: 8 in 2 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 4 Pratik Solanki 2014-11-06 13:48:08 PST
Comment on attachment 241129 [details]
Remove iOS specific lines in ResourceLoader.cpp since they are not needed any more.

View in context: https://bugs.webkit.org/attachment.cgi?id=241129&action=review

> Source/WebCore/ChangeLog:4
> +		https://bugs.webkit.org/show_bug.cgi?id=138473

Add the radar number here.

> Source/WebCore/loader/ResourceLoader.cpp:273
> +

Do we still need this?
Comment 5 Yongjun Zhang 2014-11-06 13:51:09 PST
Created attachment 241130 [details]
Fix style issue.
Comment 6 Yongjun Zhang 2014-11-06 13:56:11 PST
(In reply to comment #4)
> Comment on attachment 241129 [details]
> Remove iOS specific lines in ResourceLoader.cpp since they are not needed
> any more.
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=241129&action=review
> 
> > Source/WebCore/ChangeLog:4
> > +		https://bugs.webkit.org/show_bug.cgi?id=138473
> 
> Add the radar number here.
> 
> > Source/WebCore/loader/ResourceLoader.cpp:273
> > +
> 
> Do we still need this?

I think so.  There is still WebKit1 clients using identifierForInitialRequest callback and they could stop the resource loading in the callback.
Comment 7 WebKit Commit Bot 2014-11-06 14:51:28 PST
Comment on attachment 241130 [details]
Fix style issue.

Clearing flags on attachment: 241130

Committed r175718: <http://trac.webkit.org/changeset/175718>
Comment 8 WebKit Commit Bot 2014-11-06 14:51:32 PST
All reviewed patches have been landed.  Closing bug.