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)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: dholbert, Assigned: mfinkle)

References

Details

Attachments

(1 file, 1 obsolete file)

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.
Confirmed. I got this crash by clicking 2 times on the "tabs from my other computers" button on the about:firstrun page.
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.
Attached patch patch (obsolete) — Splinter Review
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
Attachment #457333 - Flags: review?(21)
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)
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?
(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
Attached patch patchSplinter Review
Attachment #457339 - Flags: review?
Attachment #457339 - Flags: review? → review?(21)
Attachment #457333 - Attachment is obsolete: true
Attachment #457333 - Flags: review?(21)
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.
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
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 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+
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
Blocks: 579346
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.

Attachment

General

Created:
Updated:
Size: