Closed
Bug 488669
Opened 17 years ago
Closed 17 years ago
Port Bug 488238 [Blank about:sessionrestore] to SeaMonkey
Categories
(SeaMonkey :: Session Restore, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
seamonkey2.0b1
People
(Reporter: misak.bugzilla, Assigned: misak.bugzilla)
References
Details
Attachments
(1 file, 2 obsolete files)
|
927 bytes,
patch
|
misak.bugzilla
:
review+
misak.bugzilla
:
superreview+
|
Details | Diff | Splinter Review |
it doesn't make much sense to display about:sessionrestore when we don't
have data for any open windows at all.
Attachment #373080 -
Flags: superreview?(neil)
Attachment #373080 -
Flags: review?(neil)
Comment 1•17 years ago
|
||
Comment on attachment 373080 [details] [diff] [review]
ported patch
>+ let winData = aState.windows || null;
>+ if (!winData || winData.length == 0)
>+ return false;
>+
> // don't wrap a single about:sessionrestore page
>- let winData = aState.windows || null;
>- if (winData && winData.length == 1 && winData[0].tabs &&
>+ if (winData.length == 1 && winData[0].tabs &&
> winData[0].tabs.length == 1 && winData[0].tabs[0].entries &&
> winData[0].tabs[0].entries.length == 1 &&
> winData[0].tabs[0].entries[0].url == "about:sessionrestore")
Does this work if rewritten as:
if (!aState.windows || !aState.windows.length)
return false;
let winData = aState.windows;
if (winData.length == 1 && winData[0].tabs &&
| Assignee | ||
Comment 2•17 years ago
|
||
I don't have test for this case, but can't see any reason why not.
Attachment #373080 -
Attachment is obsolete: true
Attachment #373093 -
Flags: superreview?(neil)
Attachment #373093 -
Flags: review?(neil)
Attachment #373080 -
Flags: superreview?(neil)
Attachment #373080 -
Flags: review?(neil)
Comment 3•17 years ago
|
||
(In reply to comment #1)
> (From update of attachment 373080 [details] [diff] [review])
> >+ let winData = aState.windows || null;
> >+ if (!winData || winData.length == 0)
> >+ return false;
> >+
> > // don't wrap a single about:sessionrestore page
> >- let winData = aState.windows || null;
> >- if (winData && winData.length == 1 && winData[0].tabs &&
> >+ if (winData.length == 1 && winData[0].tabs &&
> > winData[0].tabs.length == 1 && winData[0].tabs[0].entries &&
> > winData[0].tabs[0].entries.length == 1 &&
> > winData[0].tabs[0].entries[0].url == "about:sessionrestore")
> Does this work if rewritten as:
> if (!aState.windows || !aState.windows.length)
> return false;
>
> let winData = aState.windows;
> if (winData.length == 1 && winData[0].tabs &&
I don't see any benefit of doing it this way. "|| null" seems unnecessary in the original patch, though.
Comment 4•17 years ago
|
||
Comment on attachment 373093 [details] [diff] [review]
as suggested
>+ if (winData.length == 1 && winData[0].tabs &&
Nit: trailing spaces
[there were some on the previous patch too, so maybe they moved ;-) ]
Attachment #373093 -
Flags: superreview?(neil)
Attachment #373093 -
Flags: superreview+
Attachment #373093 -
Flags: review?(neil)
Attachment #373093 -
Flags: review+
| Assignee | ||
Comment 5•17 years ago
|
||
carrying forward r+ sr+ from Neil.
Attachment #373093 -
Attachment is obsolete: true
Attachment #373101 -
Flags: superreview+
Attachment #373101 -
Flags: review+
| Assignee | ||
Updated•17 years ago
|
Keywords: checkin-needed
| Assignee | ||
Updated•17 years ago
|
OS: All → Mac OS X
Comment 6•17 years ago
|
||
Comment on attachment 373101 [details] [diff] [review]
nits fixed, for checkin
[Checkin: Comment 6]
http://hg.mozilla.org/comm-central/rev/c6e7be2ab73d
Attachment #373101 -
Attachment description: nits fixed, for checkin → nits fixed, for checkin
[Checkin: Comment 6]
Updated•17 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → seamonkey2.0b1
You need to log in
before you can comment on or make changes to this bug.
Description
•