Closed Bug 472363 Opened 16 years ago Closed 3 years ago

mSPTimerLock in nsWebShellWindow isn't needed

Categories

(Core :: XUL, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INACTIVE

People

(Reporter: asqueella, Unassigned)

References

Details

Attachments

(2 files)

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.
Attached patch patchSplinter Review
Assignee: nobody → asqueella
Status: NEW → ASSIGNED
This calls window.restore() in response to a mutation event caused by nsXULWindow::SavePersistentAttributes() setting "sizemode" attribute. window.restore() ends up in nsWebShellWindow::SetPersistenceTimer().
The patch also causes changes made to window position/size/mode from such mutation listeners to be correctly persisted.
Depends on: 472258
This patch is quite bitrotted. I'm presuming it's something we still want, however.

The bug assignee is inactive on Bugzilla, so the assignee is being reset.

Assignee: asqueella → nobody
Status: ASSIGNED → NEW

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.

Attachment

General

Created:
Updated:
Size: