Commit Graph

86171 Commits

Author SHA1 Message Date
Bryce Seager van Dyk
6924e0a5d3 Bug 1573976 - Undef Status in GMPMessageUtils to avoid bustages in Linux unified build. r=dminor
If Status is defined (X11 headers define it as int), it ends up busting the
Status enum used in the Widevine headers. Avoid this by undeffing it before
including headers.

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

--HG--
extra : moz-landing-system : lando
2019-08-16 17:28:09 +00:00
Bryce Seager van Dyk
f695322b92 Bug 1573976 - Update hdcp version strings used in GetStatusForPolicy. r=dminor,alwu
These strings are detailed at
https://github.com/WICG/hdcp-detection/blob/master/explainer.md, and were
changed since the original implementation of this feature.

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

--HG--
extra : moz-landing-system : lando
2019-08-16 17:17:32 +00:00
Bryce Seager van Dyk
b692482432 Bug 1573976 - Fix GetStatusForPolicy handling of unrecognized values. r=dminor,alwu
GetStatusPolicy should not treat unrecognized values as if they were no hdcp
policy. A trivial example is that if we do not recognize a newer hdcp string,
say "2.3", then we should not query if the CDM supports this policy as if it
were no hdcp.

This patch means that we surface and error to JS if we do no recognize an hdcp
string.

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

--HG--
extra : moz-landing-system : lando
2019-08-16 17:47:21 +00:00
Jan Varga
a62bad18a1 Bug 1570644 - Part 1: Fix a regression caused by bug 1556812; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D42464

--HG--
extra : rebase_source : 104e5782a7e94a16f2d7fd95e20684fbf8d0387e
2019-08-19 10:24:39 +02:00
Kashav Madan
8f75b0e335 Bug 1574319 - Remove ContentParent::Recv* skip-if annotations, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D42374

--HG--
extra : moz-landing-system : lando
2019-08-16 21:00:17 +00:00
Andreas Pehrson
7f846ebc2b Bug 1571705 - Allow allocating an input port from a destroyed source. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D42341

--HG--
extra : moz-landing-system : lando
2019-08-19 14:07:23 +00:00
Andreas Pehrson
2c2d552b7b Bug 1571705 - Clarify mInputStream guarantees in MediaStreamTrack. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D41508

--HG--
extra : moz-landing-system : lando
2019-08-19 12:46:43 +00:00
Simon Giesecke
0153998ccc Bug 1566758 - Added telemetry for use of IDBFactory.open(name, options) discriminated by principal types r=ttung,asuth
Differential Revision: https://phabricator.services.mozilla.com/D40180

--HG--
extra : moz-landing-system : lando
2019-08-19 14:22:09 +00:00
Simon Giesecke
964723766a Bug 1566758 - Removed obsolete IDB_TYPE_PERSISTENT_COUNT and IDB_TYPE_TEMPORARY_COUNT telemetry r=ttung,asuth
Differential Revision: https://phabricator.services.mozilla.com/D40178

--HG--
extra : moz-landing-system : lando
2019-08-19 14:21:44 +00:00
Andreas Pehrson
c0bcfa05f3 Bug 1411152 - Serialize MediaRecorder::Session::GatherBlob calls. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D41591

--HG--
extra : moz-landing-system : lando
2019-08-19 13:54:59 +00:00
Ciure Andrei
9a123fb597 Backed out changeset 81156ff3f4fa (bug 1571656) for causing browser_PageActions.js and test_insertTree_fixupOrSkipInvalidEntries.js to perma fail CLOSED TREE 2019-08-19 13:00:44 +03:00
Daniel Varga
3abf160240 Bug 1210133 - test_filehandle_getFile.html on all platforms - FileHandle will be removed from IDB. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D42431

--HG--
extra : moz-landing-system : lando
2019-08-19 09:01:21 +00:00
Moritz Birghan
240771fa29 Bug 1571656 - Use Assert.jsm numeric comparison functions in tests r=mixedpuppy,MattN
Differential Revision: https://phabricator.services.mozilla.com/D40614

--HG--
extra : moz-landing-system : lando
2019-08-19 07:17:12 +00:00
Masayuki Nakano
cf0604278c Bug 1564639 - Make BrowserParent use nsPresContext::GetRootWidget() when handling IME related messages r=hsivonen
When contents notify IME or requests something to IME, they need to use
an `nsIWidget` instance which may have focus if active, and handles
native keyboard/IME events since that knows correct native IME context.

