Closed
Bug 578711
Opened 15 years ago
Closed 15 years ago
Opening two copies of "Tabs from my Other Computers" closes Fennec
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: dholbert, Assigned: mfinkle)
References
Details
Attachments
(1 file, 1 obsolete file)
2.20 KB,
patch
|
vingtetun
:
review+
|
Details | Diff | Splinter Review |
STR:
0. Configure Fennec with a Weave account
1. Drag Fennec to the right, and click the "tabs from my other computers" icon in lower-left corner.
2. After that page loads, repeat step 1.
ACTUAL RESULTS: Crash. No crash reporter dialog shows up.
VERSION INFO:
I'm using a Fennec 2.0 nightly, up-to-date from the repos, with "Gecko/20100713" in the UA string.
This is on a Nokia n900.
Comment 1•15 years ago
|
||
Confirmed. I got this crash by clicking 2 times on the "tabs from my other computers" button on the about:firstrun page.
Reporter | ||
Comment 2•15 years ago
|
||
NOTE: If I close the first instance of "Tabs from my other computers" before opening the second one, I don't get a crash.
So, I think the basic problem just happens whenever you have two copies of this page open at once.
Assignee | ||
Comment 3•15 years ago
|
||
This patch adds a method to BrowserUI to select an existing tab before opening a new one. Better UX and it "fixes" the bug.
I will try to find the real reason the window closes too.
Assignee: nobody → mark.finkle
Assignee | ||
Updated•15 years ago
|
Attachment #457333 -
Flags: review?(21)
Reporter | ||
Comment 4•15 years ago
|
||
Note that even with the attached patch, you can still trigger this bug by manually going to "about:sync-tabs" in two different tabs. (you probably know that already though)
Comment 5•15 years ago
|
||
Why doesn't the crash reporter come up with this particular crash?
+ if (tabs[i].browser.currentURI.spec == "about:sync-tabs") {
Shouldn't "about:sync-tabs" be aURI?
So that patch selects an existing tab, but shouldn't it also reload that existing tab, since content could have changed?
Assignee | ||
Comment 6•15 years ago
|
||
(In reply to comment #5)
> Why doesn't the crash reporter come up with this particular crash?
>
> + if (tabs[i].browser.currentURI.spec == "about:sync-tabs") {
> Shouldn't "about:sync-tabs" be aURI?
Yes!
> So that patch selects an existing tab, but shouldn't it also reload that
> existing tab, since content could have changed?
Not really. This method shouldn't be called for all types of pages, and it works like the Firefox "open existing tab" feature - which does not reload the page.
New patch coming up
I am more worried about comment 4
Assignee | ||
Comment 7•15 years ago
|
||
Attachment #457339 -
Flags: review?
Assignee | ||
Updated•15 years ago
|
Attachment #457339 -
Flags: review? → review?(21)
Reporter | ||
Updated•15 years ago
|
Attachment #457333 -
Attachment is obsolete: true
Attachment #457333 -
Flags: review?(21)
Comment 8•15 years ago
|
||
From IRC:
[21:00] <mfinkle> dholbert, mw22: there is no crash!
[21:00] <mfinkle> the window just decides to close
So I'm updating the summary to reflect that.
Updated•15 years ago
|
Summary: Opening "Tabs from my Other Computers" twice in a row crashes Fennec → Opening "Tabs from my Other Computers" twice in a row closes Fennec
Reporter | ||
Updated•15 years ago
|
Keywords: crash
Summary: Opening "Tabs from my Other Computers" twice in a row closes Fennec → Opening two copies of "Tabs from my Other Computers" closes Fennec
Comment 9•15 years ago
|
||
Comment on attachment 457339 [details] [diff] [review]
patch
>diff --git a/chrome/content/browser-ui.js b/chrome/content/browser-ui.js
>--- a/chrome/content/browser-ui.js
>+++ b/chrome/content/browser-ui.js
>- _openTab: function _openTab(url) {
>- setTimeout(function() BrowserUI.newTab(url), 0);
>- },
>-
I'm just worried about this setTimeout wrap we remove.
Attachment #457339 -
Flags: review?(21) → review+
Assignee | ||
Comment 10•15 years ago
|
||
The setTimeout was from the days when sync was an add-on and needed to worry about the awesomebar screen appearing. Doesn't affect anything now (it seems)
pushed:
http://hg.mozilla.org/mobile-browser/rev/36723271befb
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 11•15 years ago
|
||
Filed bug 579346 for comment 4
Comment 12•14 years ago
|
||
This feature has been changed on the latest Nightly build and it works as expected. I will close this issue as verified fixed.
--
Mozilla/5.0 (Android;Linux armv7l;rv:9.0a1)Gecko/20110920
Firefox/9.0a1 Fennec/9.0a1
Device: Samsung Galaxy S
OS: Android 2.2
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•