Closed Bug 902550 Opened 11 years ago Closed 11 years ago

Disable more session restore code in e10s

Categories

(Firefox :: Session Restore, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 26

People

(Reporter: billm, Assigned: billm)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 2 obsolete files)

Attached patch sessionrestore-fix (obsolete) — Splinter Review
Session restore is supposed to be completely disabled on mozilla-central when browser.tabs.remote is set. However, it looks like we can still call the onLoad function, which can cause problems. This patch adds another test to avoid this.
Attachment #787023 - Flags: review?(ttaubert)
Comment on attachment 787023 [details] [diff] [review]
sessionrestore-fix

Review of attachment 787023 [details] [diff] [review]:
-----------------------------------------------------------------

::: browser/components/sessionstore/src/SessionStore.jsm
@@ +393,5 @@
>  
> +    if (this._disabledForMultiProcess) {
> +      this._deferredInitialized.resolve();
> +      return;
> +    }

I think we should bail out earlier, before observers are added. Otherwise we'll end up tracking windows when they're opened etc.
Attachment #787023 - Flags: review?(ttaubert)
Attached patch sessionrestore-fix v2 (obsolete) — Splinter Review
This should skip the observers.
Attachment #787023 - Attachment is obsolete: true
Attachment #787692 - Flags: review?(ttaubert)
Tom noticed a couple paths through the API that need fixing.
Attachment #787692 - Attachment is obsolete: true
Attachment #787692 - Flags: review?(ttaubert)
Attachment #787706 - Flags: review?(ttaubert)
Attachment #787706 - Flags: review?(ttaubert) → review+
Status: NEW → ASSIGNED
OS: Linux → All
Hardware: x86_64 → All
Version: unspecified → Trunk
https://hg.mozilla.org/mozilla-central/rev/eb7bf75e0a28
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 26
(In reply to Bill McCloskey (:billm) from comment #0)
> Session restore is supposed to be completely disabled on mozilla-central
> when browser.tabs.remote is set.

What about all other public functions?
HistoryMenu calls: getClosedTabCount, getClosedTabData, getClosedWindowCount, getClosedWindowData

duplicateTabIn call duplicateTab

is it permanent disabled or just until Session restore will be e10s ready?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: