gecko-dev/layout
Emilio Cobos Álvarez 1e75c0c5e1 Bug 1361041: Avoid posting ReconstructFrame hints to an uninitialized PresShell. r=bz
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 have a testcase
where it happens :(

[1]: http://searchfox.org/mozilla-central/rev/3dc6ceb42746ab40f1441e1e659ffb8f62ae78e3/layout/base/nsCSSFrameConstructor.cpp#2420

MozReview-Commit-ID: Lh6SohNmmI6

--HG--
extra : rebase_source : 5b7076f86d41f5489e47ca16ac2f3620812ee9e8
2017-05-01 18:59:50 +02:00
..
base Bug 1361041: Avoid posting ReconstructFrame hints to an uninitialized PresShell. r=bz 2017-05-01 18:59:50 +02:00
build Bug 1353629 - PBlob refactoring - part 5 - IPCBlobInputStreamStorage, r=smaug 2017-04-24 12:09:40 +02:00
doc
forms Bug 1360241: Devirtualize nsIFrame::GetType. r=heycam 2017-04-30 17:30:08 +02:00
generic Bug 1360241: Devirtualize nsIFrame::GetType. r=heycam 2017-04-30 17:30:08 +02:00
inspector Bug 1346256 Part 3: Modify GetCSSStyleRules to collect ServoStyleRules. r=xidorn 2017-04-07 15:21:36 -07:00
ipc Backed out 2 changesets (bug 1350660) for causing merge conflicts a=backout 2017-03-31 17:45:11 -07:00
mathml Bug 1360241: Devirtualize nsIFrame::GetType. r=heycam 2017-04-30 17:30:08 +02:00
media Bug 1349467 - Fix some Audio/Video BUG_COMPONENTs in moz.build files r=jmaher 2017-03-22 17:23:12 -07:00
painting Bug 1360241: Devirtualize nsIFrame::GetType. r=heycam 2017-04-30 17:30:08 +02:00
printing Bug 1360241: Devirtualize nsIFrame::GetType. r=heycam 2017-04-30 17:30:08 +02:00
reftests Bug 1360991 - stylo: Adjust text expectations. r=emilio 2017-05-01 17:23:56 +08:00
style Bug 1341102: Adjust expectations for servo/servo#16672. r=emilio 2017-05-01 18:06:32 +02:00
svg Bug 1360241: Devirtualize nsIFrame::GetType. r=heycam 2017-04-30 17:30:08 +02:00
tables Bug 1360241: Devirtualize nsIFrame::GetType. r=heycam 2017-04-30 17:30:08 +02:00
tools Bug 1344132 - Make reftest run stylo-vs-gecko test without special reftest.list. r=heycam 2017-04-28 11:15:45 +08:00
xul Bug 1360241: Devirtualize nsIFrame::GetType. r=heycam 2017-04-30 17:30:08 +02:00
moz.build