Closed
Bug 451576
Opened 16 years ago
Closed 16 years ago
uncaught exceptions on startup
Categories
(Firefox for Android Graveyard :: General, defect, P2)
Firefox for Android Graveyard
General
Tracking
(Not tracked)
VERIFIED
FIXED
fennec1.0a1
People
(Reporter: db48x, Assigned: db48x)
Details
Attachments
(2 files)
1.66 KB,
patch
|
Details | Diff | Splinter Review | |
731 bytes,
patch
|
Gavin
:
review+
|
Details | Diff | Splinter Review |
[Exception... "Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsINavBookmarksService.getBookmarkIdsForURI]" nsresult: "0x80004003 (NS_ERROR_INVALID_POINTER)" location: "JS frame :: chrome://browser/content/browser-ui.js :: anonymous :: line 319" data: no] and if I bandaid that, I get this: [Exception... "'[JavaScript Error: "uri is null" {file: "chrome://browser/content/browser-ui.js" line: 343}]' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)" location: "JS frame :: chrome://browser/content/deckbrowser.xml :: selectTab :: line 240" data: yes] They're both because browser.currentURI is an empty string.
Assignee | ||
Comment 1•16 years ago
|
||
Comment 2•16 years ago
|
||
Comment on attachment 334907 [details] [diff] [review] 451576-1.diff The cause of this is the fact that BrowserUI.selectTab is entered very early (from the bottom of deckbrowser.createBrowser I'd like to make selectTab a bit more robust and not push the defenses down into other methods. Can we find a way to bail out of selectTab?
Attachment #334907 -
Flags: review?(mark.finkle) → review-
Comment 3•16 years ago
|
||
Calling SetURI when the browser.currentURI = null seems wrong, so this patch just bails from the function. This is different than Daniel's patch which will try/catch and tweak values. Not sure which is more appropriate
Comment 4•16 years ago
|
||
Comment on attachment 334907 [details] [diff] [review] 451576-1.diff This patch could still be appropriate
Attachment #334907 -
Flags: review-
Updated•16 years ago
|
Flags: blocking-fennec1.0+
Priority: -- → P2
Target Milestone: --- → Fennec A1
Updated•16 years ago
|
Attachment #334994 -
Flags: review?(gavin.sharp)
Comment 5•16 years ago
|
||
Comment on attachment 334994 [details] [diff] [review] Alternative patch When is currentURI ever null? AFAIK that's never the case in /browser's tabbrowser. Do we need to be triggering about:blank loads for new tabs?
Comment 6•16 years ago
|
||
(In reply to comment #5) > (From update of attachment 334994 [details] [diff] [review]) > When is currentURI ever null? AFAIK that's never the case in /browser's > tabbrowser. Do we need to be triggering about:blank loads for new tabs? The very first call to deckbrowser.newTab(), called from BrowserUI.init() - this ends up firing the "TabSelect" event from inside deckbrowser, which ends up calling BrowserUI.setURI() I don't think tabbrowser fires "TabSelect" for new tabs. It fires "TabOpen" only.
Comment 7•16 years ago
|
||
Seems like we should be setting up deckbrowser to have a blank tab by default, like tabbrowser, and avoid calling newTab during startup.
Comment 8•16 years ago
|
||
Comment on attachment 334994 [details] [diff] [review] Alternative patch ...but we can take this for now, I guess. Add a FIXME comment and file a followup?
Attachment #334994 -
Flags: review?(gavin.sharp) → review+
Comment 9•16 years ago
|
||
filed bug 454028 as a followup. changeset: 123:12dffbaf540f tag: tip user: Mark Finkle <mfinkle@mozilla.com> date: Sat Sep 06 23:06:04 2008 -0500 summary: b=451576, r=gavin. uncaught exceptions on startup
Updated•16 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•