Remove preprocessing from nsSessionStore.js in SeaMonkey
Categories
(SeaMonkey :: Session Restore, enhancement)
Tracking
(seamonkey2.49esr wontfix, seamonkey2.53 fixed, seamonkey2.57esr fixed, seamonkey2.63 wontfix)
People
(Reporter: frg, Assigned: frg)
References
Details
(Whiteboard: SM2.53.1)
Attachments
(1 file)
10.10 KB,
patch
|
iannbugzilla
:
review+
iannbugzilla
:
approval-comm-release+
iannbugzilla
:
approval-comm-esr60+
|
Details | Diff | Splinter Review |
Just in the way for easy testing.
See Bug 1228655 "Replace #ifdefs in browser code by AppConstants".
![]() |
Assignee | |
Comment 1•6 years ago
|
||
Tested in 2.53. z-order under mac seems to work now. RecentWindow.jsm uses more or less the same enumerator code.
Comment 3•6 years ago
•
|
||
(In reply to Ian Neal from comment #2)
Comment on attachment 9102849 [details] [diff] [review]
-#ifndef XP_MACOSX - if (!this._doResumeSession()) { -#endif + if (AppConstants.platform == "macosx" || !this._doResumeSession()) {
Shouldn't this be != rather than == ?
No, the old code always ran this block on the Mac rather than theelse
block which was#ifdef
'd out. (Might it be clearer to switch the blocks around and useif (AppConstants.platform != "macosx" && this._doResumeSession())
?
![]() |
Assignee | |
Comment 4•6 years ago
|
||
(Might it be clearer to switch the blocks
Our new code is the same as Fx does it now:
https://dxr.mozilla.org/comm-central/source/browser/components/sessionstore/SessionStore.jsm#1221
Our sessionstore code needs a makeover. Switched would probably be better but there seems to be no longer an else in Mozilla browser code. So better let it stay for now to ease backporting.
Pushed by frgrahl@gmx.net:
https://hg.mozilla.org/comm-central/rev/128a2ee8274f
Do not use preprocessing in nsSessionStore.js. r=IanN
![]() |
Assignee | |
Comment 6•6 years ago
|
||
![]() |
Assignee | |
Comment 7•5 years ago
|
||
Description
•