Commit Graph

73291 Commits

Author SHA1 Message Date
Emilio Cobos Álvarez
55b77aee5c Bug 1449502: Cleanup a bit more the selector cache and CSSOM methods. r=xidorn
MozReview-Commit-ID: 32FgbGFUdCM
2018-03-29 17:12:55 +02:00
Neil Deakin
6a995d0462 Bug 1448018, remove ContainerBoxObject which is only used to access the docshell, but bug 1448018 made the docshell accessible from the frameloader instead so the container box object is no longer being used. Change some editor tests which just access the docShell directly rather than through the box object, r=bz 2018-03-29 10:44:52 -04:00
Peter Van der Beken
edd705b1ca Bug 1444119 - Remove XPCOM extensibility of XSLT functions. r=bz.
--HG--
extra : rebase_source : 7ee56e82624d401f62dccd1180ce07b531ae816e
2018-02-27 19:08:46 +01:00
Emilio Cobos Álvarez
e81a508a48 Bug 1435632: Fix the logic to do layout stuff after reassigning a slot. r=smaug,xidorn
The dirty bit fiddling is nontrivial, but it's pretty much what we do for
invalidation and allows to keep this incrementally easily.

The only caller that we cared about for the GetFlattenedTreeParent check in
DestroyFramesForAndRestyle was the old ShadowRoot invalidation functions that
went away.

MozReview-Commit-ID: GmgPPJ6d2qX
2018-03-29 12:34:38 +02:00
Christoph Kerschbaumer
4197b7d96d Bug 1439713 - Update tests relying on nsIContentPolicy. r=bz 2018-03-29 11:14:58 +02:00
Christoph Kerschbaumer
a929955d1f Bug 1439713 - Change nsIContentPolicy shouldLoad to take an <uri, loadInfo> pair instead of the various args. r=bz 2018-03-29 12:16:23 +02:00
Dorel Luca
eb1ea97541 Merge mozilla-central to mozilla-inbound 2018-03-29 12:57:29 +03:00
Dorel Luca
57bbc1ac58 Merge mozilla-inbound to mozilla-central. a=merge 2018-03-29 12:50:33 +03:00
Xidorn Quan
3e1eaab1ee Bug 1449798 - Remove GenericSpecifiedValues::ShouldComputeStyleStruct and mSIDs. r=emilio
This was useful because nsRuleData in the old style system may not hold
all the data, but the only subclass ServoSpecifiedValues is always able
to hold any data, and thus passes NS_STYLE_INHERIT_MASK to mSIDS. Given
this, this method and mSIDs seems to be useless and can be removed.

MozReview-Commit-ID: 4vWcV4DRS2i

--HG--
extra : rebase_source : 4f364d431821e29838082e391c6dde08af7f5343
2018-03-29 12:39:07 +11:00
Kyle Machulis
c86096d041 Bug 1403185 - Fix button value index lookup oob for Windows Gamepads; r=ted
We can get button indexes in HID usage reports that do not actually
correspond to a button we store, meaning we can overstep bounds of the
button array. Check validity before accessing array.

MozReview-Commit-ID: AAQJLEgy2Ua
2018-03-28 15:54:53 -07:00
Boris Zbarsky
c43dfe1ad8 Bug 1449404 part 5. Move the cycle collected refcount on content nodes up to nsIContent. r=smaug 2018-03-28 18:07:40 -04:00
Boris Zbarsky
0aa422913e Bug 1449404 part 4. Get rid of a few virtual nsIContent methods. r=mccr8
The HasTextForTranslation implementation was just moved, with the nodetype
check up front dropped because that's enforced statically now.
2018-03-28 18:01:47 -04:00
Boris Zbarsky
4370006c40 Bug 1449404 part 3. Get rid of nsIContent::AppendTextTo. r=mccr8 2018-03-28 18:01:47 -04:00
Boris Zbarsky
cd4761ffdb Bug 1449404 part 2. Get rid of nsIContent::AppendText. r=mccr8 2018-03-28 18:01:46 -04:00
Boris Zbarsky
693169e324 Bug 1449404 part 1. Get rid of nsIContent::SetText. r=mccr8 2018-03-28 18:01:46 -04:00
Boris Zbarsky
70b26cdb6c Bug 1449393. Devirtualize some nsINode bits. r=mccr8 2018-03-28 18:01:46 -04:00
Boris Zbarsky
75860ea92d Bug 1445005. Remove the eventMode bits from frameloader. r=qdot 2018-03-28 18:01:46 -04:00
Boris Zbarsky
9bdcd1eca8 Bug 1444872. Remove support for the 'type' parameter to document.open. r=qdot 2018-03-28 18:01:46 -04:00
Gurzau Raul
8d268c6ce7 Merge mozilla-central to inbound. a=merge CLOSED TREE
--HG--
rename : toolkit/components/extensions/ext-permissions.js => toolkit/components/extensions/parent/ext-permissions.js
2018-03-29 01:00:42 +03:00
Gurzau Raul
d117255a14 Merge inbound to mozilla-central. a=merge 2018-03-29 00:55:16 +03:00
Olli Pettay
be34eacad1 Bug 1441277 - nsINode needs better documentation on GetComposedDoc vs GetUncomposedDoc, r=annevk 2018-03-28 19:51:14 +03:00
Cosmin Sabou
619e0c5b90 Backed out 3 changesets (bug 1449321, bug 1449566, bug 1449565) as per developer request.
Backed out changeset c31de7e26809 (bug 1449565)
Backed out changeset 72f9188800af (bug 1449566)
Backed out changeset 763277b299e4 (bug 1449321)