Currently, such widget exactly matches with the result of
`nsPresContext::GetRootWidget()`.  However, this is unclear for most developers.
Therefore, this patch creates a wrapper method of it named
`nsPresContext::GetTextInputHandlingWidget()`.  Then, also adds
`BrowserParent::GetTextInputHandlingWidget()` wraps it.  Finally, makes
`IMEStateManager` call `GetTextInputHandlingWidget()` of them.

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

--HG--
extra : moz-landing-system : lando
2019-08-19 08:27:32 +00:00
Mirko Brodesser
bf3decfac6 Bug 1574479: clarify relations of OutputFormatted, OutputFormatFlowed, OutputPreformatted in nsIDocumentEncoder.idl. r=hsivonen
Deduced from the code and assertions in it.

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

--HG--
extra : moz-landing-system : lando
2019-08-19 07:57:07 +00:00
Mirko Brodesser
5e6d66382d Bug 1574463: remove unused nsIDocumentEncoder::OutputNonTextContentAsPlaceholder. r=hsivonen
Doesn't seem to be used by comm-central/Thunderbird.

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

--HG--
extra : moz-landing-system : lando
2019-08-19 07:56:05 +00:00
Mirko Brodesser
881f30fe67 Bug 1574458: remove unused nsIDocumentEncoder::OutputDontRemoveLineEndingSpaces functionality. r=hsivonen
Doesn't event seem to be used by comm-central/Thunderbird.

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

--HG--
extra : moz-landing-system : lando
2019-08-19 07:55:22 +00:00
Mark Banner
b1970e6a2f Bug 1571466 - Cleanup unnecessary ESLint global definitions. r=mossop
These are raised as redeclares or unused variables by ESLint 6.

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

--HG--
extra : moz-landing-system : lando
2019-08-19 07:11:56 +00:00
Emilio Cobos Álvarez
0062466104 Bug 1562425 - Ensure to bind ShadowRoot before explicit kids, so that slot directionality is up-to-date. r=smaug
When we're slotted, we inherit our directionality from the slot element. But
when binding an ltr subtree into an rtl subtree, we used to bind the explicit
kids first, then the shadow root kids (which includes the slots to which
explicit kids may have been assigned).

So the explicit kids looked at the slot directionality before it was recomputed,
and thus ended up with ltr rather than rtl directionality.

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

--HG--
extra : moz-landing-system : lando
2019-08-17 20:26:56 +00:00
Daisuke Akatsuka
461170519e Bug 1571650: Add test for AnonymousContent::SetStyle(). r=smaug
In this patch, creates a test to confirm whether the AnonymousContent.setStyle()
works correctly.

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

--HG--
extra : moz-landing-system : lando
2019-08-17 18:47:28 +00:00
Daisuke Akatsuka
c6a47f400c Bug 1571650: Add an API to change the style of AnonymousContent from devtools. r=smaug
DevTools is using AnonymousContent to highlight the element inspecting.
And now, the z-order of highlighting became to be importance. In case of normal
element, we can change the z-order by z-index or order of DOM. However,
AnonymousContent does not have the such the way to change the z-order from
DevTools side. This patch introduces an API to change the style, and makes the
z-order changeable by the z-index.

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

--HG--
extra : moz-landing-system : lando
2019-08-16 07:38:39 +00:00
Olli Pettay
26c09ef05a Bug 1574223, make touchstart/move passive by default also when using event handlers, not only event listeners, r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D42235

--HG--
extra : moz-landing-system : lando
2019-08-16 15:18:46 +00:00
Perry Jiang
538903d0db Bug 1574457 - Remove unused variable in optimized Beta/Release builds in ServiceWorkerPrivate.cpp r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D42380

--HG--
extra : moz-landing-system : lando
2019-08-17 01:14:08 +00:00
Andrew McCreight
c749e75350 Bug 1574627 - Fix some "disbaled" typos. DONTBUILD r=njn
Differential Revision: https://phabricator.services.mozilla.com/D42376

--HG--
extra : moz-landing-system : lando
2019-08-16 23:23:05 +00:00
Razvan Maries
595de881b0 Backed out 2 changesets (bug 1562264) for causing Android perma fails. CLOSED TREE
Backed out changeset b66eec7d2e55 (bug 1562264)
Backed out changeset 445eadfd8ce3 (bug 1562264)
2019-08-17 02:24:40 +03:00
Hiroyuki Ikezoe
0da3f383c0 Bug 1573648 - Use ToFloatAllowTrailingChars for parsing scale values in meta viewport tag. r=botond
From the spec <https://drafts.csswg.org/css-device-adapt/#parsing-algorithm>

  If a prefix of property-value can be converted to a number using strtod,
  the value will be that number. The remainder of the string is ignored.

