Closed
Bug 629950
Opened 14 years ago
Closed 14 years ago
[@ nsIPresShell::RemoveRefreshObserverInternal(nsARefreshObserver*, mozFlushType)]
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
FIXED
mozilla2.0b11
People
(Reporter: smaug, Assigned: surkov)
Details
(Keywords: regression)
Attachments
(2 files)
1.49 KB,
patch
|
bzbarsky
:
review+
bzbarsky
:
approval2.0+
|
Details | Diff | Splinter Review |
1.57 KB,
patch
|
Details | Diff | Splinter Review |
https://crash-stats.mozilla.com/report/list?range_value=2&range_unit=weeks&signature=nsIPresShell%3A%3ARemoveRefreshObserverInternal%28nsARefreshObserver*%2C%20mozFlushType%29&version=Firefox%3A4.0b11pre
There are some crashes on trunk. #18 in the topcrash list atm.
Assignee | ||
Comment 1•14 years ago
|
||
Boris, is it unsafe to remove refresh observer when pagehide event is handled?
![]() |
||
Comment 2•14 years ago
|
||
All those crashes are at offset 0x20 == 32 and in 32-bit builds. And the code it crashes on is:
GetPresContext()->RefreshDriver()->
RemoveRefreshObserver(aObserver, aFlushType);
32 is the offset of mRefreshDriver inside nsPresContext on 32-bit systems. So GetPresContext() is returning null. And yes, that could happen during pagehide...
nsIPresShell::RemoveRefreshObserverInternal should null-check the prescontext. Probably the add method should too.
Alexander, want to write the the patch?
blocking2.0: --- → ?
Keywords: regression
Assignee | ||
Comment 3•14 years ago
|
||
sure.
asking approval until bug is marked as blocking
Assignee: nobody → surkov.alexander
Status: NEW → ASSIGNED
Attachment #508677 -
Flags: review?(bzbarsky)
Attachment #508677 -
Flags: approval2.0?
![]() |
||
Comment 4•14 years ago
|
||
Comment on attachment 508677 [details] [diff] [review]
patch
I'd prefer a local for the prescontext. With that change, r+a=me.
Attachment #508677 -
Flags: review?(bzbarsky)
Attachment #508677 -
Flags: review+
Attachment #508677 -
Flags: approval2.0?
Attachment #508677 -
Flags: approval2.0+
Assignee | ||
Comment 5•14 years ago
|
||
with bz's comment addressed
Assignee | ||
Comment 6•14 years ago
|
||
landed on 2.0 beta 11 - http://hg.mozilla.org/mozilla-central/rev/8b5cb26bbb10
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b11
Assignee | ||
Updated•14 years ago
|
blocking2.0: ? → ---
You need to log in
before you can comment on or make changes to this bug.
Description
•