Bug 87665

Summary: [BlackBerry] http authentication challenge issue when loading favicon
Product: WebKit Reporter: Jonathan Dong <jonathan.dong.webkit>
Component: WebKit BlackBerryAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: charles.wei, japhet, joenotcharles, leo.yang, rwlbuis, staikos, tonikitoo, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch none

Description Jonathan Dong 2012-05-28 07:43:27 PDT
RIM PR: 160587

way to reproduce:

if we try to load any site which needs http authentication, and when the authentication challenge pops up, we press cancel button to cancel the challenge, then the favicon loading will trigger the authentication challenge once again.

root cause:
favicon loading is triggered when the main resource has been loaded and parsed, so if we cancel the main resource loading, we should cancel the favicon loading as well.
Comment 1 Jonathan Dong 2012-05-28 07:56:55 PDT
Created attachment 144360 [details]
Patch
Comment 2 Rob Buis 2012-05-28 10:44:01 PDT
Comment on attachment 144360 [details]
Patch

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

Ok.

> Source/WebCore/ChangeLog:8
> +        Provided the TargetType when generating a favicon loading

Provide the TargetType

> Source/WebCore/ChangeLog:9
> +        request. Loading favicon is triggered after the main resource

Loading favicons

> Source/WebCore/ChangeLog:14
> +        loading, which may confuse user.

the user.

> Source/WebCore/platform/network/blackberry/NetworkJob.cpp:764
> +            // The favicon loading is triggerred after the main resource has been loaded

Typo: triggered

> Source/WebCore/platform/network/blackberry/NetworkJob.cpp:767
> +            // load. If not we will receive another challenge which may confuse user.

Slightly better:

// and parsed, so if we cancel the authentication challenge when loading the main
// resource, we should also cancel loading the favicon when it starts to
// load. If not we will receive another challenge which may confuse the user.
Comment 3 Jonathan Dong 2012-05-28 18:36:32 PDT
Created attachment 144418 [details]
Patch
Comment 4 WebKit Review Bot 2012-05-28 19:58:26 PDT
Comment on attachment 144418 [details]
Patch

Clearing flags on attachment: 144418

Committed r118716: <http://trac.webkit.org/changeset/118716>
Comment 5 WebKit Review Bot 2012-05-28 19:58:31 PDT
All reviewed patches have been landed.  Closing bug.