Closed
Bug 795764
Opened 12 years ago
Closed 10 years ago
about:preferences do not work properly if browser.cache.offline.enable is false
Categories
(Toolkit :: Preferences, defect)
Tracking
()
VERIFIED
FIXED
mozilla32
Tracking | Status | |
---|---|---|
firefox32 | --- | verified |
People
(Reporter: backy0175, Assigned: evilpie)
References
Details
(Whiteboard: p=0 s=it-32c-31a-30b.3 [qa!])
Attachments
(2 files, 2 obsolete files)
114.32 KB,
image/png
|
Details | |
6.42 KB,
patch
|
jaws
:
review-
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 5.1; rv:15.0) Gecko/20100101 Firefox/15.0.1
Build ID: 20120905151427
Steps to reproduce:
open about:preferences.
Actual results:
some part of about:preferences do not work properly.
open about:preferences then click "Content".
font settings has problems.
go back about:prefernces then click "Applications".
there is no applications.
I found error message on error console.
=====================================
Timestamp: 2012/10/01 7:51:20
Error: NS_ERROR_NOT_AVAILABLE: Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIApplicationCacheService.getGroups]
Source File: chrome://browser/content/preferences/in-content/advanced.js
Line: 332
=====================================
I checked about:config and found "browser.cache.offline.enable = false" is a cause.
Expected results:
about:preferences should work with "browser.cache.offline.enable = false".
Comment 1•12 years ago
|
||
I did't have any font problems on the 10/02 Nightly, but the Applications section is empty and I do get the same error in the Error Console.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows XP → All
Hardware: x86 → All
Comment 2•12 years ago
|
||
My bad. I was looking at the font, not the font settings. The font settings drop-down doesn't work for me either.
Updated•12 years ago
|
Component: Untriaged → Preferences
Product: Firefox → Toolkit
Updated•11 years ago
|
Blocks: fxdesktoptriage
Updated•11 years ago
|
Whiteboard: p=0
Updated•11 years ago
|
Assignee | ||
Comment 4•11 years ago
|
||
Assignee | ||
Updated•11 years ago
|
Attachment #8424481 -
Attachment is patch: true
Attachment #8424481 -
Attachment mime type: text/x-patch → text/plain
Attachment #8424481 -
Flags: review?(jaws)
Comment 5•11 years ago
|
||
Comment on attachment 8424481 [details] [diff] [review]
v1
Review of attachment 8424481 [details] [diff] [review]:
-----------------------------------------------------------------
It would be nice if a test was included that opened the preferences and tried to switch to the advanced tab (window.selectCategory("paneAdvanced");), and see if the Advanced header is not hidden.
r=me with the test and the following change.
::: browser/components/preferences/in-content/advanced.js
@@ -460,5 @@
> }
>
> - var cacheService = Components.classes["@mozilla.org/network/application-cache-service;1"].
> - getService(Components.interfaces.nsIApplicationCacheService);
> - var groups = cacheService.getGroups();
There are three places within this file that use the application-cache-service. Can you fix the others too?
Attachment #8424481 -
Flags: review?(jaws) → review+
Comment 7•11 years ago
|
||
This also happens for me, and my browser.cache.offline.enable is true, the default setting. I get no error in the console when attempting to switch tabs, but I do get one each time I open the preferences:
NS_ERROR_NOT_AVAILABLE: Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsICacheService.visitEntries] (advanced.js:302)
This is the 2014-05-19 build.
Comment 8•11 years ago
|
||
I just fix it in my browser, setting browser.cache.disk.enable to true. Setting the value to false produces:
NS_ERROR_NOT_AVAILABLE: Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsICacheService.visitEntries] advanced.js:314
just opening the new inline preferences page
using:
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0
32.0a1 (2014-05-19)
Comment 9•11 years ago
|
||
Me too: setting browser.cache.disk.enable to true fixes it.
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → evilpies
Assignee | ||
Comment 10•10 years ago
|
||
Attachment #8424481 -
Attachment is obsolete: true
Attachment #8430735 -
Flags: review?(jaws)
Assignee | ||
Comment 11•10 years ago
|
||
Oh actually we can simplify _getOfflineAppUsage, groups is passed in anyway.
Attachment #8430735 -
Attachment is obsolete: true
Attachment #8430735 -
Flags: review?(jaws)
Attachment #8430739 -
Flags: review?(jaws)
Comment 13•10 years ago
|
||
Comment on attachment 8430739 [details] [diff] [review]
v2.1
Review of attachment 8430739 [details] [diff] [review]:
-----------------------------------------------------------------
This is a very straightforward test, looks good!
::: browser/components/preferences/in-content/tests/browser.ini
@@ +5,5 @@
>
> [browser_advanced_update.js]
> [browser_bug410900.js]
> [browser_bug731866.js]
> +[browser_bug795764.js]
Can you please add to the test name to make this more descriptive? See this thread for more background: https://mail.mozilla.org/pipermail/firefox-dev/2013-September/000957.html
You can change this test name to:
browser_bug795764_cachedisabled.js
Attachment #8430739 -
Flags: review?(jaws) → review+
Comment 14•10 years ago
|
||
Comment on attachment 8430739 [details] [diff] [review]
v2.1
Review of attachment 8430739 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/components/preferences/in-content/advanced.js
@@ -431,5 @@
> {
> - var cacheService = Components.classes["@mozilla.org/network/application-cache-service;1"].
> - getService(Components.interfaces.nsIApplicationCacheService);
> - if (!groups)
> - groups = cacheService.getGroups();
You've removed the cacheService variable, but it is still referenced below on line 444.
Attachment #8430739 -
Flags: review+ → review-
Assignee | ||
Comment 15•10 years ago
|
||
Okay sorry! I just reverted that stupid last minute change and pushed the patch. http://hg.mozilla.org/integration/mozilla-inbound/rev/07b5d912ff57
Comment 16•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla32
Updated•10 years ago
|
Whiteboard: p=2 → p=0 s=it-32c-31a-30b.3 [qa?]
Updated•10 years ago
|
Whiteboard: p=0 s=it-32c-31a-30b.3 [qa?] → p=0 s=it-32c-31a-30b.3 [qa+]
Updated•10 years ago
|
QA Contact: camelia.badau
Comment 18•10 years ago
|
||
Verified fixed on Windows 7 64bit, Ubuntu 13.10 32bit and Mac OSX 10.9.2 using latest Nightly 32.0a1 (buildID: 20140603030220).
Status: RESOLVED → VERIFIED
status-firefox32:
--- → verified
Whiteboard: p=0 s=it-32c-31a-30b.3 [qa+] → p=0 s=it-32c-31a-30b.3 [qa!]
Comment 19•10 years ago
|
||
I'm trying in Firefox nightly 32.0a1 (2014-06-04)
and does not work.
In the preference screen only appears in the left menu and clear the content area only a "?" symbol in a yellow box.
In consolose:
NS_ERROR_NOT_AVAILABLE: Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsICacheService.visitEntries] advanced.js:314
ReferenceError: reference to undefined property this._path osfile_win_front.jsm:837
Comment 20•10 years ago
|
||
Note: As Erik points out in #9 setting browser.cache.disk.enable=true solve the bug.
Assignee | ||
Comment 21•10 years ago
|
||
This is probably a different issue, let's just open a new bug and wrap that call in try { } catch as well.
Comment 22•10 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•