Port Bug 590268 [Provide access to sessionstore tab data sooner] to SeaMonkey

RESOLVED FIXED in seamonkey2.1b3

Status

SeaMonkey
Session Restore
RESOLVED FIXED
7 years ago
7 years ago

People

(Reporter: Misak Khachatryan, Assigned: Misak Khachatryan)

Tracking

Trunk
seamonkey2.1b3

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

7 years ago
Created attachment 511327 [details] [diff] [review]
straight port

From parent bug:

Tab Candy needs this; otherwise we don't get our tab location data right at
start up.
Attachment #511327 - Flags: review?(neil)

Comment 1

7 years ago
Comment on attachment 511327 [details] [diff] [review]
straight port

I was thinking they could have just written them as rather long || statements, but somehow I doubt that would have passed review ;-)
Attachment #511327 - Flags: review?(neil) → review+

Comment 2

7 years ago
Just for the record, those rather long || statements look like this!

return (aTab.__SS_extdata ||
        (aTab.linkedBrowser.__SS_data &&
         aTab.linkedBrowser.__SS_data.extData) ||
        {})[aKey] || "";

(aTab.__SS_extdata ||
 (aTab.linkedBrowser.__SS_data && 
  aTab.linkedBrowser.__SS_data.extData) ||
 (aTab.__SS_extdata = {}))[aKey] = aStringValue;

Comment 3

7 years ago
Much more compact but clear as mud!
(Assignee)

Comment 4

7 years ago
Pushed: http://hg.mozilla.org/comm-central/rev/c92d62353031
Status: ASSIGNED → RESOLVED
Last Resolved: 7 years ago
OS: Linux → All
Hardware: x86_64 → All
Resolution: --- → FIXED
Target Milestone: --- → seamonkey2.1b3
You need to log in before you can comment on or make changes to this bug.