Skip to content
  • commit-queue@webkit.org's avatar
    [BlackBerry] Basic authentication challenge credentials for stored credentials... · 11fdc73c
    commit-queue@webkit.org authored
    [BlackBerry] Basic authentication challenge credentials for stored credentials again after restarting browser
    https://bugs.webkit.org/show_bug.cgi?id=96362
    
    Patch by Sean Wang <Xuewen.Wang@torchmobile.com.cn> on 2012-09-19
    Reviewed by Rob Buis.
    
    Source/WebCore:
    
    This patch enable reading credentials from the persistent credential storage
    when it is not private browsing mode and there is not a credential in the RAM
    for the requested resource.
    
    Since we don't load persistent stored credentials into RAM at the starting time,
    even we have saved the credentials at the last browsing, after restarting the browser,
    it will still challenge for credentials for the requesting resources.
    
    No new tests, it uses the original authentication tests. There is no way to
    clear all credentials or restarting browsers to test this feature.
    
    * platform/network/blackberry/CredentialBackingStore.cpp:
    (WebCore::CredentialBackingStore::getProtectionSpace):
    (WebCore):
    * platform/network/blackberry/CredentialBackingStore.h:
    (CredentialBackingStore):
    * platform/network/blackberry/NetworkManager.cpp:
    (WebCore::NetworkManager::startJob):
    
    Source/WebKit/blackberry:
    
    Make the FrameLoaderClient use credential storage according to the macro
    BLACKBERRY_CREDENTIAL_PERSIST
    
    * WebCoreSupport/FrameLoaderClientBlackBerry.cpp:
    (WebCore::FrameLoaderClientBlackBerry::shouldUseCredentialStorage):
    (WebCore):
    * WebCoreSupport/FrameLoaderClientBlackBerry.h:
    (FrameLoaderClientBlackBerry):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129087 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    11fdc73c