Closed
Bug 472363
Opened 16 years ago
Closed 3 years ago
mSPTimerLock in nsWebShellWindow isn't needed
Categories
(Core :: XUL, defect)
Tracking
()
RESOLVED
INACTIVE
People
(Reporter: asqueella, Unassigned)
References
Details
Attachments
(2 files)
4.15 KB,
patch
|
Details | Diff | Splinter Review | |
1.66 KB,
application/vnd.mozilla.xul+xml
|
Details |
I'm not sure why it was added (http://bonsai.mozilla.org/cvsview2.cgi?diff_mode=context&whitespace_mode=show&root=/cvsroot&subdir=mozilla/xpfe/appshell/src&command=DIFF_FRAMESET&file=nsWebShellWindow.cpp&rev2=1.275&rev1=1.274), but it shouldn't be needed now: timer callbacks run on main thread, so the only thing this lock guards is SetPersistenceTimer/FirePersistenceTimer reentrancy and a lock is a rather heavyweight mechanism for that.
Reporter | ||
Comment 1•16 years ago
|
||
Assignee: nobody → asqueella
Status: NEW → ASSIGNED
Reporter | ||
Comment 2•16 years ago
|
||
This calls window.restore() in response to a mutation event caused by nsXULWindow::SavePersistentAttributes() setting "sizemode" attribute.
window.restore() ends up in nsWebShellWindow::SetPersistenceTimer().
Reporter | ||
Comment 3•16 years ago
|
||
The patch also causes changes made to window position/size/mode from such mutation listeners to be correctly persisted.
Comment 4•14 years ago
|
||
This patch is quite bitrotted. I'm presuming it's something we still want, however.
Comment 5•3 years ago
|
||
The bug assignee is inactive on Bugzilla, so the assignee is being reset.
Assignee: asqueella → nobody
Status: ASSIGNED → NEW
Reporter | ||
Comment 6•3 years ago
|
||
This was a peculiarity I had noticed in the code back at the time, with (almost) no visible effect.
Since no-one got around to landing it in 14 years that passed, the chances of that happening in the future are almost zero, so I'm closing it to get it off everyone's radar.
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INACTIVE
You need to log in
before you can comment on or make changes to this bug.
Description
•