gecko-dev/layout/base
Bobby Holley 8fb4fb3d6c Bug 1393791 - Stop unbinding native-anonymous content off a script runner. r=emilio
The failure mode in the attached crashtest is an inconsistency in the flattened
tree. Specifically, we null out mVideoControls in an nsVideoFrame, but defer
the UnbindFromTree call on that NAC element, which measn that its mParent still
points to the nsVideoFrame's mContent. Because all this stuff runs off of script
runners, and the anonymous content destroyer is not guaranteed to run before
other potential script runners, we end up running arbitrary script while the
tree mismatch exists. This script calls back into ProcessPendingRestyles, which
causes trouble.

We could build a separate deferral mechanism, but it's not clear that we actually
need to defer the unbind anymore. The deferred unbind was added in bug 489008,
which predated a lot of simplifications in layout/dom interaction.

MozReview-Commit-ID: 1JYAhiXKVJC
2017-08-27 15:29:36 -07:00
..
crashtests Bug 1383845 - Enable tests disabled for bug 1383845. r=TYLin 2017-08-17 10:51:59 +10:00
doc
gtest Bug 1355752 - Remove B2G wording in AccessibleCaret. r=TYLin 2017-04-20 13:16:42 +08:00
tests Bug 1375332 - stylo: force restyle descendants after character set is updated. r=emilio 2017-08-21 18:58:53 +08:00
AccessibleCaret.cpp Bug 1355752 - Remove B2G wording in AccessibleCaret. r=TYLin 2017-04-20 13:16:42 +08:00
AccessibleCaret.h
AccessibleCaretEventHub.cpp Bug 1372405 - Provide names for all runnables in the tree (r=froydnj) 2017-06-26 14:19:58 -07:00
AccessibleCaretEventHub.h
AccessibleCaretLogger.h
AccessibleCaretManager.cpp Bug 1377989 - part2: Rename nsRange::GetEndParent() to nsRange::GetEndContainer() r=smaug 2017-07-11 21:11:37 +09:00
AccessibleCaretManager.h Bug 1361072 - Change caller of RestrictCaretDraggingOffsets() to use getter_AddRefs. r=dholbert 2017-05-02 14:24:54 +08:00
ArenaObjectID.h Bug 1367190 patch 2 - Remove nsPresArena::AllocateBySize, nsIPresShell::AllocateMisc, and nsPresContext::AllocateFromShell. r=mats 2017-05-24 09:36:11 -04:00
ArenaRefPtr.h Bug 1379830 - stylo: Allow ServoStyleContext to participate in ArenaRefPtr; r=bholley 2017-07-19 22:54:21 -07:00
ArenaRefPtrInlines.h Bug 1379830 - stylo: Allow ServoStyleContext to participate in ArenaRefPtr; r=bholley 2017-07-19 22:54:21 -07:00
CaretAssociationHint.h
FrameProperties.h Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
GeckoRestyleManager.cpp Bug 1389743: Only reconstruct frames synchronously from ContentRemoved when called from frame construction. r=mats 2017-08-23 09:58:57 +02:00
GeckoRestyleManager.h Backed out changeset 27e08c76b767 (bug 1388692) for failing mochitest layout/style/test/test_animations_styles_on_event.html on Android. r=backout 2017-08-14 15:16:28 +02:00
GeometryUtils.cpp Bug 1360241: Devirtualize nsIFrame::GetType. r=heycam 2017-04-30 17:30:08 +02:00
GeometryUtils.h
LayoutLogging.cpp
LayoutLogging.h
MobileViewportManager.cpp Bug 1312605 - Part 1 - Don't clobber resolution changes that happen before first paint on Fennec. r=kats 2017-06-29 09:26:37 -07:00
MobileViewportManager.h Bug 1312605 - Part 1 - Don't clobber resolution changes that happen before first paint on Fennec. r=kats 2017-06-29 09:26:37 -07:00
OverflowChangedTracker.h Bug 1324647 - Upgrade back "Need to flush before destroying!" assertion. 2017-07-11 14:46:16 +10:00
PositionedEventTargeting.cpp Bug 1335895 - Android GeckoView Dynamic Toolbar Version 3 r=botond,dvander,jchen,kats 2017-04-20 15:15:14 -07:00
PositionedEventTargeting.h
PresShell.cpp Merge m-c to autoland, a=merge 2017-08-25 17:32:33 -07:00
PresShell.h Bug 1389743: Only reconstruct frames synchronously from ContentRemoved when called from frame construction. r=mats 2017-08-23 09:58:57 +02:00
RestyleLogging.h
RestyleManager.cpp Bug 1389743: Only reconstruct frames synchronously from ContentRemoved when called from frame construction. r=mats 2017-08-23 09:58:57 +02:00
RestyleManager.h Bug 1391803 - Use nsStringFwd.h for forward declaring string classes. r=froydnj 2017-08-16 16:48:52 -07:00
RestyleManagerInlines.h Backed out changeset 27e08c76b767 (bug 1388692) for failing mochitest layout/style/test/test_animations_styles_on_event.html on Android. r=backout 2017-08-14 15:16:28 +02:00
RestyleTracker.cpp Bug 1371457 - Change restyle marker data to animation state. r=bholley,gregtatum 2017-06-28 11:59:28 -07:00
RestyleTracker.h Bug 1360471 (part 4) - Use a bitfield to represent profiler features. r=mstange. 2017-05-01 14:23:34 +10:00
RestyleTrackerInlines.h
ScrollbarStyles.cpp
ScrollbarStyles.h
ServoRestyleManager.cpp Bug 1388298 - Add an API to process all invalidations on the main thread. r=emilio 2017-08-24 15:36:48 +08:00
ServoRestyleManager.h Bug 1388298 - Add an API to process all invalidations on the main thread. r=emilio 2017-08-24 15:36:48 +08:00
ShapeUtils.cpp
ShapeUtils.h
StackArena.cpp
StackArena.h
StaticPresData.cpp Bug 1367860 (part 3) - Construct language-specific default variable font as fallback font, not specified font. r=dbaron 2017-08-18 12:56:02 -07:00
StaticPresData.h Bug 1367860 (part 3) - Construct language-specific default variable font as fallback font, not specified font. r=dbaron 2017-08-18 12:56:02 -07:00
TouchManager.cpp
TouchManager.h
UnitTransforms.h Bug 1387514: Upgrade BaseRect (derived classes) width and height direct member variable use to instead use Width()/SetWidth() and Height()/SetHeight() in layout/*. r=dholbert 2017-08-14 08:30:04 -04:00
Units.h Bug 1387514: Upgrade BaseRect (derived classes) width and height direct member variable use to instead use Width()/SetWidth() and Height()/SetHeight() in layout/*. r=dholbert 2017-08-14 08:30:04 -04:00
WordMovementType.h
ZoomConstraintsClient.cpp Bug 1378930 - Part 2: Remove the aName parameter from SchedulerGroup/DocGroup/DispatcherTrait. r=billm 2017-07-26 16:13:35 +08:00
ZoomConstraintsClient.h
moz.build Bug 1387956 (part 2) - Overhaul handling of nsWindowSizes. r=mccr8. 2017-08-10 14:14:09 +10:00
nsAutoLayoutPhase.cpp
nsAutoLayoutPhase.h
nsBidi.h
nsBidiPresUtils.cpp Bug 1384669: Reduce refcount churn in BidiParagraphData by using non-refcounted pointer hash keys. r=jfkthame 2017-07-26 12:47:53 -07:00
nsBidiPresUtils.h Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
nsBidi_ICU.cpp
nsBidi_ICU.h Bug 1352527 - Part 1: Add the nsPresContext::GetBidiEngine() API; r=jfkthame 2017-04-14 02:41:52 -04:00
nsBidi_noICU.cpp
nsBidi_noICU.h Bug 1352527 - Part 1: Add the nsPresContext::GetBidiEngine() API; r=jfkthame 2017-04-14 02:41:52 -04:00
nsCSSColorUtils.cpp Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
nsCSSColorUtils.h Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
nsCSSFrameConstructor.cpp Bug 1389645: Don't incorrectly set lazy frame construction bits in ContentAppended and ContentRangeInserted. r=bholley 2017-08-27 00:08:43 +02:00
nsCSSFrameConstructor.h Bug 1392964: Remove aDidReconstruct outparam from ContentRemoved. r=mats 2017-08-23 11:03:30 +02:00
nsCaret.cpp Bug 1390382 - Part 4: Avoid recomputing the selection in nsCaret::SchedulePaint() when the caller has the information available; r=dholbert 2017-08-15 18:57:16 -04:00
nsCaret.h Bug 1390382 - Part 4: Avoid recomputing the selection in nsCaret::SchedulePaint() when the caller has the information available; r=dholbert 2017-08-15 18:57:16 -04:00
nsChangeHint.h Bug 1359834 Part 2: Define a new nsChangeHint_ReflowHintsForFloatAreaChange hint and use it for float changes. r=dholbert 2017-07-14 17:20:35 -07:00
nsCompatibility.h
nsCounterManager.cpp Bug 1374580 (part 3) - Remove ns{,C}Substring typedefs. r=froydnj. 2017-06-20 19:19:52 +10:00
nsCounterManager.h Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
nsDocumentViewer.cpp Bug 1324499: Save and restore scroll position after reflow in GetContentSizeInternal r=dbaron 2017-08-21 21:25:20 +08:00
nsFrameManager.cpp Bug 1393791 - Stop unbinding native-anonymous content off a script runner. r=emilio 2017-08-27 15:29:36 -07:00
nsFrameManager.h Bug 1393791 - Stop unbinding native-anonymous content off a script runner. r=emilio 2017-08-27 15:29:36 -07:00
nsFrameManagerBase.h Bug 1389168 - Remove unnecessary IBM license text. r=gerv 2017-08-16 16:10:56 -05:00
nsFrameTraversal.cpp Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
nsFrameTraversal.h
nsGenConList.cpp
nsGenConList.h
nsIDocumentViewerPrint.h
nsIFrameTraversal.h
nsILayoutDebugger.h
nsILayoutHistoryState.idl
nsIPercentBSizeObserver.h Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
nsIPreloadedStyleSheet.idl
nsIPresShell.h Bug 1389743: Only reconstruct frames synchronously from ContentRemoved when called from frame construction. r=mats 2017-08-23 09:58:57 +02:00
nsIPresShellInlines.h Bug 1355343: Take all the snapshots into account. r=bholley 2017-05-07 16:36:47 +02:00
nsIReflowCallback.h
nsIStyleSheetService.idl
nsLayoutDebugger.cpp Backed out changeset e9985564e081 (bug 1388162) for failing chrome's test_animation_performance_warning.html | preserve-3d transform. r=backout 2017-08-10 14:40:20 +02:00
nsLayoutHistoryState.cpp
nsLayoutUtils.cpp Bug 1393233 - Add env var to disable Stylo. r=bholley 2017-08-23 17:58:32 -05:00
nsLayoutUtils.h Backed out changeset 5ea221b039d4 (bug 1363922) for bustage at layout/painting/FrameLayerBuilder.cpp:5863 (defined but unused). r=backout on a CLOSED TREE 2017-08-17 16:12:08 +02:00
nsPresArena.cpp Bug 1393636 (part 5) - Report memory usage of Gecko style structs separately. r=heycam. 2017-08-25 14:59:44 +10:00
nsPresArena.h Bug 1387956 (part 2) - Overhaul handling of nsWindowSizes. r=mccr8. 2017-08-10 14:14:09 +10:00
nsPresArenaObjectList.h Bug 1379830 - stylo: Allow ServoStyleContext to participate in ArenaRefPtr; r=bholley 2017-07-19 22:54:21 -07:00
nsPresContext.cpp Bug 1375332 - stylo: force restyle descendants after character set is updated. r=emilio 2017-08-21 18:58:53 +08:00
nsPresContext.h Bug 1355721 - stylo: Implement font feature values lookup r=emilio,xidorn 2017-08-23 18:05:53 -07:00
nsPresState.h Bug 1382189 - Persist preview value in PressState for select element to ensure the text is consistent after frame re-construction. r=heycam 2017-07-20 15:40:46 +08:00
nsQuoteList.cpp
nsQuoteList.h
nsRefreshDriver.cpp Merge m-c to autoland, a=merge 2017-08-21 17:20:06 -07:00
nsRefreshDriver.h Merge m-c to autoland, a=merge 2017-08-21 17:20:06 -07:00
nsStyleChangeList.cpp Bug 1377158 - (Part 4) Reduce the assertion cost to check reconstruction frame hint. r=bholley,heycam 2017-07-28 00:23:05 +08:00
nsStyleChangeList.h
nsStyleSheetService.cpp Bug 1390428 (part 1) - Remove many nsXPIDLCString local variables. r=erahm. 2017-08-16 13:58:35 +10:00
nsStyleSheetService.h