Closed
Bug 633221
Opened 15 years ago
Closed 15 years ago
Setting FF as default browser throws error when GIO Service is not available
Categories
(Firefox :: Shell Integration, defect, P2)
Tracking
()
VERIFIED
FIXED
Firefox 4.0b12
| Tracking | Status | |
|---|---|---|
| blocking2.0 | --- | - |
People
(Reporter: george.carstoiu, Assigned: ttaubert)
References
Details
(Keywords: regression)
Attachments
(3 files, 3 obsolete files)
|
53.30 KB,
image/png
|
Details | |
|
60.80 KB,
image/png
|
Details | |
|
1.81 KB,
patch
|
Details | Diff | Splinter Review |
Mozilla/5.0 (X11; Linux i686; rv:2.0b12pre) Gecko/20110210 Firefox/4.0b12pre
Reproducible: Always
Prerequisites: Set different browser as default browser of the OS
Steps to reproduce:
1. On clean profile start FF
2. When asked whether you want to set FF as default browser, press "Yes".
3. Enter Panorama
Actual results:
- panorama breaks
Expected results:
- the two tabs are shown and panorama acts normally
Observation:
- if user selects "No" at the browser default prompt, panorama does not break
Comment 1•15 years ago
|
||
Cannot reproduce on Mac.
George, how exactly does Panorama break? Do you get anything in the error console? Do you know if this is a regression?
Updated•15 years ago
|
Status: NEW → UNCONFIRMED
Ever confirmed: false
| Reporter | ||
Comment 2•15 years ago
|
||
Before logging bug, I did try to reproduce issue on Windows and Mac but I couldn't, only on Linux.
Please see Screenshot 1 and Screenshot 2 to understand what I meant by Panorama breaks.
| Reporter | ||
Comment 3•15 years ago
|
||
| Reporter | ||
Comment 4•15 years ago
|
||
Comment 5•15 years ago
|
||
Able to reproduce using Mozilla/5.0 (X11; Linux i686; rv:2.0b12pre) Gecko/20110210 Firefox/4.0b12pre.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Updated•15 years ago
|
| Reporter | ||
Comment 6•15 years ago
|
||
Regression range:
Last good:
Mozilla/5.0 (X11; Linux i686; rv:2.0b10pre) Gecko/20110111 Firefox/4.0b10pre
http://hg.mozilla.org/mozilla-central/rev/4413ed6ba5a5
First bad
Mozilla/5.0 (X11; Linux i686; rv:2.0b10pre) Gecko/20110112 Firefox/4.0b10pre
http://hg.mozilla.org/mozilla-central/rev/c0e05d518f57
Push log:
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=4413ed6ba5a5&tochange=c0e05d518f57
| Assignee | ||
Comment 7•15 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/f518eb4285bf (bug 624267)
Looks like this is the source of the regression.
| Assignee | ||
Comment 8•15 years ago
|
||
This is what I get in the error console right after saying "yes" to make FF my default browser:
Error: uncaught exception: [Exception... "Component returned failure code: 0x80040154 (NS_ERROR_FACTORY_NOT_REGISTERED) [nsIShellService.setDefaultBrowser]" nsresult: "0x80040154 (NS_ERROR_FACTORY_NOT_REGISTERED)" location: "JS frame :: chrome://browser/content/browser.js :: delayedStartup :: line 6795" data: no]
Summary: Panorama breaks when FF is set as default browser → Setting FF as default browser throws error (and breaks panorama)
| Assignee | ||
Updated•15 years ago
|
| Assignee | ||
Updated•15 years ago
|
Summary: Setting FF as default browser throws error (and breaks panorama) → Setting FF as default browser throws error (and breaks session restore)
| Assignee | ||
Comment 9•15 years ago
|
||
Moving to Shell Integration. Sorry for the bug spam.
Component: General → Shell Integration
QA Contact: general → shell.integration
Updated•15 years ago
|
| Assignee | ||
Comment 10•15 years ago
|
||
This is the line that fails with NS_ERROR_FACTORY_NOT_REGISTERED:
http://mxr.mozilla.org/mozilla-central/source/browser/components/shell/src/nsGNOMEShellService.cpp#233
| Assignee | ||
Updated•15 years ago
|
Assignee: nobody → tim.taubert
Status: NEW → ASSIGNED
Summary: Setting FF as default browser throws error (and breaks session restore) → Setting FF as default browser throws error when GIO Service is not available
| Assignee | ||
Comment 11•15 years ago
|
||
| Assignee | ||
Updated•15 years ago
|
Attachment #512042 -
Flags: review?(roc)
Attachment #512042 -
Flags: review?(roc) → review+
| Assignee | ||
Comment 12•15 years ago
|
||
Comment on attachment 512042 [details] [diff] [review]
patch v1
Requesting approval for a simple patch with a test :)
Pushed to try: http://tbpl.mozilla.org/?tree=MozillaTry&pusher=tim.taubert@gmx.de&rev=074eb56a41e9
Attachment #512042 -
Flags: approval2.0?
Attachment #512042 -
Flags: approval2.0? → approval2.0+
| Assignee | ||
Comment 13•15 years ago
|
||
Attachment #512042 -
Attachment is obsolete: true
| Assignee | ||
Updated•15 years ago
|
Keywords: checkin-needed
Comment 14•15 years ago
|
||
Glad you got approval, because while this kinda hurts, I don't think we should hold the release for it at this stage. blocking-.
blocking2.0: ? → -
| Reporter | ||
Comment 15•15 years ago
|
||
I would also like to point out the following related to the setting FF as default browser, reproducible only in Linux.
When updating from 3.6.14 to a beta release (in my case FF 4 beta 11) and choosing "Yes" in the dialogue the following also happen:
- bookmark toolbar does not display the bookmarked websites (although they are present in "Show all bookmars|Bookmark toolbar")
- "Error console" entry from the menu disappears
| Assignee | ||
Comment 16•15 years ago
|
||
If everything's ok after restarting Firefox then I guess that this is the problem this patch will fix.
Comment 17•15 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Flags: in-testsuite+
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 4.0b12
Comment 18•15 years ago
|
||
ttaubert: this was a high churn patch for a really simple change.
Why didn't you just do this:
nsCOMPtr<nsIStringBundleService> bundleService =
do_GetService(NS_STRINGBUNDLE_CONTRACTID, &rv);
- NS_ENSURE_SUCCESS(rv, rv);
+ NS_ENSURE_SUCCESS(rv, NS_OK);
Comment 19•15 years ago
|
||
Backed out due to permaorange m-oth on Linux
http://hg.mozilla.org/mozilla-central/rev/0c6d2cf554c7
http://hg.mozilla.org/mozilla-central/rev/c6e8f8d4468e
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1297697772.1297699032.8784.gz
TEST-UNEXPECTED-FAIL | chrome://mochitests/content/browser/browser/components/shell/test/browser_633221.js | we're not the default browser
plus the test looks like not being run on Linux64
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Updated•15 years ago
|
Status: REOPENED → ASSIGNED
| Assignee | ||
Comment 20•15 years ago
|
||
(In reply to comment #19)
> plus the test looks like not being run on Linux64
Runs on Linux64 - I pushed to try to test some preconditions.
http://tbpl.mozilla.org/?tree=MozillaTry&pusher=tim.taubert@gmx.de&rev=4eaceb0ecfb5
| Assignee | ||
Comment 21•15 years ago
|
||
Test corrected. Patch rewritten by comment #18.
Attachment #512103 -
Attachment is obsolete: true
Attachment #512202 -
Flags: review?(roc)
| Assignee | ||
Comment 22•15 years ago
|
||
Comment on attachment 512202 [details] [diff] [review]
patch v2
Passed try.
http://tbpl.mozilla.org/?tree=MozillaTry&pusher=tim.taubert@gmx.de&rev=15d4da2cd98e
Attachment #512202 -
Flags: review?(roc) → review+
| Assignee | ||
Updated•15 years ago
|
Attachment #512202 -
Flags: approval2.0?
Attachment #512202 -
Flags: approval2.0? → approval2.0+
| Assignee | ||
Comment 23•15 years ago
|
||
Attachment #512202 -
Attachment is obsolete: true
| Assignee | ||
Updated•15 years ago
|
Keywords: checkin-needed
Comment 24•15 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 15 years ago → 15 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Comment 25•15 years ago
|
||
Works for me on:
Mozilla/5.0 (X11; Linux i686; rv:2.0b12) Gecko/20100101 Firefox/4.0b12
| Reporter | ||
Comment 26•15 years ago
|
||
Considering comment 25 setting to Verified Fixed.
Thanks for checking Andrei.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•