--HG--
extra : rebase_source : 212b357a3079dff30845a5f82e47b94e2d7f93cd
2018-03-28 18:10:11 +03:00
Jonathan Watt
9e1dc4eece Bug 1449566 - Remove GenericSpecifiedValues::ShouldIgnoreColors. r=emilio 2018-03-23 16:40:12 +00:00
Jonathan Watt
41622cb3a7 Bug 1449321 - Remove the IsServo and IsGecko methods from the style system code. r=emilio 2018-03-23 16:01:34 +00:00
Bryce Van Dyk
e9495a620d Bug 1436523 - Update head.js to better handle pref changes for fake/loopback devices during tests. r=achronop
Update head.js so that calls to the gUM helper will check the loopback and fake
device prefs and update the frequency output by test devices accordingly. This
should hopefully avoid issues where tests could change prefs, and the output
tone would no longer be correct for the new configuration.

No longer have audioDevice and videoDevice as globals, this way tests
explicitly fetch direct from prefs.

MozReview-Commit-ID: 9jhVScaBfTX

--HG--
extra : rebase_source : 64b17e44ef166983361f94cf7d287faed3c2cdc5
2018-03-21 15:23:37 -04:00
Bryce Van Dyk
b1fb8c3b44 Bug 1436523 - Change DeviceEnumerationType to scoped enum, add extra logging. r=achronop
Update the DeviceEnumerationType enum to scoped style enum for safety and
consistency. Add extra logging to aid in debugging test issues.

MozReview-Commit-ID: cm5bdlIcEG

--HG--
extra : rebase_source : bfcae3d49f809edfd0ed6ab3e516b8be0c0d517e
2018-03-16 15:09:26 -04:00
Robert Longson
f627214d56 Bug 1448774 - part 1 r=dholbert 2018-03-29 03:12:05 +01:00
Bryce Van Dyk
551cc6f34b Bug 1436523 - Make WebRTC mochitest harness more granular with fake device setup. r=achronop
Update head.js so that logic for fake audio and fake video is more granular.
Now code handles fake audio and fake video separately, and will set the fake
pref is either is needed. This allows for a single loopback device to be set
and fake used for the other. Previously both devices needed to be loopback or
fakes would be used.

MozReview-Commit-ID: K4blmPrSVeh

--HG--
extra : rebase_source : 369ea7f788d29a02db68e517d324977f251c9a98
2018-03-05 14:46:03 -05:00
Bryce Van Dyk
da98dea96a Bug 1436523 - Update dom/media/tests/mochitest tests to better handle loopback devices. r=achronop
With changes giving loopback devices higher precedence in testing, various tests
in dom/media/tests/mochitest have been updated to accommodate this. Many tests
just worked, but some require tweaks, or to explicitly request fake devices.

Also update webaudio's test_mediaStreamAudioSourceNodeGC test to explicitly use
fake devices. This test does not have the loopback tone exposed to it in JS, so
is unabel to adjust the loopback tone to suit its needs.

Various tests are updated to set fake device prefs instead of requesting via
gUM to move away from non-standard behaviour per bug 1436424.

MozReview-Commit-ID: 5GAVZFzF2hq

--HG--
extra : rebase_source : 27f39e3573eda321025ce0739e1d5f4101fc5d12
2018-02-26 12:20:40 -05:00
Robert Longson
46442efe5d Bug 1449075 - comma and/or whitespace should be mandatory to separate transform values r=dholbert 2018-03-28 19:05:39 +01:00
Tom Ritter
449237fc51 Bug 1378552 - Reduce the liklihood of inadvertently misusing NullPrincipal::Create(). r=ckerschb
NullPrincipal::Create() (will null OA) may cause an OriginAttributes bypass.
We change Create() so OriginAttributes is no longer optional, and rename
Create() with no arguments to make it more explicit about what the caller is doing.

