Snippet fails to load on about:home due to error

RESOLVED FIXED in Firefox 13



7 years ago
7 years ago


(Reporter: fryn, Assigned: fryn)


Firefox 14

Firefox Tracking Flags

(firefox13 fixed)


(Whiteboard: [about-home][qa-], URL)


(1 attachment)



7 years ago
Steps to reproduce:

1. Open Firefox so that about:home is the page immediately loaded and the update branch is taken in the function loadSnippets(). (This can artificially be induced by setting window.localStorage["snippets-last-update"] to 0 and then restarting Firefox without session restore enabled.)
2. No snippet appears, because the following exception is thrown:

Error: uncaught exception: [Exception... "Component returned failure code: 0x805e0006 []"  nsresult: "0x805e0006 (<unknown>)"  location: "JS frame :: chrome://browser/content/abouthome/aboutHome.js :: loadSnippets :: line 223"  data: no]

I'm not exactly sure why this happens, but since it corrects itself upon a reload, my guess is that the XMLHttpRequest cannot be properly initialized.

This happens already on about:home in Firefox stable and is not due to the new visual refresh code.

Comment 1

7 years ago
Created attachment 603582 [details] [diff] [review]
workaround to ensure that at least the default snippets load

Here's a workaround to ensure that at least the default snippets load.

We should still investigate why throws.
Whiteboard: [about-home]
Comment on attachment 603582 [details] [diff] [review]
workaround to ensure that at least the default snippets load

please file a follow-up to investigate reasons for the exception and add a comment there pointing to that bug.
Attachment #603582 - Flags: review+

Comment 3

7 years ago
Pushed to fx-team:

Filing followup next.
Assignee: nobody → fryn
Whiteboard: [about-home] → [about-home][fixed-in-fx-team]

backported with bug 711157
Last Resolved: 7 years ago
status-firefox13: --- → fixed
Resolution: --- → FIXED
Whiteboard: [about-home][fixed-in-fx-team] → [about-home]
Target Milestone: --- → Firefox 14
Whiteboard: [about-home] → [about-home][qa+]

Comment 5

7 years ago
Mozilla/5.0 (Windows NT 6.1; rv:13.0) Gecko/20100101 Firefox/13.0
BuildID: 20120528154913

I evaluated window.localStorage["snippets-last-update"]=0; in the Error Console and restarted Firefox. I didn't get the error from comment 0, but I got:

Error: self._interfaceBuilder is undefined
Source File: resource://testpilot/modules/setup.js
Line: 260 

Frank, is that ok or should I set window.localStorage["snippets-last-update"] to 0 some other way?

Comment 6

7 years ago
Regarding my previous message, when evaluating window.localStorage["snippets-last-update"]=0; in the Error Console, I get the following error:

Error: uncaught exception: [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIDOMWindow.localStorage]"  nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)"  location: "JS frame :: javascript:%20window.localStorage["snippets-last-update"]=0; :: <TOP_LEVEL> :: line 1"  data: no]

Comment 7

7 years ago
(In reply to Ioana Budnar [QA] from comment #6)

This bug doesn't need further verification.
Whiteboard: [about-home][qa+] → [about-home][qa-]
You need to log in before you can comment on or make changes to this bug.