Closed Bug 662155 Opened 13 years ago Closed 13 years ago

addTab should report the exception when loadURIWithFlags fails

Categories

(Firefox :: Tabbed Browser, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
Firefox 7

People

(Reporter: dao, Assigned: dao)

Details

Attachments

(1 file)

Attached patch patchSplinter Review
See bug 662152 comment 2. A simplified testcase would be:
gBrowser.addTab("http://bing.com", 0)
Attachment #537456 - Flags: review?(gavin.sharp)
Attachment #537456 - Flags: review?(gavin.sharp) → review+
http://hg.mozilla.org/mozilla-central/rev/93911949517c
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 7
Can you please be more specific on how to verify this bug as being resolved fixed?
thx
Open the error console and execute this:

top.opener.gBrowser.addTab("http://bing.com", 0)

You should get an exception telling you that 0 is an invalid argument.
Is this the exception mentioned?

Error: [Exception... "Could not convert JavaScript argument - 0 was passed, expected object. Did you mean null? arg 2 [nsIWebNavigation.loadURI]"  nsresult: "0x80570035 (NS_ERROR_XPC_BAD_CONVERT_JS_ZERO_ISNOT_NULL)"  location: "JS frame :: chrome://global/content/bindings/browser.xml :: loadURIWithFlags :: line 193"  data: no]
Source File: chrome://browser/content/tabbrowser.xml
Line: 1334
yes...
Considering comment4 and comment5, setting resolution to Verified Fixed.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: