WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 124554
Upstream iOS's ResourceHandle implementation
https://bugs.webkit.org/show_bug.cgi?id=124554
Summary
Upstream iOS's ResourceHandle implementation
Benjamin Poulain
Reported
2013-11-18 18:15:58 PST
Upstream iOS's ResourceHandle implementation
Attachments
Patch
(23.25 KB, patch)
2013-11-18 18:16 PST
,
Benjamin Poulain
no flags
Details
Formatted Diff
Diff
Patch
(23.49 KB, patch)
2013-11-18 19:07 PST
,
Benjamin Poulain
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Benjamin Poulain
Comment 1
2013-11-18 18:16:32 PST
Created
attachment 217260
[details]
Patch
WebKit Commit Bot
Comment 2
2013-11-18 18:18:27 PST
Attachment 217260
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCore/platform/network/ResourceHandle.h', u'Source/WebCore/platform/network/ResourceHandleClient.h', u'Source/WebCore/platform/network/ResourceHandleInternal.h', u'Source/WebCore/platform/network/cf/ResourceHandleCFNet.cpp']" exit_code: 1 Source/WebCore/platform/network/ResourceHandle.h:38: CFURLConnectionClient_V6 is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4] Total errors found: 1 in 5 files If any of these errors are false positives, please file a bug against check-webkit-style.
Build Bot
Comment 3
2013-11-18 18:57:57 PST
Comment on
attachment 217260
[details]
Patch
Attachment 217260
[details]
did not pass win-ews (win): Output:
http://webkit-queues.appspot.com/results/28618041
Benjamin Poulain
Comment 4
2013-11-18 19:07:47 PST
Created
attachment 217264
[details]
Patch
WebKit Commit Bot
Comment 5
2013-11-18 19:09:02 PST
Attachment 217264
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCore/platform/network/ResourceHandle.h', u'Source/WebCore/platform/network/ResourceHandleClient.h', u'Source/WebCore/platform/network/ResourceHandleInternal.h', u'Source/WebCore/platform/network/cf/ResourceHandleCFNet.cpp']" exit_code: 1 Source/WebCore/platform/network/ResourceHandle.h:75: CFURLConnectionClient_V6 is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4] Total errors found: 1 in 5 files If any of these errors are false positives, please file a bug against check-webkit-style.
Benjamin Poulain
Comment 6
2013-11-18 19:52:50 PST
I did some basic cleaning to reduce the numbers of #ifdefs. I'll add the asynchronous implementation on top of this.
Benjamin Poulain
Comment 7
2013-11-18 20:52:43 PST
Comment on
attachment 217264
[details]
Patch Clearing flags on attachment: 217264 Committed
r159479
: <
http://trac.webkit.org/changeset/159479
>
Benjamin Poulain
Comment 8
2013-11-18 20:52:45 PST
All reviewed patches have been landed. Closing bug.
Alexey Proskuryakov
Comment 9
2013-11-18 23:17:02 PST
Comment on
attachment 217264
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=217264&action=review
Looks good! QuickLook integration at ResourceHandle level is a surprising place to see it.
> Source/WebCore/platform/network/cf/ResourceHandleCFNet.cpp:394 > +#if PLATFORM(IOS) > + ProtectionSpace coreProtectionSpace = core(protectionSpace); > + if (coreProtectionSpace.authenticationScheme() == ProtectionSpaceAuthenticationSchemeUnknown) > + return false; > + return handle->canAuthenticateAgainstProtectionSpace(coreProtectionSpace); > +#else > return handle->canAuthenticateAgainstProtectionSpace(core(protectionSpace)); > +#endif
This looks like it could be cross-platform maybe. Did you blame the iOS side to see what this fix was for?
> Source/WebCore/platform/network/cf/ResourceHandleCFNet.cpp:881 > +CFURLConnectionClient_V6* ResourceHandle::connectionClientCallbacks()
The result of this function is copied anyway, why not return a const object pointer?
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