Note that nsTSubStrubg::ToInteger() allows trailing characters as it is so that
we don't need to modify the width/height parser for meta viewport.

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

--HG--
extra : moz-landing-system : lando
2019-08-16 22:37:42 +00:00
Brian Hackett
091f2992d2 Bug 1573938 - Never collect wrapper JSObjects when recording/replaying, r=mccr8.
Differential Revision: https://phabricator.services.mozilla.com/D42011

--HG--
extra : moz-landing-system : lando
2019-08-16 20:51:12 +00:00
Kashav Madan
f74ee91093 Bug 1562264 - Update skip-if annotations, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D41763

--HG--
extra : moz-landing-system : lando
2019-08-16 17:31:52 +00:00
Kashav Madan
05d450499e Bug 1562264 - Propagate remote/fission flags from parent to child for content window.open() calls, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D40836

--HG--
extra : moz-landing-system : lando
2019-08-16 17:31:38 +00:00
Andrew McCreight
c226e7e747 Bug 1574567 - Enable various tests for Fission that don't actually crash with ServiceWorkerManagerService signatures. r=kmag
browser_antitracking_subiframes.js also seems to pass.

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

--HG--
extra : moz-landing-system : lando
2019-08-16 19:45:02 +00:00
Abdoulaye O. Ly
6088cf63bf Bug 1559244 - Step 3: Add test for crashing an oop iframe. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D38896

--HG--
extra : moz-landing-system : lando
2019-08-15 19:28:13 +00:00
Abdoulaye O. Ly
cbbacc1e6a Bug 1559244 - Step 2: Add support for crashing sub-frame. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D37780

--HG--
extra : moz-landing-system : lando
2019-08-15 19:51:42 +00:00
Abdoulaye O. Ly
c671c61e37 Bug 1559244 - Step 1: make BrowserTestUtils@crashBrowser function work with JSWindowActor. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D37318

--HG--
extra : moz-landing-system : lando
2019-08-15 19:28:16 +00:00
Emilio Cobos Álvarez
a03875ef63 Bug 1568536 - Simplify some style system APIs. r=heycam
Return a raw pointer instead of a strong reference to a ComputedStyle, and
handle the case of the style not being present by returning null rather than
requiring an extra function to check it and crashing if the precondition is not
met.

Also, name them so that it's clear they just return outdated styles and don't
make any extra effort.

This is just cleanup that makes the next patch easier / more obvious.

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

--HG--
extra : moz-landing-system : lando
2019-08-16 05:59:03 +00:00
Dan Minor
e6817b0e4d Bug 1573541 - Fix assertion failure in PannerNode.h; r=karlt
This removes the call to SetThreeDPointParameter which is no longer necessary
now that we're using AudioParams for position and orientation. Doing the
conversion can cause an assertion failure when the AudioParams have a scheduled
future value.

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

--HG--
extra : moz-landing-system : lando
2019-08-15 21:17:36 +00:00
Emilio Cobos Álvarez
919bb7ded3 Bug 1571530 - Cleanup slightly SheetComplete, and use the right boolean to notify. r=heycam
This is mostly straight-forward cleanup, but there's a behavior change which
was an oversight from bug 1386840, the regular mObservers stuff didn't pass the
right thing (was passing only mWasAlternate rather than whether it was
deferred).

I think that as a result, only in XML documents (since nsXMLContentSink is the
only thing that adds itself as a global CSS loader observer that ever looks at
this boolean), we may end up breaking this assert:

https://searchfox.org/mozilla-central/rev/9ae20497229225cb3fa729a787791f424ff8087b/dom/base/nsContentSink.cpp#183

(If there are any sheets with non-matching media queries and such).

But I couldn't find a test-case that broke it (tried SVG / XHTML), and in other
documents like pure XML you cannot specify a media query...

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

--HG--
extra : moz-landing-system : lando
2019-08-16 10:56:16 +00:00
Emilio Cobos Álvarez
6779b66f01 Bug 1571530 - Remove various bool arguments in sheet loader APIs. r=heycam
They're bad, specially if they do vastly different thing in overloaded
functions, like aUseSystemPrincipal and aIsPreload. :)

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