MozReview-Commit-ID: 7DQGlgh1tgJ
2018-03-22 13:36:20 -05:00
Bryce Van Dyk
898975f341 Bug 1436523 - Update dom/media/test/ tests to better handle loopback + gUM device config. r=achronop
This changeset adds a gUM_support.js to dom/media/test/. This file provides
functions to setup prefs for loopback or fake device selection before gUM calls
are made. This is useful for configuring tests and providing an explicit point
of reference for settings, rather than the implicit ones provided by the
harness.

Updates tests so that the new helper functions are called before gUM. This
will result in loopback prefs being set if loopback device names are detected,
if not then fake devices will be used. This also removes the use of the fake
constraint in gUM calls.

Update touched tests to use some more modern JS. No behavioural changes were
made (except in minor cases, but functionality should be the same). These
changes are largely as follows:
- var -> let
- async is used in places where I felt it improved readability
- semicolons added to various event handler assignments

MozReview-Commit-ID: 1HuE8thBA6w

--HG--
extra : rebase_source : b866056b2821436cf34ea683421c200b4bb4e55f
2018-02-21 09:11:29 -05:00
Bryce Van Dyk
aa68bc0511 Bug 1436523 - Rework media manager enumeration to prefer loopback to fake devices, allow mixing of fake and loopback. r=achronop
Change the media manager so that if fake and loopback devices are requested,
loopback is preferred. With this change loopback and fake devices can also be
mixed. Since the fake flag is coarse, and does not specify fake audio or video,
we would previously just make everything fake. As loopback sets flags for video
and audio separately, we can now request a single loopback device, while also
setting the fake flag to get a mix. E.g. if we request a loopback audio device,
and set the fake flag, we should get loopback audio and fake video.

This change also attempts to somewhat consolidate where these settings take
place. Previously, EnumerateRawDevices did much of the loopback setup. However,
other steps around fingerprint resistance or fake devices were done in earlier
functions (EnumerateDevices and GetUserMedia). This changeset moves the loopback
setup so that it's more consolidated with the other setup code in these
functions.

MozReview-Commit-ID: FF0bR0Nyws9

--HG--
extra : rebase_source : 374a6fd0842a430e27c695bcf956e2e072a77fc3
2018-02-12 16:56:26 -05:00
Bryce Van Dyk
057cac41e3 Bug 1436523 - Add enum to specify select type of devices to enumerate in MediaManager rather than use bools. r=achronop
Prior to this patch various bools are used to track if we requst fake or
loopback devices during enumeration. However, since the normal, fake, and
loopback cases are mutually exclusive, a enum can be used. This provides allows
for having descriptive enum values in code and makes clear that the settings are
mutually exclusive.

MozReview-Commit-ID: FF0bR0Nyws9

--HG--
extra : rebase_source : 498513bdc6673fa299080097364a6d0dff00a073
2018-02-12 16:55:45 -05:00
Xidorn Quan
efc0cdde02 Bug 1447828 part 8 - Remove remaining uses of StyleBackendType as well as the type itself. r=emilio
MozReview-Commit-ID: 6sh4eKvDpRF

--HG--
extra : rebase_source : 7d83f2b2d4e2739333016ed82754bf3a4a700de4
extra : source : 147ca562a24652c3f30add793213db70aff65e9e
2018-03-29 02:34:34 +11:00
Xidorn Quan
5c55e4b983 Bug 1447828 part 7 - Remove StyleBackendType uses from PreloadedStyleSheet. r=emilio
MozReview-Commit-ID: L37tnRAAJbQ

--HG--
extra : rebase_source : 1d073c4fadcc8372b5afe55f648bcb1c276f4de2
extra : source : 09e1b57c52fbfe3145b47d80ac098c487970d8b4
2018-03-29 02:34:34 +11:00
Xidorn Quan
d81392eca1 Bug 1447828 part 6 - Have only a single nsLayoutStylesheetCache instance. r=emilio
MozReview-Commit-ID: BjCgc8MZjIq

--HG--
extra : rebase_source : 104140c2eed5987b5568aca89a72bc7d5e3ed839
extra : source : cd66e264953865b0604054fb9d0b741d0ae19ebf
2018-03-29 02:34:34 +11:00
Xidorn Quan
d3b8ac27c8 Bug 1447828 part 5 - Remove StyleBackendType uses from nsStyleSheetService. r=emilio
MozReview-Commit-ID: 2yQqwVPnvdE

