Commit Graph

73161 Commits

Author SHA1 Message Date
Boris Zbarsky
0245595d7e Bug 1447889 part 1. Change nsCopySupport to work with Selection a bit more. r=mystor
MozReview-Commit-ID: B8HePBcalWU
2018-03-27 00:35:20 -04:00
Boris Zbarsky
17509bc9da Bug 1449019. Actually propagate out exceptions from the innerHTML getter. r=smaug
I moved the IgnoreErrors decl so it would come after the OOMReporter decl and I
could add the new conversion operator.

MozReview-Commit-ID: B1S6DXmZfvE
2018-03-26 16:41:43 -04:00
Boris Zbarsky
455111a348 Bug 1389585. Stop giving XPCJSID DOM_OBJECT classinfo. r=kmag
These are not supposed to be exposed to content.

MozReview-Commit-ID: 3odHUn4ZlG
2018-03-22 17:08:44 -04:00
Jeff Gilbert
e4e4683663 Bug 1445980 - TexStorage should validate both highest and lowest levels. - r=kvark
MozReview-Commit-ID: 3MtNEAtuadY
2018-03-26 20:37:13 -07:00
Jonathan Watt
82ebebe276 Bug 1448714 - Fix up comments referring to 'style context' after the rename of nsStyleContext. r=emilio 2018-03-23 13:49:21 +00:00
Coroiu Cristina
f7507f7dd5 Merge mozilla-central to inbound a=merge on a CLOSED TREE 2018-03-27 01:33:50 +03:00
Coroiu Cristina
7a82f42405 Merge inbound to mozilla-central a=merge 2018-03-27 00:39:57 +03:00
Coroiu Cristina
d6a8625ca7 Merge autoland to mozilla-central a=merge 2018-03-27 00:37:50 +03:00
Coroiu Cristina
ed9d3656c8 Merge mozilla-central to inbound a=merge on a CLOSED TREE 2018-03-26 23:58:59 +03:00
Coroiu Cristina
8915d0accf Backed out changeset 608119812c07 (bug 1437281) on request from haik a=backout 2018-03-26 23:53:06 +03:00
Boris Zbarsky
98a683f9e1 Backed out changeset 1023e033bfa6 (bug 1132934) because it hasn't been reviewed yet.
MozReview-Commit-ID: LXefIp2OG6Q
2018-03-26 16:47:31 -04:00
Boris Zbarsky
0ce4de30db Bug 1132934 part 1. Actually propagate out exceptions from the innerHTML getter. r=smaug
MozReview-Commit-ID: KEqsx836qQn
2018-03-26 16:41:43 -04:00
Csoregi Natalia
cebb847e37 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-03-26 12:23:07 +03:00
Xidorn Quan
30292048c2 Bug 1448716 - Remove PropertyValuePair::mValue. r=hiro
MozReview-Commit-ID: GLGJuXgontY

--HG--
extra : rebase_source : c4f5ddd641a275a4fbef87cabb8b4d50ac385860
2018-03-26 16:15:56 +11:00
Kris Maglione
b1eb2466a3 Bug 1446686: Follow-up: Fix sync tests that load head_addons.js and fixture add-ons from add-on manager tests. r=they're-lucky-i-don't-just-disable-the-tests,test-only
MozReview-Commit-ID: C9kNoWVsxYY

--HG--
extra : rebase_source : a28be4f9e395e853ea477ba0b59293f347eedf83
extra : amend_source : 81c141c49a328f85c1f99bbbd0416064f294abb9
2018-03-25 20:12:11 -07:00
Hiroyuki Ikezoe
e3cdf865e5 Bug 1440523 - Bail out from nsHTMLDocument::EditingStateChanged if the docshell is being destroyed by FlushPendingNotifications call. r=masayuki
MozReview-Commit-ID: DlFXWdpB1Xv

--HG--
extra : rebase_source : ed93cee34592ad09845c769eac6f56ccdf362457
2018-03-26 11:25:56 +09:00
Nicholas Nethercote
5f16fc9dc3 Bug 1447246 - Refactor ContentProcess::Init(). r=jimm
The current code is a bit of a mess. This patch does the following.

- Changes the processing from backwards to forwards. This avoids the need for
  all the `found` booleans, because if a flag is present multiple times, the
  last one will naturally override.

- Tightens up the checking. It now doesn't use assertions, but instead returns
  false if any of the options are missing arguments, or have malformed
  arguments, or any of the mandatory flags are missing. (It assumes that
  -appdir and -profile are optional.)

- Renames the loop variable `idx` as `i`.

- Changes `!strcmp(...)` to `strcmp(...) == 0`, because I find that clearer.

- Avoids a redundant nsCString when handling -appdir.

The patch also tweaks GeckoChildProcessHost::mGroupId, which was buggy. It
holds the appModelUserId argument, which XRE_InitChildProcess() always expects
is present in the command. But it's only set to a non-empty value in
InitWindowsGroupID(), which is only called for plugin processes. So in lots of
cases the appModelUserId argument was missing, and a different argument would
be interpreted as the appModelUserId argument (seemingly without noticeable ill
effect).

The patch changes things to mGroupId defaults to "-", which means it's always
present in the command.

Note: all this explains why the old code for ContentProcess::Init() started
processing from argument aArgc, instead of aArgc-1 as you might expect -- it
had to read one extra arg in order to see the argument following -appdir,
because XRE_InitChildProcess() was decrementing aArgc for the appModelUserId
argument even when that argument wasn't present. The new code for
ContentProcess::Init() doesn't have to read past aArgc-1 because the mGroupId
fix ensures the appModelUserId argument is always present.

MozReview-Commit-ID: 8a8k6ABYMgo

--HG--
extra : rebase_source : 70695125ee26e67af3337119f4dfc293a0dab74c
2018-03-16 12:23:10 +11:00
Jonathan Watt
384c345f21 Bug 1448294 - Clean up naming of 'styleContext' variables after the big nsStyleContext rename. r=emilio
Reviewers: emilio

Bug #: 1448294

Differential Revision: https://phabricator.services.mozilla.com/D796

MozReview-Commit-ID: KJq2i9nrg7y
2018-03-25 20:49:58 +02:00
Jonathan Watt
a61676cc19 Bug 1448337 - Remove RuleNodeCacheConditions.h. r=emilio 2018-03-25 20:43:47 +02:00
Narcis Beleuzu
47581f78e2 Backed out 2 changesets (bug 1448294, bug 1448337) for wpt and reftest failures on /mathml
Backed out changeset 180051cfe357 (bug 1448294)
Backed out changeset c188176f3289 (bug 1448337)
2018-03-25 21:31:08 +03:00
Emilio Cobos Álvarez
dff4e17b14 Bug 1448413: Do a bit of misc cleanup. r=jwatt
Summary: Mostly removing unneeded AsServo() and such.

Reviewers: jwatt

Bug #: 1448413

Differential Revision: https://phabricator.services.mozilla.com/D798

MozReview-Commit-ID: 8muHF7uMA53
2018-03-25 18:14:36 +02:00
Jonathan Watt
21bff4e120 Summary: Bug 1448294 - Clean up naming of 'styleContext' variables after the big nsStyleContext rename. r=emilio
Reviewers: emilio

Bug #: 1448294

Differential Revision: https://phabricator.services.mozilla.com/D796
2018-03-22 13:49:21 +00:00
Jonathan Watt
35387a6577 Bug 1448337 - Remove RuleNodeCacheConditions.h. r=emilio 2018-03-22 08:44:07 +00:00
Margareta Eliza Balazs
003262ae12 Merge autoland to mozilla-central. a=merge 2018-03-25 15:36:19 +03:00
shindli
a010f9b994 Merge inbound to mozilla-central. a=merge 2018-03-25 12:34:23 +03:00
Ciure Andrei
66de02c5cf Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-03-25 00:42:52 +02:00
Ciure Andrei
d2b19e2ea2 Merge inbound to mozilla-central. a=merge 2018-03-25 00:38:44 +02:00
Henri Sivonen
95457e2d3d Bug 1448587 - Use AssignASCII for XHR event type. r=baku.
MozReview-Commit-ID: 3WoRer49eQB

--HG--
extra : rebase_source : 508dcba57f3fa6fd38b21589837b7721efcff3fa
2018-03-24 21:21:51 +02:00
Henri Sivonen
4a85b2542a Bug 1448576 - Use AssignLiteral for short ASCII literal AudioChannelService. r=baku.
MozReview-Commit-ID: 3pXhsf9Q32Q

--HG--
extra : rebase_source : 14dbf0561f462d267662ec2b8ba396575440d026
2018-03-24 20:11:14 +02:00
Jean-Yves Avenard
276fbcf9e9 Bug 1444479 - P11. Remove unused constant. r=padenot
MozReview-Commit-ID: JJ5vdecIlqy
2018-03-24 11:04:18 +01:00
Jean-Yves Avenard
45419290ff Bug 1444479 - P10. Don't reject files with more than 8 audio channels. r=padenot
MozReview-Commit-ID: 642RlRlHRv7
2018-03-24 10:58:02 +01:00
Jean-Yves Avenard
ebae2f1fac Bug 1444479 - P9. Remove WMF audio decoder channel limit. r=padenot
MozReview-Commit-ID: 4xj1Cd0ZzrA
2018-03-24 10:58:02 +01:00
Jean-Yves Avenard
48fb044530 Bug 1444479 - P8. Remove FFmpeg audio decoder channel limitation. r=padenot
MozReview-Commit-ID: JQWcOny5Tgd
2018-03-24 10:58:02 +01:00
Jean-Yves Avenard
5d750cff32 Bug 1444479 - P7. Allow Apple AudioToolbox decoder handle more than 8 channels. r=padenot
Apple layout standard has a 1:1 equivalence with the WAVE standard. As such, any streams under 18 channels, properly defining a channel layout, should play on all platform.
Otherwise, as Opus and Vorbis, the result will be platform dependent.