--HG--
extra : moz-landing-system : lando
2019-08-16 10:56:05 +00:00
Emilio Cobos Álvarez
2353359865 Bug 1571530 - Make Loader APIs return a Result. r=heycam
On the fence on this one, but I do think it's nicer.

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

--HG--
extra : moz-landing-system : lando
2019-08-16 10:56:03 +00:00
Daniel Varga
952e8654d9 Backed out changeset 983ff93a11ad (bug 1505412) for debug-test-verify-e10s failure at dom/security/test/csp/test_bug1505412.html. On a CLOSED TREE 2019-08-16 13:19:32 +03:00
Sebastian Streich
645ecf6d90 Bug 1505412 - Skip CSP-Nonce check for CSP-Ro+Redirected Channels r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D36916

--HG--
extra : moz-landing-system : lando
2019-08-15 15:51:33 +00:00
Sylvestre Ledru
37db1730c6 Bug 1573833 - Add missing & and parentheses r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D41957

--HG--
extra : moz-landing-system : lando
2019-08-16 08:11:39 +00:00
Daniel Varga
95ce40b8d4 Backed out changeset a7ac9f64f6ea (bug 1561056) for build bustage at widget/gtk/nsDragService. On a CLOSED TREE 2019-08-16 09:30:39 +03:00
Frédéric Wang
3aec893f88 Bug 1574087. Make MathML length, dir, display, displaystyle and mathvariant case insensitive. r=emilio
See https://github.com/mathml-refresh/mathml/issues/22

* mathml/relations/css-styling/attribute-mapping-001.html (length, dir)
* mathml/relations/html5-tree/display-1.html (display)
* mathml/relations/css-styling/displaystyle-1.html (displaystyle)
* mathml/relations/css-styling/displaystyle-2.html (displaystyle)
* mathml/relations/css-styling/mathvariant-case-sensitivity.html (mathvariant)

layout/reftests/bugs/355548-3.xml has been updated now that units are case
insensitive.

Note:
* mathml/relations/css-styling/attribute-mapping-002.html also checks
  case insensitiveness of mathvariant and displaystyle but for now we map
  these attributes to internal -moz-* CSS properties.
* mathcolor and mathbackground values are already case insensitive, this
  is verified by mathml/relations/css-styling/attribute-mapping-001.html

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

--HG--
extra : moz-landing-system : lando
2019-08-15 18:44:36 +00:00
Sebastian Streich
c051155f99 Bug 1561056 - Pass CSP on Link-drop r=ckerschb,Gijs,farre
Differential Revision: https://phabricator.services.mozilla.com/D37563

--HG--
extra : moz-landing-system : lando
2019-08-15 18:44:00 +00:00
Marcos Cáceres
26bc3a959f Bug 1559412 - Support web app manifest ImageResource.purpose r=baku
implementation of purpose member

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

--HG--
extra : moz-landing-system : lando
2019-08-15 12:55:35 +00:00
Csoregi Natalia
3acf519302 Merge mozilla-central to autoland. CLOSED TREE
--HG--
rename : devtools/client/debugger/src/actions/tests/helpers/threadFront.js => devtools/client/debugger/src/actions/tests/helpers/mockCommandClient.js
2019-08-16 07:03:46 +03:00
Csoregi Natalia
838811e23f Merge inbound to mozilla-central. a=merge 2019-08-16 06:59:41 +03:00
Matt Woodrow
270a0d1434 Bug 1570147 - Add test for drawSnapshot. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D41828

--HG--
extra : moz-landing-system : lando
2019-08-16 03:13:21 +00:00
Matt Woodrow
7bf99e1fc3 Bug 1570147 - Modify existing drawWindow tests to take a callback for the inner draw function. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D41827

--HG--
extra : moz-landing-system : lando
2019-08-16 03:13:04 +00:00
Kagami Sascha Rosylight
25862fe2eb Bug 1572349 - Add Document::ResolveWithBaseURI. r=bzbarsky
Summary: This adds a helper method that enables simpler code in D41047 and D36714.

Reviewers: bzbarsky, marcosc

Reviewed By: bzbarsky

Bug #: 1572349

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

--HG--
extra : histedit_source : 9a8904a71bfeda594a5e3900c39e096e90dc83e1
2019-08-16 03:38:31 +03:00