Closed Bug 723349 Opened 14 years ago Closed 14 years ago

Fix params in addTab on session restore failure

Categories

(Firefox for Android Graveyard :: General, defect)

ARM
Android
defect
Not set
normal

Tracking

(firefox11 fixed, firefox12 fixed, firefox13 fixed)

VERIFIED FIXED
Firefox 13
Tracking Status
firefox11 --- fixed
firefox12 --- fixed
firefox13 --- fixed

People

(Reporter: bnicholson, Assigned: bnicholson)

Details

Attachments

(1 file)

>diff --git a/mobile/android/chrome/content/browser.js b/mobile/android/chrome/content/browser.js > // Be ready to handle any restore failures by making sure we have a valid tab opened > let restoreCleanup = { > observe: function(aSubject, aTopic, aData) { > Services.obs.removeObserver(restoreCleanup, "sessionstore-windows-restored"); > if (aData == "fail") { > let params = { selected: restoreToFront }; > BrowserApp.addTab("about:home", { showProgress: false }); > } The params variable isn't used here (looks like I forgot to pass it to addTab in bug 592328).
CC'ing margaret since she added the showProgress param.
Attached patch patchSplinter Review
Remove "params" variable and add "selected" to addTab() params.
Attachment #593655 - Flags: review?(mark.finkle)
Attachment #593655 - Flags: review?(mark.finkle) → review+
Comment on attachment 593655 [details] [diff] [review] patch [Approval Request Comment] Fixes bug where externally loaded URL may not be selected if doing a session restore. Low risk.
Attachment #593655 - Flags: approval-mozilla-beta?
Attachment #593655 - Flags: approval-mozilla-aurora?
(In reply to Brian Nicholson (:bnicholson) from comment #0) > The params variable isn't used here (looks like I forgot to pass it to > addTab in bug 592328). Erm, that's bug 701092. Slightly off.
Comment on attachment 593655 [details] [diff] [review] patch [Triage Comment] Mobile only - approved for Aurora 12 and Beta 11.
Attachment #593655 - Flags: approval-mozilla-beta?
Attachment #593655 - Flags: approval-mozilla-beta+
Attachment #593655 - Flags: approval-mozilla-aurora?
Attachment #593655 - Flags: approval-mozilla-aurora+
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 13
Verified fixed on: Firefox 13.0a1 (2012-02-06) 20120206031148 http://hg.mozilla.org/mozilla-central/rev/814d0b2dbaba Device: HTC Desire Z OS: Android 2.3.3 Firefox 12.0a2 (2012-02-06) 20120206042011 http://hg.mozilla.org/releases/mozilla-aurora/rev/9fb0c06ceb49 Device: HTC Desire Z OS: Android 2.3.3 Firefox 11.0 20120206202409 http://hg.mozilla.org/releases/mozilla-beta/rev/1c0aba74d116 Device: HTC Desire Z OS: Android 2.3.3
Status: RESOLVED → VERIFIED
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: