gecko-dev/dom
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
..
animation Bug 1387951 - Enable test_discrete-animations.html on stylo. r=daisuke 2017-08-15 06:57:40 +09:00
asmjscache
audiochannel Bug 1388236 - Remove now obsolete AudioChannelConfig in favour of AudioPlaybackConfig. r=alwu 2017-08-10 13:00:09 +12:00
base Bug 1389300 - Inherit style backend into NS_NewDOMDocument. r=smaug,r=heycam 2017-08-15 19:10:43 -07:00
battery
bindings Bug 1381282 - Change nsScriptErrorBase::InitWithWindowID so that it does not call GetSensitiveInfoHiddenSpec as much as now. r=bz r=valentin 2017-08-07 15:56:30 +02:00
broadcastchannel
browser-element Bug 1331680 - Part 4: Tests for document.cookie behaving synchronously and reflecting changes from the parent process. r=jdm 2017-08-03 19:02:06 +08:00
cache
canvas Merge inbound to central, a=merge 2017-08-11 13:15:33 -07:00
commandhandler
console Bug 1386600 - Change nsIStringBundle methods to return |AString| instead of |wstring|. r=emk,sr=dbaron. 2017-08-04 14:40:52 +10:00
credentialmanagement Bug 1384307 - Set WebAuthn PublicKeyCredential's "id" and "type" fields r=keeler 2017-07-25 15:03:59 -07:00
crypto
encoding Bug 1384835 (part 3, attempt 2) - Remove the Preferences::Get*CString() variants that return nsAdoptingCString. r=froydnj. 2017-07-31 14:28:48 +10:00
events Bug 1275856 - Update dom event tests to reflect removal of RecorderErrorEvent and new MediaRecorderErrorEvent. r=smaug 2017-08-11 14:03:23 +12:00
fetch Bug 1379631 - Turn off OMT delivery for FetchDriver until bug 1380255 lands. The fix for this bug makes some test fail because of FetchDriver. r=mayhemer 2017-08-01 15:05:51 -04:00
file Backed out changeset 685802013f43 (bug 1389460) for OS X bustage at widget/cocoa/nsMenuX.mm:364: no member named 'DispatchDOMEvent' in 'nsIContent'. r=backout 2017-08-11 17:46:42 +02:00
filehandle
filesystem
flyweb Bug 1382172 - Name nsITimerCallback instances in native implementation. r=billm 2017-07-27 02:18:20 +08:00
gamepad Bug 1352410 - Add a preference to enable or disable haptic feedback for gamepads; r=Lenzak 2017-07-27 17:55:16 +08:00
geolocation Bug 1382172 - Name nsITimerCallback instances in native implementation. r=billm 2017-07-27 02:18:20 +08:00
grid
html Backed out changeset f92c249cae8b (bug 886907) for failing editor/libeditor/tests/test_bug1368544.html on Android 4.3 debug. r=backout 2017-08-15 16:35:07 +02:00
imptests
indexedDB Bug 1389868: Create bootstrap Sandboxes without indexedDB constructor by default. r=aswan 2017-08-12 18:33:35 -07:00
interfaces Backed out changeset f92c249cae8b (bug 886907) for failing editor/libeditor/tests/test_bug1368544.html on Android 4.3 debug. r=backout 2017-08-15 16:35:07 +02:00
ipc Bug 1390010: Part 1 - Allow JS callers to retrieve parent message manager from ContentParent. r=krizsa 2017-08-13 19:00:49 -07:00
json Bug 1387788 - Remove [deprecated] methods from nsIJSON. r=Ehsan 2017-08-06 10:25:15 +09:00
jsurl Bug 1326520 - Rename nsIURI.path to pathQueryRef. r=valentin.gosu 2017-07-29 20:50:21 +09:00
locales Merge inbound to central, a=merge 2017-08-11 13:15:33 -07:00
manifest Bug 1375125 - Stop using nsILocalFile in the tree. r=froydnj 2017-08-04 17:49:22 +09:00
mathml
media Bug 1275856 - Expand MediaRecorder tests to check stack traces when MediaRecorderErrorEvent is fired. r=jib 2017-08-09 19:55:54 +12:00
messagechannel Bug 1378930 - Part 2: Remove the aName parameter from SchedulerGroup/DocGroup/DispatcherTrait. r=billm 2017-07-26 16:13:35 +08:00
network Bug 1382099 - Remove MOZ_WIDGET_GONK from several dom/ subdirectories. r=mccr8,jdm. 2017-07-21 10:52:44 +10:00
notification Backed out changeset 685802013f43 (bug 1389460) for OS X bustage at widget/cocoa/nsMenuX.mm:364: no member named 'DispatchDOMEvent' in 'nsIContent'. r=backout 2017-08-11 17:46:42 +02:00
offline
payments Backed out changeset 685802013f43 (bug 1389460) for OS X bustage at widget/cocoa/nsMenuX.mm:364: no member named 'DispatchDOMEvent' in 'nsIContent'. r=backout 2017-08-11 17:46:42 +02:00
performance Backed out changeset 685802013f43 (bug 1389460) for OS X bustage at widget/cocoa/nsMenuX.mm:364: no member named 'DispatchDOMEvent' in 'nsIContent'. r=backout 2017-08-11 17:46:42 +02:00
permission
plugins Bug 1390068 - Define Symbol.toPrimitive property when creating NPObjectMember instead of using a getProperty hook. r=evilpie 2017-08-14 15:54:56 +02:00
power Bug 1382955 (part 2) - Remove nsIPowerManagerService::{powerOff,reboot,restart} and related things. r=gsvelto. 2017-08-02 10:09:26 +10:00
presentation Bug 1384835 (part 3, attempt 2) - Remove the Preferences::Get*CString() variants that return nsAdoptingCString. r=froydnj. 2017-07-31 14:28:48 +10:00
promise Bug 1378930 - Part 2: Remove the aName parameter from SchedulerGroup/DocGroup/DispatcherTrait. r=billm 2017-07-26 16:13:35 +08:00
push Bug 1380617 - Fix tests that expect unicode encoding of hostname r=smaug 2017-08-09 17:44:08 +02:00
quota Bug 1350637 - Part 4: Implement serialization for mozilla::OriginAttributesPattern, so we can use it on the receiver side of IPC without bouncing to the main thread; r=asuth 2017-08-08 23:01:14 +02:00
res
script Bug 1053321 - Correctly pass info about 'defer' and 'async' attributes to HTML5 parser invoked script preload. r=bkelly 2017-08-01 21:21:09 +02:00
secureelement
security Bug 1390106 - Stop using versioned scripts in dom. r=mrbkap 2017-08-14 20:42:55 +09:00
smil Bug 1390357 - Switch test result for clamping RGBA on stylo and gecko by using preference. r=birtles 2017-08-16 08:56:59 +09:00
storage Backed out changeset 5020a2dcb8a7 (bug 1355576) for failures in test_ext_browsingData.js 2017-08-06 15:29:38 -07:00
svg Bug 1387956 - Overhaul ComputedValues measurement, and add style structs measurement. r=bholley. 2017-08-11 16:37:33 +10:00
system Bug 1386240 - [1.3] Check success status when enabling or disabling geolocation events. r=jchen 2017-08-08 18:15:54 +02:00
tests Bug 1275856 - Update dom event tests to reflect removal of RecorderErrorEvent and new MediaRecorderErrorEvent. r=smaug 2017-08-11 14:03:23 +12:00
time
u2f
url Bug 1380617 - Add test checking that URL.origin returns punycode r=smaug 2017-08-09 17:44:03 +02:00
vr Bug 1388274 - Adjust WebVR telemetry histogram's high bound for user time spent; r=francois,kip 2017-08-08 18:23:43 +08:00
webauthn Merge m-c to autoland, a=merge 2017-08-10 18:25:34 -07:00
webbrowserpersist Bug 1387184 - Remove nsIDOMHTMLEmbedElement; r=bz 2017-08-09 12:05:08 -07:00
webidl Bug 1275856 - Remove now unused RecrodErrorEvent. r=jib,smaug 2017-08-04 11:41:22 +12:00
workers Bug 1390106 - Stop using versioned scripts in dom. r=mrbkap 2017-08-14 20:42:55 +09:00
worklet
xbl Bug 1389300 - Inherit style backend into NS_NewDOMDocument. r=smaug,r=heycam 2017-08-15 19:10:43 -07:00
xhr Bug 1389300 - Inherit style backend into NS_NewDOMDocument. r=smaug,r=heycam 2017-08-15 19:10:43 -07:00
xml Bug 1389300 - Inherit style backend into NS_NewDOMDocument. r=smaug,r=heycam 2017-08-15 19:10:43 -07:00
xslt Bug 1386600 - Change nsIStringBundle methods to return |AString| instead of |wstring|. r=emk,sr=dbaron. 2017-08-04 14:40:52 +10:00
xul Bug 1390106 - Stop using versioned scripts in dom. r=mrbkap 2017-08-14 20:42:55 +09:00
jar.mn
moz.build Bug 1381916 - Remove support for plugins on Android r=jchen,bsmedberg 2017-07-31 12:25:16 -05:00