Closed
Bug 1361041
Opened 8 years ago
Closed 8 years ago
Crash in nsIFrame::SetStyleContextWithoutNotification
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
RESOLVED
FIXED
mozilla55
Tracking | Status | |
---|---|---|
firefox-esr52 | --- | unaffected |
firefox53 | --- | unaffected |
firefox54 | --- | unaffected |
firefox55 | + | fixed |
People
(Reporter: marcia, Assigned: emilio)
References
Details
(Keywords: crash, regression)
Crash Data
Attachments
(1 file)
This bug was filed from the Socorro interface and is
report bp-a951f694-a2b5-4a3b-a565-2e3880170424.
=============================================================
Seen while looking at nightly crash stats - crashes started using 20170426030329: http://bit.ly/2pOwnHh. Crashes also present on ESR52
Possible regression range based on Build ID: https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=a30dc237c3a600a5231f2974fc2b85dfb5513414&tochange=0f5ba06c4c5959030a05cb852656d854065e2226
Comment 1•8 years ago
|
||
Any ideas, Emilio? You have a number of patches in that regression range. (This signature has persisted past when bug 1359995 landed.)
Flags: needinfo?(emilio+bugs)
Assignee | ||
Comment 2•8 years ago
|
||
So at a glance it seems it could come from bug 1357142.
The call that's causing the crash seems to be [1], that is, we're trying to recreate frames for the root element, which should always have a frame created at the initialization of the PresShell.
So the function I removed in that bug had something like the following:
if (!mDidInitialize) {
// Nothing to do here. In fact, if we proceed and aContent is the
// root we will crash.
return NS_OK;
}
Which PostRecreateFramesFor doesn't guard against (because I thought it was not needed, per tryserver results).
Sounds a lot like we do need that check, though I'd like to see a testcase where it happens :(
Will post a patch soon.
[1]: http://searchfox.org/mozilla-central/rev/3dc6ceb42746ab40f1441e1e659ffb8f62ae78e3/layout/base/nsCSSFrameConstructor.cpp#2420
Blocks: 1357142
Flags: needinfo?(emilio+bugs)
Comment hidden (mozreview-request) |
Comment 4•8 years ago
|
||
[Tracking Requested - why for this release]: new crash
Assignee | ||
Comment 5•8 years ago
|
||
The commit message needs a s/Recreate/Reconstruct/, but that should do it.
Thanks for the heads-up Andrew and Marcia :)
Assignee | ||
Updated•8 years ago
|
status-firefox54:
--- → unaffected
![]() |
||
Comment 7•8 years ago
|
||
mozreview-review |
Comment on attachment 8863401 [details]
Bug 1361041: Avoid posting ReconstructFrame hints to an uninitialized PresShell.
https://reviewboard.mozilla.org/r/135172/#review138126
r=me
Attachment #8863401 -
Flags: review?(bzbarsky) → review+
Comment hidden (mozreview-request) |
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → emilio+bugs
Pushed by ecoal95@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/b87e63c76691
Avoid posting ReconstructFrame hints to an uninitialized PresShell. r=bz
Comment 11•8 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Updated•8 years ago
|
status-firefox53:
--- → unaffected
status-firefox-esr52:
--- → unaffected
You need to log in
before you can comment on or make changes to this bug.
Description
•