MozReview-Commit-ID: ID6b9u2UNQr
2018-03-24 10:58:01 +01:00
Jean-Yves Avenard
6edfbc05e3 Bug 1444479 - P6. Make Opus and Vorbis decoder deal with more channels than 8. r=padenot
Under 8 channels, the audio will be reordered so it can be playable on any platforms.
Over 8 channels, the channels will be as output by the decoder. Playing of such stream will be platform dependent as neither Opus nor Vorbis define a channel layout with more than 8 channels.

With WebAudio however, the result will be platform independent (as long as you don't attempt to play it)

MozReview-Commit-ID: 93ATiKm9y20
2018-03-24 10:58:01 +01:00
Jean-Yves Avenard
f15eea87d5 Bug 1444479 - P5. Let AudioSink deal with unknown layout. r=padenot
MozReview-Commit-ID: F31zNl5o9n1
2018-03-24 10:58:01 +01:00
Jean-Yves Avenard
adbf3514c6 Bug 1444479 - P4. Add new AudioConfig constructor. r=padenot
This will allow to create an AudioConfig with an unknown or unsupported channel layout, defaulting instead to the number of channels.

MozReview-Commit-ID: IonLuo9q2a5
2018-03-24 10:58:01 +01:00
Jean-Yves Avenard
52d5d366d4 Bug 1444479 - P3. Add Channels(ChannelMap) method. r=padenot
MozReview-Commit-ID: 9sYeh30NHFF
2018-03-24 10:58:00 +01:00
Jean-Yves Avenard
6f7668d056 Bug 1444479 - P2. Make AudioConverter works with unknown layout. r=padenot
If a channel layout is unsupported, the AudioConverter will instead just use the channel count information to leave the data as-is, only trimming extra channels, or inserting silence if needed.

MozReview-Commit-ID: CXOjcSRsRwI
2018-03-24 10:58:00 +01:00
Jean-Yves Avenard
d44cd705b3 Bug 1444479 - P1. Remove 8 channels limitation in AudioConfig. r=padenot
Instead we place it at 32.
Future changes will change the meaning of this limit to when we can deal with channel layout. If outside that limit the audio will be played on a best attempt basis.

MozReview-Commit-ID: EavmmcxjLI0
2018-03-24 10:57:59 +01:00
Jean-Yves Avenard
4680798728 Bug 1432779 - P7. Use typedef rather than actual type. r=padenot
this improve readability.

MozReview-Commit-ID: IYfrLMZ5djX
2018-03-24 10:57:59 +01:00
Jean-Yves Avenard
4e7b0b2695 Bug 1432779 - P5. Remove no longer used variables. r=padenot
MozReview-Commit-ID: LqOuM1F0NC2
2018-03-24 10:57:59 +01:00
Jean-Yves Avenard
87fa7068d5 Bug 1432779 - P4. Remove the concept of preferred layout. r=padenot,r=kamidphish
Channel layout is derived by the content being played. The concept of preferred layout is meaningless. Either we have a layout defined, or we don't. There's no in-between.

So we remove it.

MozReview-Commit-ID: CSCAInNmzMS
2018-03-24 10:57:59 +01:00
Jean-Yves Avenard
5a631a5822 Bug 1432779 - P3. Properly set channel map layout after seeking. r=padenot
MozReview-Commit-ID: 5FY9hdaijhf
2018-03-24 10:57:58 +01:00
Jean-Yves Avenard
113a5cf5d7 Bug 1432779 - P1. Fix ChannelLayout calculation for uncommon layouts. r=padenot
MozReview-Commit-ID: Fi5ESBhziOp
2018-03-24 10:57:58 +01:00
Jean-Yves Avenard
57c6cc0428 Bug 1431221 - P14. Remove static layout definitions. r=padenot
That ChannelLayout uses an AutoTArray internally makes XPCOM report them as leaking when declared as static.

They weren't use outside of ChannelLayout anyway so they can be removed.

MozReview-Commit-ID: KVqdjzvL8pr
2018-03-24 10:57:57 +01:00
Jean-Yves Avenard
e766599866 Bug 1431221 - P13. Remove dual mono layout. r=padenot
It makes no sense to have a case for those as the data structure used (a bitmask) do not allow to represent this channel layout (a channel can only be present once). As such it was a non-functional layout

MozReview-Commit-ID: FjA0fojFcJp
2018-03-24 10:57:56 +01:00
Jean-Yves Avenard
ae2b5719c2 Bug 1431221 - P12. Fix Force Stereo Mode. r=padenot
MozReview-Commit-ID: DEoKXNk3d4E
2018-03-24 10:57:56 +01:00
Jean-Yves Avenard
6c310b818e Bug 1431221 - P11. Configure audio to use desired channel layout. r=padenot
MozReview-Commit-ID: 1wyeCIWohHE
2018-03-24 10:57:56 +01:00
Jean-Yves Avenard
eae919be64 Bug 1431221 - P10. Properly retrieve and set channel layout for opus and vorbis. r=cpearce
MozReview-Commit-ID: A4jEQzHRKDT
2018-03-24 10:57:55 +01:00