--HG--
extra : rebase_source : 90f58d5726cb85e9bbcf56bc2eaf29c85940ddbe
extra : source : 8ffba0152d4bd16f87d2ddefefacb7081a46443b
2018-03-29 02:34:34 +11:00
Xidorn Quan
3b8cc6c6ef Bug 1447828 part 4 - Remove StyleBackendType uses from Loader. r=emilio
MozReview-Commit-ID: 8DbjibZE3Dw

--HG--
extra : rebase_source : aa664ee40199b5358e304e076c8d6853e496d7a8
extra : source : 06be08613cf88b6963033929ff5ac0d82a6327b1
2018-03-29 02:33:01 +11:00
Xidorn Quan
1cf8082e67 Bug 1447828 part 3 - Remove StyleBackendType uses from MediaList. r=emilio
MozReview-Commit-ID: 9sG73iLeBw4

--HG--
extra : rebase_source : a2626f6d1f8af02caeb7f3d37b7d258b4544b62d
extra : source : 2f443463446897080b85ac0da5b7a9ea6ccc9de2
2018-03-29 02:31:46 +11:00
Xidorn Quan
d9cb92544e Bug 1447828 part 2 - Remove StyleBackendType uses from nsXULPrototypeCache. r=emilio
MozReview-Commit-ID: 1tYFBTk9BqF

--HG--
extra : rebase_source : 72c783c84ff36fddd6d49e79e7912f42bb0c11a8
extra : source : 4972e279ef76127e4898874478fcbd75c9631d76
2018-03-29 02:31:23 +11:00
Xidorn Quan
0401ef821e Bug 1447828 part 1 - Remove StyleBackendType uses from dom/animation. r=emilio
MozReview-Commit-ID: 3INWUuocNPm

--HG--
extra : rebase_source : 1e024084e325b075b3c1b534b544092d7f792e2e
extra : source : 1bcf22436ced3f5b2afd6a7db4250ff5b79f71c0
2018-03-29 02:29:42 +11:00
Jonathan Watt
6af9cd851b Bug 1449566 - Remove GenericSpecifiedValues::ShouldIgnoreColors. r=emilio
--HG--
extra : source : 72f9188800afb4dec5b69d0a9066bb0453c61fbc
2018-03-23 16:40:12 +00:00
Jonathan Watt
68e78b291f Bug 1449321 - Remove the IsServo and IsGecko methods from the style system code. r=emilio
--HG--
extra : source : 763277b299e42d8ee7eafede027ee690b66a7a2a
2018-03-23 16:01:34 +00:00
Alex Chronopoulos
5cf2c64821 Bug 1431810 - Correct typo mistake in a webaudio test. r=kinetik
MozReview-Commit-ID: 45kAYeTAjaD

--HG--
extra : rebase_source : 101728377ed0e25e27184c2c25c4024b546decca
2018-03-28 14:14:46 +03:00
Alex Chronopoulos
321ec00151 Bug 1431810 - Test that opus phase inversion is disabled on mono output. r=kinetik
MozReview-Commit-ID: 4Q4E4MUF2iW

--HG--
extra : rebase_source : 91439572a6d58856d18188f56226d6b819763e71
2018-03-15 18:30:19 +02:00
Alex Chronopoulos
851a3ee589 Bug 1431810 - Disable Opus phase inversion on stereo to mono downmix. r=rillian
MozReview-Commit-ID: 5eaSPQzUu9o

--HG--
extra : rebase_source : 126d9faa2824d29fc73cf040b033ca585dfdbcee
2018-03-15 18:28:14 +02:00
Narcis Beleuzu
00fbf95c3b Backed out changeset baf5f1356969 (bug 1446522) for clipboard failures on /test_bug1012662_noeditor.html. CLOSED TREE 2018-03-28 14:25:57 +03:00
Tom Ritter
9f13fdcfce Bug 1449244 Remove SphinxBase r=drno
MozReview-Commit-ID: AIcwcWAa4nV

--HG--
extra : rebase_source : 26a1f1379595917c20f042abfa2fbb25c634a9db
2018-03-27 12:04:10 -05:00
Gijs Kruitbosch
a140dc6382 Bug 1446522 - don't return NS_ERROR_FAILURE for cut/copy/paste even when there's no selection, r=enndeakin+6102
MozReview-Commit-ID: AhToM4sAjJn

--HG--
extra : rebase_source : 83b5b97fc8ca0aa264c313953d3cd82014675f7b
2018-03-26 20:18:05 +01:00