Closed
Bug 514671
Opened 15 years ago
Closed 15 years ago
Port Bug 480826 (Firefox should honour browser.chrome.favicons setting when opening Edit->Preferences->Applications)
Categories
(SeaMonkey :: Preferences, defect)
SeaMonkey
Preferences
Tracking
(Not tracked)
RESOLVED
FIXED
seamonkey2.0
People
(Reporter: philip.chee, Assigned: philip.chee)
References
Details
(Keywords: fixed-seamonkey2.0)
Attachments
(1 file, 1 obsolete file)
1.59 KB,
patch
|
iannbugzilla
:
review+
neil
:
superreview+
|
Details | Diff | Splinter Review |
+++ This bug was initially created as a clone of Bug #480826 +++ [quote] User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.0.6) Gecko/2009022823 Firefox/3.0.6 Build Identifier: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.0.6) Gecko/2009022823 Firefox/3.0.6 When opening Edit->Preferences->Applications and selecting an Action a list of actions pops up. If this list contains URLs for websites, their favicons are loaded even if browser.chrome.favicons is set to false. Reproducible: Always Steps to Reproduce: 1. rm -rf .mozilla 2. Set browser.chrome.favicons to false 3. Open Edit->Preferences->Applications 4. Select the "Web Feed" action and view favicons being loaded Actual Results: The favicons are being loaded even if browser.chrome.favicons is set to false. Expected Results: The favicons should not be loaded. Here is the patch I use: --- browser/components/preferences/applications.js.ORI 2008-10-24 07:37:29.000000000 +0200 +++ browser/components/preferences/applications.js 2009-03-01 11:54:25.000000000 +0100 @@ -1894,7 +1894,7 @@ // they'll only visit URLs derived from that template (i.e. with %s // in the template replaced by the URL of the content being handled). - if (/^https?/.test(uri.scheme)) + if (/^https?/.test(uri.scheme) && this._prefSvc.getBoolPref("browser.chrome.favicons")) return uri.prePath + "/favicon.ico"; return ""; [/quote]
Assignee | ||
Comment 1•15 years ago
|
||
More or less a direct port of a one line patch.
Attachment #398665 -
Flags: superreview?(neil)
Attachment #398665 -
Flags: review?(iann_bugzilla)
Comment 2•15 years ago
|
||
Comment on attachment 398665 [details] [diff] [review] Patch v1.0 honour |browser.chrome.favicons| > _getIconURLForWebApp: function(aWebAppURITemplate) { > var uri = ioSvc.newURI(aWebAppURITemplate, null, null); > > // Unfortunately we need to use favicon.ico here, but we don't know > // about any other possibility to retrieve an icon for the web app/site > // without loading a specific full URL and parsing it for a possible > // shortcut icon. > >- return /^https?/.test(uri.scheme) ? uri.resolve("/favicon.ico") : ""; >+ return /^https?/.test(uri.scheme) && prefSvc.getBoolPref("browser.chrome.favicons") ? >+ uri.resolve("/favicon.ico") : ""; The pref check should be the first thing in the function...
Comment on attachment 398665 [details] [diff] [review] Patch v1.0 honour |browser.chrome.favicons| You should probably do the pref check in the function that calls _getIconURLForWebApp (i.e. _getIconURLForHandlerApp)
Attachment #398665 -
Flags: review?(iann_bugzilla) → review-
Assignee | ||
Comment 4•15 years ago
|
||
> You should probably do the pref check in the function that calls
> _getIconURLForWebApp (i.e. _getIconURLForHandlerApp)
Moved.
Attachment #398665 -
Attachment is obsolete: true
Attachment #398830 -
Flags: superreview?(neil)
Attachment #398830 -
Flags: review?(iann_bugzilla)
Attachment #398665 -
Flags: superreview?(neil)
Attachment #398830 -
Flags: review?(iann_bugzilla) → review+
Updated•15 years ago
|
Attachment #398830 -
Flags: superreview?(neil) → superreview+
Comment 5•15 years ago
|
||
Comment on attachment 398830 [details] [diff] [review] Patch v1.2 Move the pref check to _getIconURLForHandlerApp() [Checkin: Comment 6] Good point, I didn't spot that it got called twice.
Assignee | ||
Updated•15 years ago
|
Flags: wanted-seamonkey2.0?
Updated•15 years ago
|
Flags: wanted-seamonkey2.0? → wanted-seamonkey2.0+
Assignee | ||
Updated•15 years ago
|
Attachment #398830 -
Attachment description: Patch v1.2 Move the pref check to _getIconURLForHandlerApp() → [for checkin] Patch v1.2 Move the pref check to _getIconURLForHandlerApp()
Assignee | ||
Updated•15 years ago
|
Keywords: checkin-needed
Comment 6•15 years ago
|
||
Comment on attachment 398830 [details] [diff] [review] Patch v1.2 Move the pref check to _getIconURLForHandlerApp() [Checkin: Comment 6] http://hg.mozilla.org/comm-central/rev/28990692bc66
Attachment #398830 -
Attachment description: [for checkin] Patch v1.2 Move the pref check to _getIconURLForHandlerApp() → Patch v1.2 Move the pref check to _getIconURLForHandlerApp()
[Checkin: Comment 6]
Updated•15 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → seamonkey2.0
Updated•15 years ago
|
Keywords: classic,
fixed-seamonkey2.0
You need to log in
before you can comment on or make changes to this bug.
Description
•