gecko-dev/dom/xbl
Bobby Holley d42f0733ac Bug 1389300 - Inherit style backend into NS_NewDOMDocument. r=smaug,r=heycam
Our current machinery for enabling stylo requires a docshell - if there isn't
one, we default to the Gecko style system.

When getComputedStyle operates on an element without a presshell, it uses the
caller's presshell instead. If the element has previously been styled with
one style system (but no longer has a presshell), and the caller uses a
different style backend, using the caller's style system can cause crashes when
we pull bits of cached data off the DOM (like cached style attributes).

So we want to throw when window.getComputedStyle(element) is called for a
(window, element) pair with different style backends (which is what the next
patch in this bug does).

However, that causes a few failures where stylo-backed documents try to do
getComputedStyle on an XHR document (which, without a docshell, will use the
gecko style system).

So this patch does some work to propagate the creator's style backend into
various docshell-less documents. This should allow both chrome (which uses gecko)
and content (which uses stylo) to use getComputedStyle on the response document
for XHRs they create.

Note that the second patch in this bug will make
chromeWin.getComputedStyle(contentObj) throw. If we discover code that does
that, we can just make it invoke the content's getComputedStyle method over Xrays.

MozReview-Commit-ID: 5OsmHJKq5Ui
2017-08-15 19:10:43 -07:00
..
builtin
crashtests Bug 1341102 - Re-enable some crashtests. r=me 2017-07-24 18:35:19 -07:00
test Bug 1373513 - Part 2: Revert Bug 1364367. r=ckerschb 2017-07-12 11:00:27 +08:00
XBLChildrenElement.cpp Bug 1365092 - Move side effects of SetAttr, UnsetAttr, and ParseAttribute functions to BeforeSetAttr and AfterSetAttr r=bz 2017-06-07 10:28:20 -07:00
XBLChildrenElement.h Bug 1365092 - Move side effects of SetAttr, UnsetAttr, and ParseAttribute functions to BeforeSetAttr and AfterSetAttr r=bz 2017-06-07 10:28:20 -07:00
moz.build Bug 1351783 part 6 - Create and send KeyboardMap to APZCTreeManager. r=kats 2017-06-05 18:35:32 -05:00
nsBindingManager.cpp Bug 1326520 - Rename nsIURI.path to pathQueryRef. r=valentin.gosu 2017-07-29 20:50:21 +09:00
nsBindingManager.h Bug 1357142: Kill PresShell::RecreateFramesFor. r=bz 2017-04-17 18:01:37 +02:00
nsXBLBinding.cpp Bug 1386865 part 1 - Have GetServoStyleSet return non-const ServoStyleSet. r=TYLin 2017-08-03 16:58:23 +10:00
nsXBLBinding.h Bug 1386865 part 1 - Have GetServoStyleSet return non-const ServoStyleSet. r=TYLin 2017-08-03 16:58:23 +10:00
nsXBLContentSink.cpp Bug 1381253 - Remove redundant control flow declarations rs=ehsan 2017-07-15 19:03:04 +02:00
nsXBLContentSink.h Bug 1363640 Part 3 - Strip whitespaces for files under dom/xbl. r=heycam 2017-05-09 20:45:11 -07:00
nsXBLDocumentInfo.cpp Bug 1389300 - Inherit style backend into NS_NewDOMDocument. r=smaug,r=heycam 2017-08-15 19:10:43 -07:00
nsXBLDocumentInfo.h Bug 1363640 Part 5 - Add a table in nsXULPrototypeCache to cache XBL documents with servo backend. r=bz,heycam 2017-05-19 15:18:00 -07:00
nsXBLEventHandler.cpp
nsXBLEventHandler.h Bug 1351783 part 4 - Add a KeyboardShortcut type. r=kats,masayuki 2017-06-05 18:24:35 -05:00
nsXBLMaybeCompiled.h Bug 1325406 - Refactor rooting base class templates r=sfink r=mccr8 2017-01-10 10:12:14 +00:00
nsXBLProtoImpl.cpp Bug 1363640 Part 3 - Strip whitespaces for files under dom/xbl. r=heycam 2017-05-09 20:45:11 -07:00
nsXBLProtoImpl.h
nsXBLProtoImplField.cpp Bug 1390106 - Stop using versioned scripts in dom. r=mrbkap 2017-08-14 20:42:55 +09:00
nsXBLProtoImplField.h Bug 1363640 Part 3 - Strip whitespaces for files under dom/xbl. r=heycam 2017-05-09 20:45:11 -07:00
nsXBLProtoImplMember.h
nsXBLProtoImplMethod.cpp Bug 1390106 - Stop using versioned scripts in dom. r=mrbkap 2017-08-14 20:42:55 +09:00
nsXBLProtoImplMethod.h
nsXBLProtoImplProperty.cpp Bug 1390106 - Stop using versioned scripts in dom. r=mrbkap 2017-08-14 20:42:55 +09:00
nsXBLProtoImplProperty.h Bug 1363640 Part 3 - Strip whitespaces for files under dom/xbl. r=heycam 2017-05-09 20:45:11 -07:00
nsXBLPrototypeBinding.cpp Bug 1386865 part 1 - Have GetServoStyleSet return non-const ServoStyleSet. r=TYLin 2017-08-03 16:58:23 +10:00
nsXBLPrototypeBinding.h Bug 1386865 part 1 - Have GetServoStyleSet return non-const ServoStyleSet. r=TYLin 2017-08-03 16:58:23 +10:00
nsXBLPrototypeHandler.cpp Bug 1390106 - Stop using versioned scripts in dom. r=mrbkap 2017-08-14 20:42:55 +09:00
nsXBLPrototypeHandler.h Bug 1351783 part 4 - Add a KeyboardShortcut type. r=kats,masayuki 2017-06-05 18:24:35 -05:00
nsXBLPrototypeResources.cpp Bug 1381851 - Update comments for nsXBLPrototypeResources::ComputeServoStyleSet(). r=heycam 2017-07-28 16:33:22 +08:00
nsXBLPrototypeResources.h Bug 1386865 part 1 - Have GetServoStyleSet return non-const ServoStyleSet. r=TYLin 2017-08-03 16:58:23 +10:00
nsXBLResourceLoader.cpp Bug 1388939, part 5 - Rename nsFrameManager::GetUndisplayedContent to GetDisplayNoneStyleFor. r=dholbert 2017-08-01 15:27:59 +01:00
nsXBLResourceLoader.h Bug 1290276 Part 5 - Add XBL stylesheets to ServoStyleSet so that it can be used in servo cascading later. r=heycam 2017-06-05 13:06:52 +08:00
nsXBLSerialize.cpp
nsXBLSerialize.h Bug 1363640 Part 3 - Strip whitespaces for files under dom/xbl. r=heycam 2017-05-09 20:45:11 -07:00
nsXBLService.cpp Bug 1388939, part 5 - Rename nsFrameManager::GetUndisplayedContent to GetDisplayNoneStyleFor. r=dholbert 2017-08-01 15:27:59 +01:00
nsXBLService.h
nsXBLWindowKeyHandler.cpp Bug 1387406 - part5: nsXBLWindowKeyHandler should treat editor as HTMLEditor r=smaug 2017-08-07 15:08:02 +09:00
nsXBLWindowKeyHandler.h Bug 1351783 part 19 - Rename Keyboard.h to KeyboardMap.h. r=masayuki 2017-06-15 18:06:00 -04:00