[Webkit-unassigned] [Bug 137114] New: Wrong CacheModel at iOS Version

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 25 02:43:22 PDT 2014


https://bugs.webkit.org/show_bug.cgi?id=137114

           Summary: Wrong CacheModel  at iOS Version
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: iOS
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Page Loading
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: ljin.zq at gmail.com


at iOS , WebPreferences store at NSUserDefault, and load when it invloke - (instancetype)initWithIdentifier:(NSString *)anIdentifier sendChangeNotification:(BOOL)sendChangeNotification 。

However,I got found a bug .

I store "WebKitCacheModelPreferenceKey" for value "2" to NSUserDefault and restart my Application.

then call the following code:

WebCacheModel settingMode = [[WebPreferences standardPreferences] cacheModel];
WebCacheModel webViewMode =[WebView _cacheModel];

assert(settingMode  == webViewMode);// not the same value.  settingMode  is "2" ,but  webViewMode  is "0".



I think the problem maybe at "+ (WebPreferences *)standardPreferences".

It sholud  change the following code:

_standardPreferences = [[WebPreferences alloc] initWithIdentifier:nil sendChangeNotification:NO];

to

_standardPreferences = [[WebPreferences alloc] initWithIdentifier:nil sendChangeNotification:YES];

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list