RESOLVED FIXED 58292
Provide new setting to allow site icon loading despite disabling automatic image loading in general.
https://bugs.webkit.org/show_bug.cgi?id=58292
Summary Provide new setting to allow site icon loading despite disabling automatic im...
Alice Liu
Reported 2011-04-11 17:38:23 PDT
Turning off the WebCore setting for automatic image loading has the intentional side effect of disabling site icon (favicon) image loading. It's possible that a WebView client may actually just want to turn off image loading in webpages but still want to load site icons so that the icondatabase gets populated. I'd like to add an additional preference that is heeded only regarding the icondatabase.
Attachments
patch (25.20 KB, patch)
2011-04-11 18:09 PDT, Alice Liu
no flags
patch - fixed whitespace bot complaints (25.19 KB, patch)
2011-04-11 18:15 PDT, Alice Liu
sam: review-
patch - moved pref to [|I]WebPreferencesPrivate.[h|idl] (25.29 KB, patch)
2011-04-12 12:15 PDT, Alice Liu
sam: review+
Alice Liu
Comment 1 2011-04-11 18:09:19 PDT
WebKit Review Bot
Comment 2 2011-04-11 18:11:10 PDT
Attachment 89135 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/http..." exit_code: 1 Source/WebKit/win/WebPreferences.cpp:930: Extra space after ( in function call [whitespace/parens] [4] Source/WebKit/win/WebPreferences.cpp:937: Extra space after ( in function call [whitespace/parens] [4] Source/WebKit/win/WebPreferences.h:178: Extra space after ( in function call [whitespace/parens] [4] Source/WebKit/win/WebPreferences.h:181: Extra space after ( in function call [whitespace/parens] [4] Total errors found: 4 in 26 files If any of these errors are false positives, please file a bug against check-webkit-style.
Alice Liu
Comment 3 2011-04-11 18:15:01 PDT
Created attachment 89136 [details] patch - fixed whitespace bot complaints
Build Bot
Comment 4 2011-04-11 21:13:23 PDT
Sam Weinig
Comment 5 2011-04-11 21:15:39 PDT
Comment on attachment 89136 [details] patch - fixed whitespace bot complaints View in context: https://bugs.webkit.org/attachment.cgi?id=89136&action=review > Source/WebKit/mac/WebView/WebPreferences.h:338 > + @method setWillLoadSiteIconsIgnoringImageLoadingPreference: > + @param flag > +*/ > +- (void)setLoadsSiteIconsIgnoringImageLoadingPreference: (BOOL)flag; > + > +/*! > + @method willLoadSiteIconsIgnoringImageLoadingPreference > +*/ > +- (BOOL)loadsSiteIconsIgnoringImageLoadingPreference; These have not gone through API review, so these need to be in WebPreferencesPrivate.h
Alice Liu
Comment 6 2011-04-12 12:15:57 PDT
Created attachment 89241 [details] patch - moved pref to [|I]WebPreferencesPrivate.[h|idl]
Sam Weinig
Comment 7 2011-04-12 13:06:22 PDT
Comment on attachment 89241 [details] patch - moved pref to [|I]WebPreferencesPrivate.[h|idl] View in context: https://bugs.webkit.org/attachment.cgi?id=89241&action=review > Source/WebCore/loader/FrameLoader.cpp:712 > + if (settings && !settings->loadsImagesAutomatically() && !settings->loadsSiteIconsIgnoringImageLoadingSetting()) > + return; > Looks like you added an extra space here.
Alice Liu
Comment 8 2011-04-12 13:23:07 PDT
Note You need to log in before you can comment on or make changes to this bug.