Граф коммитов

82824 Коммитов

Автор SHA1 Сообщение Дата
Boris Zbarsky d0bcf72821 Bug 1543564 part 2. Get rid of pointless nsPIDOMWindowInner::AsInner methods. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D27027

--HG--
extra : moz-landing-system : lando
2019-04-11 14:12:43 +00:00
Boris Zbarsky 6d78fdff25 Bug 1543564 part 1. Get rid of pointless nsPIDOMWindowOuter::AsOuter() methods. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D27026

--HG--
extra : moz-landing-system : lando
2019-04-11 12:12:04 +00:00
Liang-Heng Chen b100d76702 Bug 1539536 - implement content blocking measurements using prio; r=Ehsan,englehardt
randomly choose 1% users and their 0.14% page view to measure content blocking.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 22:15:07 +00:00
Jim Mathies bced24bebb Bug 1543173 - Turn off REQUIRE_DEFERRED_MESSAGE_PROTECTION in PluginModuleContentParent when native events are disabled. r=bobowen
Differential Revision: https://phabricator.services.mozilla.com/D26941

--HG--
extra : moz-landing-system : lando
2019-04-11 07:40:57 +00:00
Oana Pop Rus 212a653d81 Backed out 6 changesets (bug 1531833) for geckoview failures on PermissionDelegateTest.media CLOSED TREE
Backed out changeset f90ad6bb8ebd (bug 1531833)
Backed out changeset 465570a54b46 (bug 1531833)
Backed out changeset e725253ee976 (bug 1531833)
Backed out changeset 74ad8e7a722b (bug 1531833)
Backed out changeset b1268e5f7023 (bug 1531833)
Backed out changeset e3ec78b2db1f (bug 1531833)

--HG--
extra : amend_source : 81aa19c352e72cac2369e014d19ec5a896538b21
2019-04-11 21:16:55 +03:00
Liang-Heng Chen 2cb34bb8bf Bug 1539641 - Log and report storage access granted reason; r=Ehsan,chutten
Differential Revision: https://phabricator.services.mozilla.com/D26720

--HG--
extra : moz-landing-system : lando
2019-04-12 00:38:57 +00:00
Nika Layzell 3c646bec4c Bug 1542786 - Set documentURI during WindowGlobalParent creation, r=farre
This avoids a racy situation early during WGP creation where a null documentURI
can be read incorrectly.

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

--HG--
extra : moz-landing-system : lando
2019-04-09 11:58:35 +00:00
Nika Layzell 43ded41fb0 Bug 1542785 - Expose a `top` method on BrowsingContext to Chrome JS, r=farre
Differential Revision: https://phabricator.services.mozilla.com/D26554

--HG--
extra : moz-landing-system : lando
2019-04-09 06:19:24 +00:00
Andreas Farre 19e1e35b0d Bug 1541038 - Part 1: Sync a BrowsingContext to it's groups. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D27317

--HG--
extra : moz-landing-system : lando
2019-04-12 19:00:24 +00:00
Andrea Marchesini 123be5d3c8 Bug 1543911 - Move BasePrincipal::CloneStrippingUserContextIdAndFirst into nsPermission to avoid misuses, r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D27235

--HG--
extra : moz-landing-system : lando
2019-04-15 10:26:09 +00:00
Jan Varga 31b9a4462c Bug 1542155 - LSNG: Convert MOZ_ALWAYS_TRUE(SendFinish()) to MOZ_DIAGNOSTIC_ALWAYS_TRUE(SendFinish()); r=asuth 2019-04-05 16:46:59 +02:00
Csoregi Natalia 0a57edb23d Merge mozilla-central to mozilla-inbound. CLOSED TREE 2019-04-15 12:48:34 +03:00
Andreas Pehrson 4ec909364e Bug 1544199 - Allow `rv = shutdown->RemoveBlocker()` to be unused in SpeechRecognition. r=me 2019-04-15 11:10:41 +02:00
Ciure Andrei 6d8c05133f Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2019-04-11 19:13:48 +03:00
Ciure Andrei bc3c25dece Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2019-04-11 12:57:28 +03:00
Paul Adenot 387f4ae5fd Bug 1531833 - When the input is voice, activate the global communication mode. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D21738

--HG--
extra : moz-landing-system : lando
2019-04-11 09:19:35 +00:00
Paul Adenot 7806f50930 Bug 1531833 - Add a way to tell the graph driver that the audio input is voice. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D21737

--HG--
extra : moz-landing-system : lando
2019-04-11 09:19:34 +00:00
Paul Adenot b64c360235 Bug 1531833 - Expose a way to set a global "communication mode" in CubebUtils, to be use by real-time duplex audio users. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D21736

--HG--
extra : moz-landing-system : lando
2019-04-11 09:19:34 +00:00
Daniel Varga fc6614312a Merge mozilla-central to autoland. a=merge 2019-04-11 07:25:42 +03:00
Daniel Varga 2f4a6dc373 Merge autoland to mozilla-central. a=merge 2019-04-11 07:21:46 +03:00
Karl Tomlinson 1896b280b5 bug 1542934 Annotate that CustomElementConstructor::Construct() callers can run script r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D26635

--HG--
extra : moz-landing-system : lando
2019-04-10 12:51:15 +00:00
Jan Varga 2927a7377f Bug 1543209 - LSNG: Detect missing unregister calls for live datastores using CheckedUnsafePtr; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D26826
2019-04-09 23:56:17 +02:00
Jan Varga 9581f4b34a Bug 1543089 - IDB: Detect missing unregister calls for live databases and factory ops using CheckedUnsafePtr; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D26716
2019-04-09 15:48:20 +02:00
Karl Tomlinson 8591f49e08 Bug 1542934 Mark strong reference members as const to aid CanRunScriptChecker r=smaug
Depends on D26633

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

--HG--
extra : moz-landing-system : lando
2019-04-09 13:37:23 +00:00
Karl Tomlinson fb212757ff Bug 1542934 strong ref arguments for functions that may run CustomElementConstructor::Construct() r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D26633

--HG--
extra : moz-landing-system : lando
2019-04-10 06:29:56 +00:00
Emilio Cobos Álvarez 4eed4619c8 Bug 1543394 - Don't update visited state of all <html:link> elements in chrome docs. r=smaug
I don't think there's a point in making <link> elements match :visited, and it's
an issue for Chrome docs because some chrome code can run before we have a
profile.

Make the already-existent workaround for localization links work more generally.

There's no interop across browsers here anyhow:

  https://github.com/w3c/csswg-drafts/issues/3817

tracks that.

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

--HG--
extra : moz-landing-system : lando
2019-04-10 18:44:42 +00:00
Daniel Varga bf215dbbd8 Merge mozilla-central to autoland. a=merge on a CLOSED TREE
--HG--
extra : rebase_source : 33d0709730d68206491b4facb0645c798ff943e3
2019-04-11 00:59:25 +03:00
Daniel Varga d0d4b7058d Merge mozilla-inbound to mozilla-central. a=merge 2019-04-11 00:54:55 +03:00
Daniel Varga f2b514eaaa Merge autoland to mozilla-central. a=merge 2019-04-11 00:51:52 +03:00
Csoregi Natalia b794b31607 Backed out changeset d76b42f0d6ca (bug 1523636) for causing bug 1543015. a=backout 2019-04-10 18:46:01 +03:00
Csoregi Natalia 69ace9da34 Merge inbound to mozilla-central. a=merge 2019-04-10 12:59:51 +03:00
longsonr 866f2126b4 Bug 1540408 Part 3 - Rename SVGViewBoxRect to SVGViewBox r=dholbert 2019-04-10 05:08:14 +01:00
Narcis Beleuzu f12656eec3 Backed out changeset bdc40c000b29 (bug 1533525) for build bustages on WebGLTypes.h . CLOSED TREE 2019-04-10 03:17:41 +03:00
Jeff Gilbert a513ab4d25 Bug 1533525 - Don't freely convert WebGL(int|sizei)ptr to GL(int|sizei)ptr. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D26631
2019-04-09 16:41:16 -07:00
Narcis Beleuzu 32e64c394e Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-04-10 01:28:09 +03:00
Narcis Beleuzu 065ab21012 Merge inbound to mozilla-central. a=merge 2019-04-10 01:09:36 +03:00
Bogdan Tara 3b6c73d88a Backed out changeset 3cd097a7b017 (bug 1539006) for po-observe.any.worker.html failures CLOSED TREE 2019-04-10 09:48:56 +03:00
Brendan Dahl 0d976daec9 Bug 1543245 - Prevent HTML script tags from loading twice when using PrototypeDocument. r=smaug
HTML script tags were being loaded once by the element when it was bound
to the tree and a second time by the PrototypeDocumentContentSink. This
patch disables the script element from loading itself.

Depends on D26822

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

--HG--
extra : moz-landing-system : lando
2019-04-10 06:36:06 +00:00
Brendan Dahl 9f4543e6a1 Bug 1543245 - Use prototype document for all chrome XHTML pages. r=smaug
Let all chrome privileged XHTML take advantage of the cache and
faster document creation with the prototype document.

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

--HG--
extra : moz-landing-system : lando
2019-04-10 06:38:10 +00:00
longsonr 4c4cabe851 Bug 1540408 Part 2 - Move nsSVGLength2 and nsSVGNumber2 to the mozilla namespace renaming them to be SVGAnimatedLength and SVGAnimatedNumber. r=dholbert
--HG--
rename : dom/svg/nsSVGLength2.cpp => dom/svg/SVGAnimatedLength.cpp
rename : dom/svg/nsSVGLength2.h => dom/svg/SVGAnimatedLength.h
rename : dom/svg/nsSVGNumber2.cpp => dom/svg/SVGAnimatedNumber.cpp
rename : dom/svg/nsSVGNumber2.h => dom/svg/SVGAnimatedNumber.h
2019-04-09 21:04:33 +01:00
Boris Zbarsky 46f7cb3617 Bug 1542461. Flag realms of windows as dead once we unlink their nsGlobalWindowInner, so debugger's findAllGlobals won't hand them out to script. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D26563

--HG--
extra : moz-landing-system : lando
2019-04-09 10:21:37 +00:00
Nico Grunbaum 6db783d06e Bug 1518609 - Add telemetry to legacy maxRetransmitTime DataChannel param r=jib,janerik
Adds telemetry to the DataChannel init param maxRetransmitTime.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 01:42:51 +00:00
Marcos Cáceres 6a3953940b Bug 1534756 - Don't throw exception in ManifestObtainer if a document has no manifest r=snorp
We now return null when the manifest lacks a href or is missing.

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

--HG--
extra : moz-landing-system : lando
2019-04-10 12:46:41 +00:00
Marcos Cáceres f78caebcd5 Bug 1534677 - Verify lang member in ManifestProcessor.jsm r=snorp
Implement language tag validation and canonicalization for lang member

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

--HG--
extra : moz-landing-system : lando
2019-04-11 01:35:21 +00:00
Dorel Luca 58348f299b Backed out changeset aa0feb50773a (bug 1540221) for WPT failures in /html/semantics/embedded-content/the-canvas-element/security.pattern.fillStyle.sub.html. CLOSED TREE 2019-04-11 05:28:34 +03:00
Coroiu Cristina 9943b037bc Backed out 2 changesets (bug 1543245) for frequently failing devtools at devtools/client/inspector/test/browser_inspector_highlighter-07.js on a CLOSED TREE
Backed out changeset 8e8da015fde1 (bug 1543245)
Backed out changeset a4d256528051 (bug 1543245)
2019-04-11 05:21:18 +03:00
Andrea Marchesini d7915fa305 Bug 1540221 - Setting fillStyle to a pattern of an unclean canvas makes the canvas origin-unclean, r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D25773

--HG--
extra : moz-landing-system : lando
2019-04-09 20:10:03 +00:00
Boris Zbarsky 423697c891 Bug 1543461. Add the missing newline after a static assert in Web IDL codegen. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D26960

--HG--
extra : moz-landing-system : lando
2019-04-10 19:05:15 +00:00
Hiroyuki Ikezoe 700ec53c21 Bug 1535232 - Take account the scroll-snap-margin and scroll-snap-padding into the position where we scroll to on Element.focus() call. r=masayuki,botond
We also take account those values in the case of `Find in page`.

The corresponding web platform tests will be coming from this PR.
https://github.com/web-platform-tests/wpt/pull/8575

Though some of them will not be passed, the failure reason is not related
to this change, I will take a look when the PR gets merged into mozilla-central.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 06:22:38 +00:00
Hiroyuki Ikezoe 7b600a0531 Bug 1534070 - Factor scroll-padding into the position calculation where nsIPresShell::ScrollContentIntoView() is going to scroll if necessary. r=botond
In the case where scroll-snap-type is specified for the scroll container, the
scroll-padding is also factored into in ScrollFrameHelper::ComputeScrollSnapInfo
which is called via ScrollFrameHelper::ScrollToWithOrigin.  It doesn't double
the scroll-padding value, but it's actually redundant, we should avoid it.
We could separate the functionality of ScrollToWithOrigin, one is to scroll
to a given element, the other is to scroll to a given position.  The former will
be used for Element.scrollIntoElement and relevant stuff, the latter will be
used for Element.scrollTo and relevant stuff.  That's being said, as of now, we
have still the old scroll snap implementation, so the separation will introduce
complexity, the separation should be done once after the old implementation
removed.

There are 9 call sites of nsIPresShell::ScrollContentIntoView:
  nsIPresShell::GoToAnchor
  nsIPresShell::ScrollToAnchor
  Element::ScrollIntoView
   We definitely needs scroll-padding and scroll-margin for these functions.

  nsCoreUtils::ScrollTo
   This is used for Accesible::ScrollTo which scrolls to a given accesible node,
   probably we should behave as what Element::ScrollIntoView does.

  Accessible::DispatchClickEvent
   Similar to the above, similated various mouse events on a given target node.

  PresShell::EventHandler::PrepareToUseCaretPosition
  PresShell::EventHandler::GetCurrentItemAndPositionForElement
   Both are for context menu, we shouldn't consider scroll-padding and
   scroll-margin.

  nsFormFillController::SetPopupOpen
   This is used for autocompletion popup, we shouldn't consider scroll-padding
   and scroll-margin.

  nsFocusManager::ScrollIntoView
   This is bit unfortunate, we should use scroll-padding and scroll-margin
   depending on call site of this function. Bug 1535232 is for this case.

cssom-view/scrollIntoView-scrollPadding.html which has some tests that is
actually testing scroll-padding with scrollIntoView passes with this change.

The reftest in this change is a test case that the browser navigates to an
element with specifying the anchor to the element.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 06:22:14 +00:00
Hiroyuki Ikezoe a7fb73dd6e Bug 1373835 - Enable scroll snap for Element.scrollIntoView. r=botond
Depends on D21625

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

--HG--
extra : moz-landing-system : lando
2019-04-11 06:20:11 +00:00
shindli ab80016442 Backed out changeset e80a847a8b9b (bug 1533129) for causing perma mda failures in dom/media/mediasource/test/test_isTypeSupportedExtensions.html
--HG--
extra : rebase_source : 434f35ad3363c0c59eea03858f045d122cc3f114
2019-04-10 06:35:39 +03:00
Brindusan Cristian 369ab2687e Backed out changeset ea2baf2c9ae7 (bug 1534756) for mochitest failures at test_ManifestProcessor_JSON.html. 2019-04-10 05:29:46 +03:00
Will Hawkins bfba5b52bb Bug 1539006: Properly implement Performance Timeline Level 2 w3c spec. r=baku,flod
Differential Revision: https://phabricator.services.mozilla.com/D26654

--HG--
extra : moz-landing-system : lando
2019-04-10 00:14:39 +00:00
Marcos Cáceres 585f841266 Bug 1534756 - Don't throw exception in ManifestObtainer if a document has no manifest r=snorp
We now return null when the manifest lacks a href or is missing.

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

--HG--
extra : moz-landing-system : lando
2019-04-09 20:32:54 +00:00
Chris Pearce 2d1f469cd2 Bug 1533129 - Add extended MIME parameter support to MediaSource.isTypeSupported on YouTube only. r=jya
YouTube.com/tv uses YouTube specific extensions to MediaSource.isTypeSupported
in order to determine whether it serves 4K. It checks with bogus values, and if
we reject the bogus values, it assumes we're responding truthfully to the other
queries. So add support to reject the bogus values on YouTube.com.

With this patch, we can play 4K on YouTube.com/tv.

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

--HG--
extra : moz-landing-system : lando
2019-04-09 23:23:35 +00:00
Valentin Gosu 06334e695a Bug 1530303 - Put CrossOriginOpenerPolicy in BrowsingContext r=nika
Differential Revision: https://phabricator.services.mozilla.com/D23935

--HG--
extra : moz-landing-system : lando
2019-04-09 20:10:13 +00:00
Narcis Beleuzu e29fb0bb6d Merge mozilla-central to autoland. a=merge CLOSED TREE
--HG--
rename : devtools/client/debugger/new/src/actions/pause/paused.js => devtools/client/debugger/src/actions/pause/paused.js
rename : devtools/client/debugger/new/src/actions/pause/resumed.js => devtools/client/debugger/src/actions/pause/resumed.js
rename : devtools/client/debugger/new/src/actions/pause/tests/pause.spec.js => devtools/client/debugger/src/actions/pause/tests/pause.spec.js
rename : devtools/client/debugger/new/src/actions/tests/ast.spec.js => devtools/client/debugger/src/actions/tests/ast.spec.js
rename : devtools/client/debugger/new/src/actions/tests/expressions.spec.js => devtools/client/debugger/src/actions/tests/expressions.spec.js
rename : devtools/client/debugger/new/src/actions/tests/helpers/threadClient.js => devtools/client/debugger/src/actions/tests/helpers/threadClient.js
rename : devtools/client/debugger/new/src/client/firefox/commands.js => devtools/client/debugger/src/client/firefox/commands.js
rename : devtools/client/debugger/new/test/mochitest/.eslintrc => devtools/client/debugger/test/mochitest/.eslintrc
rename : devtools/client/debugger/new/test/mochitest/browser_dbg-breakpoints-columns.js => devtools/client/debugger/test/mochitest/browser_dbg-breakpoints-columns.js
rename : devtools/client/debugger/new/test/mochitest/browser_dbg-breakpoints-cond.js => devtools/client/debugger/test/mochitest/browser_dbg-breakpoints-cond.js
2019-04-10 01:26:00 +03:00
Michael Froman 0ce32c1d6d Bug 1539029 - pt 4 - add shared pref serializer/deserializer to RDD process. r=kmag
Depends on D26568

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

--HG--
extra : moz-landing-system : lando
2019-04-09 21:08:00 +00:00
Michael Froman ac99c1dda6 Bug 1539029 - pt 3 - de-duplicate building cmdline for shared prefs class. r=kmag
Cmd-line params for the SharedPreferenceSerializer was
duplicated in ContentParent and
SocketProcessHost.  Since we'll have a 3rd process (RDD)
using this same code, let's move the repsonsiblity for knowing how to add
these cmdline params into SharedPreferenceSerializer.

Depends on D26567

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

--HG--
extra : moz-landing-system : lando
2019-04-09 21:07:47 +00:00
Michael Froman 0b07404bf5 Bug 1539029 - pt 1 - give RDD its own process selector. r=froydnj
Originally, RDD reused the GPU process selector since they were
using all the same services, and it reduced the number of places
that had to be touched.  Now that RDD needs pref handling, it
needs its own process selector to avoid GPU inheriting pref
handling.

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

--HG--
extra : moz-landing-system : lando
2019-04-09 21:13:16 +00:00
Léo Paquet 7c036d7475 Bug 1324548 - Add MediaStreamTrackAudioSourceNode. r=pehrsons,baku
MozReview-Commit-ID: IdVqfNigMyu

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

--HG--
extra : moz-landing-system : lando
2019-04-10 12:14:17 +00:00
Paul Adenot 07dec0f992 Bug 1324548 - Tests for MediaStreamTrackAudioSourceNode. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D16066

--HG--
extra : moz-landing-system : lando
2019-04-10 12:14:15 +00:00
Brendan Dahl 44fd876aaf Bug 1080029 - Support HTML template in XUL documents. r=smaug
Check if the current parent element is an HTML template element and if it
is, append to the document fragment instead of it.

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

--HG--
extra : moz-landing-system : lando
2019-04-09 19:50:00 +00:00
Andrea Marchesini 0ca645f0d6 Bug 1534351 - HTMLInputElement should always allow popups for system principal, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D26671

--HG--
extra : moz-landing-system : lando
2019-04-09 19:27:15 +00:00
Frederik Braun 23a6ba351f Bug 1513445: add tests r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D26681

--HG--
extra : moz-landing-system : lando
2019-04-10 14:20:21 +00:00
Frederik Braun e3dae73936 Bug 1513445 - Disallow web documents loaded with the SystemPrincipal r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D26680

--HG--
extra : moz-landing-system : lando
2019-04-10 14:20:12 +00:00
Csoregi Natalia b0782effcb Merge mozilla-central to autoland. CLOSED TREE 2019-04-10 16:21:21 +03:00
Matt Woodrow 7c9ef067b7 Bug 1538969 - Report nsDisplayVideo as being opaque when possible so that we can occlude content behind it. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D25189

--HG--
extra : moz-landing-system : lando
2019-04-10 08:08:26 +00:00
Matt Woodrow 5afd2f3dd1 Bug 1538969 - Report an opaque surface format for AndroidSurfaceTextureData when it's being used for an opaque video. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D25185

--HG--
extra : moz-landing-system : lando
2019-04-10 08:08:22 +00:00
Andrea Marchesini 372070277d Bug 1543321 - Use nsContentUtils::GetThreadSafeUTFOrigin in the URL API, r=smaug
Depends on D26862

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

--HG--
extra : moz-landing-system : lando
2019-04-10 08:05:00 +00:00
Andrea Marchesini 4db529bed9 Bug 1543321 - Implement nsContentUtils::GetThreadSafeUTFOrigin, r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D26862

--HG--
extra : moz-landing-system : lando
2019-04-10 08:05:18 +00:00
Jan Varga 2001874a68 Bug 1542541 - FactoryOp::ActorDestroy needs to do cleanup if the actor was waiting for the PermissionRetry message; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D26433
2019-04-06 23:27:07 +02:00
Jan Varga 06dba23590 Bug 1542475 - LSNG: Potential double closing of datastores; r=asuth 2019-04-06 12:23:14 +02:00
Mike Hommey a180bcd741 Bug 1543009 - Move Windows webspeech xpcom component to static registration. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D26887
2019-04-11 16:22:03 +09:00
Mike Hommey f2903b2101 Bug 1543009 - Move OSX webspeech xpcom component to static registration. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D26886
2019-04-11 16:22:02 +09:00
Mike Hommey 657307cf3a Bug 1543009 - Move Android webspeech xpcom component to static registration. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D26885
2019-04-11 16:21:44 +09:00
Kartikaya Gupta 8878b7856b Bug 1537958 - Discard and reschedule visual viewport events if the prescontext changes. r=botond
It seems that in some scenarios, the lifetime of the visual viewport
object exceeds the lifetime of the prescontext. In particular, the
prescontext produced by GetPresContext() can be torn down and a new one
installed. This can leave the visual viewport in a wedged state where it
has scheduled events to be dispatched, but they will never actually be
dispatched, and then subsequent events will not get scheduled. This
patch checks to see if the prescontext has changed, and if so, discards
the old events and reschedules new ones.

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

--HG--
extra : moz-landing-system : lando
2019-04-10 18:36:42 +00:00
Kartikaya Gupta d45de3307d Bug 1526928 - Check for TabParent destruction before trying to send a message on it. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D26830

--HG--
extra : moz-landing-system : lando
2019-04-10 18:40:42 +00:00
Mathieu Leplatre 6ac6c635da Bug 1540141 - Distinguish broadcast trigger from startup trigger in Remote Settings Uptake events r=glasserc,lina
Distinguish broadcast trigger from startup trigger in Remote Settings Uptake events

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

--HG--
extra : moz-landing-system : lando
2019-04-10 16:55:52 +00:00
Sebastian Hengst 8cf98c5a84 Bug 1541017 - Update in-tree bugzilla components for geolocation and dom/commandhandler/. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D25762

--HG--
extra : moz-landing-system : lando
2019-04-02 16:39:03 +00:00
Jeff Walden c904278324 Bug 1542910 - Make all script compilation APIs directly return a JSScript*, rather than returning a success code and returning the JSScript* via outparam that exactly duplicates the success code value's meaning. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D26616

--HG--
extra : moz-landing-system : lando
2019-04-09 17:58:52 +00:00
Brindusan Cristian aac73a89d3 Backed out changeset 2647a23c02bf (bug 1534351) for mochitest failures at test_multipleFilePicker.html. CLOSED TREE
--HG--
extra : histedit_source : aa91bdf0dd2666052949d80d9910e03a0d787598
2019-04-09 20:45:05 +03:00
Brindusan Cristian 149c6ee879 Backed out changeset 53e379a5738f (bug 1542910) as requested by waldo on irc. CLOSED TREE
--HG--
extra : histedit_source : 8714b8dac07c146822952ede6a8d85b3bf4caf50
2019-04-09 20:43:52 +03:00
Jeff Walden 9f030a47c2 Bug 1542910 - Make all script compilation APIs directly return a JSScript*, rather than returning a success code and returning the JSScript* via outparam that exactly duplicates the success code value's meaning. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D26616

--HG--
extra : moz-landing-system : lando
2019-04-09 17:24:31 +00:00
Cosmin Sabou 186c0b16ca Merge mozilla-central to autoland. 2019-04-09 19:29:02 +03:00
Noemi Erli 4a518ba201 Backed out changeset d470f958ea61 (bug 1542910) for bustages in testEmptyWindowIsOmitted.cpp 2019-04-09 19:24:46 +03:00
Cosmin Sabou fa0cc212b6 Merge mozilla-inbound to mozilla-central. a=merge 2019-04-09 19:24:14 +03:00
Andreas Farre dc4332dabb Bug 1539012 - Don't assert when setting opener on a closed window. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D26495

--HG--
extra : moz-landing-system : lando
2019-04-09 11:56:04 +00:00
Jeff Walden 1a5a3f4e6e Bug 1542910 - Make all script compilation APIs directly return a JSScript*, rather than returning a success code and returning the JSScript* via outparam that exactly duplicates the success code value's meaning. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D26616

--HG--
extra : moz-landing-system : lando
2019-04-09 03:50:03 +00:00
Andrea Marchesini f9fecdc909 Bug 1534351 - HTMLInputElement should always allow popups for system principal, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D26671

--HG--
extra : moz-landing-system : lando
2019-04-09 14:25:58 +00:00
Bryce Van Dyk c10bad5275 Bug 1540136 - P5: Handle if ChromiumCDMProxy is shutdown in the middle of init. r=cpearce
- Watch for if a proxy shuts down during init and if so, shutdown the CDM parent
  that is being initialized.
- Make ChromiumCDMParent only store a pointer to a ChromiumCDMProxy when it has
  successfully initialized. This avoid the lopsided relationship where a if a
  ChromiumCDMParent fails to initialize it may keep a pointer to a proxy, but
  the proxy will never have a reference to that CDM parent.

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

--HG--
extra : moz-landing-system : lando
2019-04-09 15:07:49 +00:00
Bryce Van Dyk ee2feb5db5 Bug 1540136 - P4: Remove ChromiumCDMParent mMainThread as it is unused. r=cpearce
Differential Revision: https://phabricator.services.mozilla.com/D26207

--HG--
extra : moz-landing-system : lando
2019-04-09 15:07:19 +00:00
Bryce Van Dyk aed4a4bf6a Bug 1540136 - P3: ChromiumCDMProxy runs CDM init thennable code on the main thread. r=cpearce
This code is calling other code that expects to be on the main thread, and
having this on the main thread (now that the main thread is a serial event
target) makes it easier to reason about this and other main thread code. I.e.
this cannot be running during other main thread code.

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

--HG--
extra : moz-landing-system : lando
2019-04-09 15:06:59 +00:00
Bryce Van Dyk 8fa2904e50 Bug 1540136 - P2: CDMProxy stores main thread as nsISerialEventTarget, rather than nsIEventTarget. r=cpearce
This gives us greater flexibility in using the main thread member to run
promises.

The site where we obtain the main thread returns a serial event target, so we're
not doing much more work here, we're just keeping the serial event target
interface, rather than converting to an event target interface.

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

--HG--
extra : moz-landing-system : lando
2019-04-09 15:06:38 +00:00
Bryce Van Dyk 1def9c5ba7 Bug 1540136 - P1: Log more info in ChromiumCDMProxy dtor and Shutdown. r=cpearce
Also remove unneeded MOZ_COUNT_[CTOR|DTOR] macros. We already get similar
functionality from NS_INLINE_DECL_THREADSAFE_REFCOUNTING.

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

--HG--
extra : moz-landing-system : lando
2019-04-09 15:05:01 +00:00
Yaron Tausky e8af6c032a Bug 1539538 - Introduce UnsafePtr r=froydnj,janv
This commit adds a smart pointer class that verifies that no dangling
pointers remain after the pointee went out of scope. This verification is
opt-in and can be controlled both statically and dynamically by the pointee.

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

--HG--
extra : moz-landing-system : lando
2019-04-09 14:41:57 +00:00
Mathieu Leplatre 1cdc04dfda Bug 1541888 - Enable ESLinting in dom/push/ r=glasserc,lina
Enable ESLinting in dom/push/

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

--HG--
extra : moz-landing-system : lando
2019-04-09 10:05:51 +00:00
Bryce Van Dyk 0f9dab6a5b Bug 1542539 - Add crash test for mp4 with a 0 by 0 dimension track. r=jya
Depends on D26612

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

--HG--
extra : moz-landing-system : lando
2019-04-09 09:56:26 +00:00
Bryce Van Dyk e8c6250244 Bug 1542539 - MediaData::ValidateBufferAndPicture warns on 0 by 0 dimension data instead of asserting. r=jya
Warn instead of asserting since it's possible for decoders to give us 0 by 0
frames here.

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

--HG--
extra : moz-landing-system : lando
2019-04-09 09:56:13 +00:00
Henri Sivonen 95281be87c Bug 1532901 - Fix event.screenX and event.screenY inside out-of-process iframes. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D25582

--HG--
extra : moz-landing-system : lando
2019-04-09 10:26:31 +00:00
pet_flipper e6f56104fb Bug 1445923 - Removed references of systemAppUrl along with meaningless code. r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D26503

--HG--
extra : moz-landing-system : lando
2019-04-09 09:41:19 +00:00
Noemi Erli 4d1c376ac0 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-04-09 13:00:14 +03:00
Noemi Erli dd7e27f4a8 Merge inbound to mozilla-central. a=merge 2019-04-09 12:55:19 +03:00
Noemi Erli 4033c58c26 Backed out changeset 481a37f3892a (bug 1540408) for build bustages in SVGViewportElement.h
--HG--
rename : dom/svg/SVGAnimatedLength.cpp => dom/svg/nsSVGLength2.cpp
rename : dom/svg/SVGAnimateLength.h => dom/svg/nsSVGLength2.h
rename : dom/svg/SVGAnimatedNumber.cpp => dom/svg/nsSVGNumber2.cpp
rename : dom/svg/SVGAnimatedNumber.h => dom/svg/nsSVGNumber2.h
2019-04-09 09:53:57 +03:00
Mirko Brodesser 6b88118d6b Bug 1540632: change exception and correct setting selectionStart/End/Direction for type change of '<input>' element r=smaug
- Change exception when setting '<input type="file">'s value according to spec.

- Set 'selectionStart', 'selectionEnd', 'selectionDirection' according
  to https://html.spec.whatwg.org/multipage/input.html#signal-a-type-change.

- Minorly update nsTextEditorState's documentation.

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

--HG--
extra : moz-landing-system : lando
2019-04-09 06:42:15 +00:00
longsonr ef9cb13839 Bug 1540408 Part 2 - Move nsSVGLength2 and nsSVGNumber2 to the mozilla namespace renaming them to be SVGAnimatedLength and SVGAnimatedNumber. r=dholbert
--HG--
rename : dom/svg/nsSVGLength2.h => dom/svg/SVGAnimateLength.h
rename : dom/svg/nsSVGLength2.cpp => dom/svg/SVGAnimatedLength.cpp
rename : dom/svg/nsSVGNumber2.cpp => dom/svg/SVGAnimatedNumber.cpp
rename : dom/svg/nsSVGNumber2.h => dom/svg/SVGAnimatedNumber.h
2019-04-09 07:33:14 +01:00
Razvan Maries a3e3bcf2fe Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2019-04-09 06:43:36 +03:00
Khyati Agarwal 296a6514a0 bug 1520711 - EME key system constants are used with UTF-8 functions where ASCII functions would do r=hsivonen,jya
EME key system constants are used with UTF-8 functions where ASCII functions would do

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

--HG--
extra : moz-landing-system : lando
2019-04-09 08:02:24 +00:00
Henri Sivonen b8e3697e3b Bug 1540665 - Propagate chrome flags to out-of-process iframes. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D26500

--HG--
extra : moz-landing-system : lando
2019-04-08 21:22:58 +00:00
Razvan Maries 51bf310eab Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2019-04-09 00:02:13 +03:00
Ciure Andrei 7e99b88e20 Backed out changeset b88166b3b314 (bug 1542263) for 1401692.html perma failures a=backout 2019-04-08 21:59:14 +03:00
Daniel Varga 673797a0bb Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2019-04-08 19:29:28 +03:00
Nika Layzell c5ed431446 Bug 1542782 - Expose currentRemoteType on CanonicalBrowsingContext, r=farre
Differential Revision: https://phabricator.services.mozilla.com/D26550

--HG--
extra : moz-landing-system : lando
2019-04-08 16:29:08 +00:00
Nika Layzell 91f0500959 Bug 1542781 - Expose browsingContext on FrameLoaderOwner, r=farre
Differential Revision: https://phabricator.services.mozilla.com/D26548

--HG--
extra : moz-landing-system : lando
2019-04-08 16:27:28 +00:00
Tarek Ziadé 63c5bb98b4 Bug 1541189 - Fix intermittents on stream test - r=whimboo
Tweak the Streaming test to fix intermittents.

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

--HG--
extra : moz-landing-system : lando
2019-04-08 13:04:20 +00:00
Emilio Cobos Álvarez 6e94f79a85 Bug 1542263 - Measure the styleset memory usage from the document, not the pres shell. 2019-04-08 14:59:23 +02:00
Andreas Farre 888908c3cb Bug 1523636 - Create BrowsingContext in nsFrameLoader. r=nika,qdot
Differential Revision: https://phabricator.services.mozilla.com/D25039

--HG--
extra : moz-landing-system : lando
2019-04-08 08:21:40 +00:00
Nathan Froyd ebdc4b2408 Bug 1542344 - fix API mismatches in ImageEncoder; r=mccr8
ImageEncoder::ExtractDataInternal takes a `const nsAString&` for its
options, but flattens it into a null-terminated `nsString` so callees
can take a `char16_t*`.  But nearly all of those callees eventually wind
up calling ImageEncoder::GetInputStream, which just constructs an
`nsDependentString` from the passed character pointer.

There's no reason to do all this extra work.  We can just pass the
original options reference all the way through the stack and avoid
needless conversions.

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

--HG--
extra : moz-landing-system : lando
2019-04-08 01:51:17 +00:00
Mats Palmgren f7b17e74b4 Bug 1542594 - Apply counter-set after counter-increment, not before. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D26439

--HG--
extra : rebase_source : 5e95ba52fda0b4b30865d7e98b9f49178f620cd6
2019-04-07 13:45:57 +02:00
Dorel Luca 1be446680f Merge mozilla-inbound to mozilla-central. a=merge 2019-04-08 13:45:29 +03:00
Yoshi Cheng-Hao Huang 222255214e Bug 1534967 - Part 1: use RootedIdVector. r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D25042
2019-04-08 10:46:53 +08:00
Narcis Beleuzu 8d78f21970 Backed out changeset 253e90f0ccf3 (bug 1541021) for mochitest failures on test_bounds.html 2019-04-07 19:50:14 +03:00
violet ea72deb0be Bug 1541021 - Should take CSS transform into account when calculating getBoundingClientRect() r=longsonr
We should use nsLayoutUtils::GetTransformToAncestor instead of
nsSVGUtils::GetUserToCanvasTM to get the transform matrix. Because the former
will also take CSS transform into account while the latter won't.

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

--HG--
extra : moz-landing-system : lando
2019-04-07 14:11:39 +00:00
Paul Adenot 6a2902075e Bug 1541805 - Don't rely on the MSG to determine the number of channels to use, pass it instead. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D26197

--HG--
extra : moz-landing-system : lando
2019-04-08 07:59:47 +00:00
Jan Varga cbaad6cbbc Bug 1542535 - Ensure QuotaManagerService exists before calling AbortOperationsForProcess in ContentParent; r=asuth 2019-04-06 21:11:59 +02:00
John Lin 2441080e34 Bug 1542440 - Recycle sample directly rather than through CodecProxy. r=jya
mJavaDecoder is invalid after the decoder is shut down and should never
be used.

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

--HG--
extra : moz-landing-system : lando
2019-04-08 09:16:20 +00:00
Byron Campen [:bwc] 01384d1b9c Bug 1542021 - Part 1: Check whether transceiver is stopped in removeTrack, and bail if so. r=jib
Depends on D26314

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

--HG--
extra : moz-landing-system : lando
2019-04-05 15:50:37 +00:00
Andreas Pehrson ef14eac7d8 Bug 1542685 - Avoid integer overflows by multiplying doubles. r=padenot
SaferMultDiv(time, audioScale, videoScale) could easily result in overflow
because all three args are roughly equal, and SaferMultDiv would always do the
multiplication first. The worst-case is then multiplying an int64_t to another
int64_t that have very similar values. Since we represent time here in
microseconds, this would overflow after only 50 minutes.

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

--HG--
extra : moz-landing-system : lando
2019-04-08 14:27:13 +00:00
Andreas Farre 1f89df5c43 Bug 1471598 - Assert valid browsing context modifications. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D25066

--HG--
extra : moz-landing-system : lando
2019-04-05 14:36:24 +00:00
violet c0ca7d5cac Bug 1541021 - Should take CSS transform into account when calculating getBoundingClientRect() r=longsonr
We should use nsLayoutUtils::GetTransformToAncestor instead of
nsSVGUtils::GetUserToCanvasTM to get the transform matrix. Because the former
will also take CSS transform into account while the latter won't.

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

--HG--
extra : moz-landing-system : lando
2019-04-08 04:39:23 +00:00
Mike Hommey 071a2fe984 Bug 1541792 - Replace linker magic with manual component registration. r=froydnj
Before bug 938437, we had a rather large and error-prone
nsStaticXULComponents.cpp used to register all modules. That was
replaced with clever use of the linker, which allowed to avoid the mess
that maintaining that file was.

Fast forward to now, where after bug 1524687 and other work that
preceded it, we have a much smaller number of remaining static xpcom
components, registered via this linker hack, and don't expect to add
any new ones. The list should eventually go down to zero.

Within that context, it seems to be the right time to get rid of the
magic, and with it the problems it causes on its own.

Some of those components could probably be trivially be converted to
static registration via .conf files, but I didn't want to deal with the
possible need to increase the number of dummy modules in XPCOMInit.cpp.
They can still be converted as a followup.

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

--HG--
extra : moz-landing-system : lando
2019-04-05 02:30:56 +00:00
Cosmin Sabou e4a2cb3ab3 Backed out changeset c0394b2d9173 (bug 1534677) for m-e10s failures on test_ManifestProcessor_lang.html CLOSED TREE 2019-04-09 08:54:41 +03:00
Cosmin Sabou fa2d5b1cec Backed out 3 changesets (bug 1538969) for wpt reftests failures on transform3d-backface-visibility-001.
Backed out changeset c8e85a802c77 (bug 1538969)
Backed out changeset 911386e724bc (bug 1538969)
Backed out changeset 2332a2fb02fa (bug 1538969)

--HG--
extra : amend_source : 6f1ed1f9f2e978ab6c52a03cde73b225ff09448b
2019-04-09 08:52:20 +03:00
Masayuki Nakano a50a0700d4 Bug 1530649 - Improve composition string handling which ends with whitespaces r=m_kato
If insertion string ends with ASCII whitespace and there is no following
content in the block, `HTMLEditRules::AdjustWhitespaces()` needs to insert
`<br>` element.  It's called only by `HTMLEditRules::AfterEditInner()` and
that does only simple things with `WSRunObject`.  Therefore, this moves the
code into `AfterEditInner()`.

For making it adjust the whitespaces, `HTMLEditRules::WillInsertText()` needs
to notify `AfterEditInner()` of dirty range with `mDocChangeRange`.  Therefore,
this patch makes it set `mDocChangeRange` manually after inserting composition
string.

On the other hand, there is another bug.  `WSRunObject` was designed to treat
only inserting text for `WSRunObject::InsertText()`.  I.e., not designed to
treat replacing existing composition string with new string.  Therefore,
`WSRunObject::InsertText()` adjusts whitespaces only around start of
composition string.  Therefore, if composition string ends with an ASCII
whitespace, it's not replaced with NBSP and that causes:
- failing `WSRunObject::AdjustWhitespaces()` inserts `<br>` element at
  `AfterEditInner()` of committing composition.
- then, next composition's first `WSRunObject::InsertText()` removes the
  last whitespace due to not followed by `<br>` nor any other content.
Therefore, this patch makes `WSRunObject` takes 2 DOM points to be able to
treat replaced range.

In strictly speaking, the latter change require more changes and tests for
supporting replacement with any other methods.  However, it's risky and out
of scope of this bug.

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

--HG--
extra : moz-landing-system : lando
2019-04-09 05:28:38 +00:00
Matt Woodrow 541c8cc1c3 Bug 1538969 - Report nsDisplayVideo as being opaque when possible so that we can occlude content behind it. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D25189

--HG--
extra : moz-landing-system : lando
2019-04-09 03:16:39 +00:00
Matt Woodrow 34ec34f8a9 Bug 1538969 - Report an opaque surface format for AndroidSurfaceTextureData when it's being used for an opaque video. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D25185

--HG--
extra : moz-landing-system : lando
2019-04-09 03:16:09 +00:00
Jeff Walden 5d14f1a988 Bug 1542910 - Make JS::CompileFunction return a JSFunction* directly, instead of by outparam for no good reason. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D26615

--HG--
extra : moz-landing-system : lando
2019-04-09 03:49:58 +00:00
Marcos Cáceres e64738e122 Bug 1534677 - Verify lang member in ManifestProcessor.jsm r=snorp
Implement language tag validation and canonicalization for lang member

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

--HG--
extra : moz-landing-system : lando
2019-04-08 17:08:51 +00:00
Ciure Andrei 0dc8cf16eb Backed out changeset e04ef5171459 (bug 1539006) for permafailing test_worker_observer.html CLOSED TREE 2019-04-09 06:32:40 +03:00
Will Hawkins f2dbed5cf9 Bug 1525051: Fix resource-timing/buffer-full-inspect-buffer-during-callback.html WPT test. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D26399

--HG--
extra : moz-landing-system : lando
2019-04-08 23:21:08 +00:00
Will Hawkins 9833f90a1f Bug 1539006: Properly implement Performance Timeline Level 2 w3c spec. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D25426

--HG--
extra : moz-landing-system : lando
2019-04-09 00:43:10 +00:00
Ciure Andrei f19457b73f Backed out 2 changesets (bug 1513445) for causing xpc perma fails CLOSED TREE
Backed out changeset 499f5b4d205d (bug 1513445)
Backed out changeset 568de07e5c40 (bug 1513445)
2019-04-09 05:04:45 +03:00
Emilio Cobos Álvarez be936c04a7 Bug 1542263 - Measure the styleset memory usage from the document, not the pres shell. 2019-04-09 02:17:32 +02:00
Frederik Braun 49337094ec Bug 1513445: add tests r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D19351

--HG--
extra : moz-landing-system : lando
2019-04-08 14:58:27 +00:00
Frederik Braun 9252b11f49 Bug 1513445 - Disallow web documents loaded with the SystemPrincipal r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D19350

--HG--
extra : moz-landing-system : lando
2019-04-08 14:58:20 +00:00
Noemi Erli 18a982b872 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-04-07 00:47:23 +03:00
Noemi Erli 77e5bc7c09 Merge inbound to mozilla-central. a=merge 2019-04-07 00:44:56 +03:00
Andreea Pavel 96151ddf1e Merge mozilla-central to mozilla-inbound on a CLOSED TREE 2019-04-06 14:08:51 +03:00
Masayuki Nakano e8446480e1 Bug 1542407 - Make nsIFrame use mozilla::PresShell directly rather than via nsIPresShell r=emilio
Except retrieving from weak reference, `nsIFrame` should treat
`mozilla::PresShell` directly rather than via `nsIPresShell`.

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

--HG--
extra : moz-landing-system : lando
2019-04-06 06:02:28 +00:00
Jeff Walden 5327fe7f3e Bug 1542120 - Add js/public/Warnings.h for warning-related JSAPI. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D26273

--HG--
rename : js/src/jsapi.h => js/public/Warnings.h
extra : moz-landing-system : lando
2019-04-05 22:52:04 +00:00
Sylvestre Ledru 03fc65347c Bug 1542146 - Apply the change with the option StatementMacros from clang-format-8 r=andi
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-04-05 21:42:17 +00:00
Sylvestre Ledru 03c8e8c2dd Bug 1519636 - clang-format-8: Reformat recent changes to the Google coding style r=Ehsan
clang-format-8 upstream had some improvements wrt macros
See: https://reviews.llvm.org/D33440
This is why the diff is bigger than usual

# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-04-05 21:41:42 +00:00
John Lin e86d5d39e0 Bug 1540036 - p2: Check buffer and codec state before processing buffers. r=jya
HandleOutput() runs on Android binder thread pool and could be preempted
by RemoteDateDecoder task queue. That means ProcessOutput() could be scheduled
after ProcessShutdown() or ProcessFlush(). When that happens, aBuffer is no
long valid and should never be processed, and aSample can be
recycled immediately.
Also assert preconditions of buffers received from Java callbacks.

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

--HG--
extra : moz-landing-system : lando
2019-04-05 21:01:56 +00:00
Nico Grunbaum ec5fcb2581 Bug 1541553 - allow RTCRtpReceiverStats roundTripTime of 0 after non-zero values have been reported r=bwc
roundTripTime can be zero once it has been non-zero this should help with intermitents in WPT and mochitests

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

--HG--
extra : moz-landing-system : lando
2019-04-05 19:40:04 +00:00
Thomas Wisniewski 49da211465 Bug 1541138 - Update MimeType.cpp to consider HTTP whitespace, not ASCII whitespace; r=hsivonen
Update MimeType.cpp to consider HTTP whitespace, not ASCII whitespace

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

--HG--
extra : moz-landing-system : lando
2019-04-05 16:08:53 +00:00
Barret Rennie 306f4c39ad Bug 1542183 - Ensure TabChilds always have a TabGroup upon initialization r=nika
Differential Revision: https://phabricator.services.mozilla.com/D26374

--HG--
extra : moz-landing-system : lando
2019-04-05 19:38:27 +00:00
Ryan Hunt 8653565c5e Bug 1535390 - Ensure remote browser has dimensions set after recreating frame loader. r=jwatt
nsFrameLoaderOwner::UpdateRemoteness will recreate the nsFrameLoader for a
piece of content. As part of this, it will unset the cached nsFrameLoader for
the content's nsSubdocumentFrame. However we need to run ShowViewer() for the
new nsFrameLoader as the frame has already been initialized. In addition,
dimensions and position on the new nsFrameLoader need to be set. Usually this
is done after a reflow, but there's no guarantee a reflow will happen after
a UpdateRemoteness operation.

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

--HG--
extra : moz-landing-system : lando
2019-04-05 19:25:30 +00:00
Jorg K f15e0ae0bc Bug 1542352 - Restore zero-argument constructor of nsBaseCommandController. r=bz 2019-04-05 12:55:00 +03:00
Emilio Cobos Álvarez 7980a72d0a Bug 760345 - Remove the last usage of lossy currentcolor. r=heycam
We don't have lossy currentcolor in the style system anymore, except for a
single property -moz-font-smoothing-background-color.

I could've converted it into a proper StyleColor and thread down all the
necessary information to the font metrics code.

But it doesn't really seem worth it given it's not exposed to the web, so I just
did the simplest thing, which is making currentcolor compute to transparent to
that specific property.

This patch also removes the stores_complex_colors_lossily code and related,
since now we always can cache computed colors.

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

--HG--
extra : moz-landing-system : lando
2019-04-06 17:47:58 +00:00
Emilio Cobos Álvarez d15876acb4 Bug 1541952 - Move ApplicableStylesChanged() to Document. r=heycam
It's the right place for it to be now that it owns the StyleSet.

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

--HG--
extra : moz-landing-system : lando
2019-04-06 19:25:25 +00:00
Dorel Luca 762bb29429 Merge mozilla-central to autoland 2019-04-08 13:49:06 +03:00
Andreas Farre 56fffce764 Bug 1542204 - Normalize "_blank" to "" before calling SendCreateWindowInDifferentProcess. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D26300

--HG--
extra : moz-landing-system : lando
2019-04-05 20:14:03 +00:00
Geoff Brown 8d88b9a596 Bug 1318091 - Disable failing android gtests; r=bc
Disable gtests observed to fail on Android. Some of these are simple build
failures and failures due to file permissions or paths, while other failures
are more obscure.
Once Android gtests are running on mozilla-central, I will file follow-up
bugs inviting teams to investigate the failures and re-enable Android gtests
that are important to them.

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

--HG--
extra : moz-landing-system : lando
2019-04-08 20:58:21 +00:00
Razvan Maries d497a06e29 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2019-04-08 23:59:57 +03:00
Nika Layzell 71352e476f Bug 1542778 - Part 1: Fix clang-format fallout for FakeChannel, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D26545

--HG--
extra : moz-landing-system : lando
2019-04-08 20:30:19 +00:00
Daosheng Mu a88ec2c201 Bug 1465643 - Part 2: Remapping DualShock 4 buttons and axes on Windows. r=qdot
Differential Revision: https://phabricator.services.mozilla.com/D24217

--HG--
extra : moz-landing-system : lando
2019-04-08 20:21:28 +00:00
Daosheng Mu 0614a16811 Bug 1465643 - Part 1: Removing unused hasDpad logic in WindowsGamepad.cpp. r=qdot
Differential Revision: https://phabricator.services.mozilla.com/D25886

--HG--
extra : moz-landing-system : lando
2019-04-08 18:51:25 +00:00
Bogdan Tara 7a0e800fa9 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-04-05 19:21:43 +03:00
Bogdan Tara 621ec01c2c Merge inbound to mozilla-central. a=merge 2019-04-05 19:18:43 +03:00
Csoregi Natalia fa43158851 Backed out 2 changesets (bug 1540580) for crashtest assertion failures on RemoteDecoderManagerParent.cpp. CLOSED TREE
Backed out changeset a9048220ad8b (bug 1540580)
Backed out changeset 5b14f480129c (bug 1540580)
2019-04-05 19:16:46 +03:00
Makoto Kato a653eaefb2 Bug 1474902 - Part 5. Add mochitest. r=masayuki
Reviewers: masayuki

Reviewed By: masayuki

Bug #: 1474902

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

--HG--
extra : rebase_source : 043a67433d77cd0e57ff4688d277efb85f48cc5d
extra : histedit_source : 359060a3a9283da0faa2c613f90159882abcbc9f
2019-04-05 17:15:15 +09:00
Makoto Kato 49372ed79b Bug 1474902 - Part 4. Set hint to next when next focusable element is input element that is text control. r=masayuki
Summary:
Currently, `IMEStateManager::SetIMEState` sets hint to the following logic.

- If there is no submit button into form element, set `next`
- If there is submit button, set `search` or `go`
- If there isn't into form element, no hint.

But Chrome sets `next` hint when next focusable element is input that is text
control. So even if there is submit button into form element, we should set
`next` to hint when next focusable element is input that is text/number
control and is in form.

Also, If current focused element isn't in `<form>`, I don't still set hint.
`nsFocusManager::DetermineElementToMoveFocus` may set focus to cross-process
document. So `next` is set when in form and it isn't last element in form.

Reviewers: masayuki

Reviewed By: masayuki

Subscribers: JanH

Bug #: 1474902

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

--HG--
extra : rebase_source : f9d297416c046d9b718d9ff925006c162d67f286
extra : histedit_source : d8d946deb81f1f961d002e32720eb9a40a91bf64
2019-04-05 17:14:47 +09:00
Makoto Kato ff3ca87a6b Bug 1474902 - Part 3. Move setting action hint to static function. r=masayuki
Summary: To make setting action hint simple, I would like to move it to static function.

Reviewers: masayuki

Reviewed By: masayuki

Bug #: 1474902

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

--HG--
extra : rebase_source : 730451dd56d0d0d2b8208765cac979f54b9745b1
extra : histedit_source : 5775444e938ec3dfa01e8a7a624dea49b785b307
2019-04-05 17:13:59 +09:00
Makoto Kato 2b62bb223e Bug 1474902 - Part 2. Make nsFocusManager::DetermineElementToMoveFocus public. r=NeilDeakin
Actually, there is no public method to get next element/content by tabIndex or
TAB key. So I would like to use GetNextTabbableContent from IMEStateManager.

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

--HG--
extra : rebase_source : 48fa0bb3cd834e9458ad69be1a08f3f32afd1049
extra : histedit_source : 5ce46db9caf5e970e5ed31c0a9e30bd656242684
2019-04-05 17:12:27 +09:00
Paul Adenot cbccf7ece3 Bug 1541467 - Handle situations where the document is not available from the AudioContext. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D25955

--HG--
extra : moz-landing-system : lando
2019-04-05 11:38:06 +00:00
Csoregi Natalia 9696387da3 Merge mozilla-central to mozilla-inbound. CLOSED TREE 2019-04-10 16:22:06 +03:00
longsonr f2c2d74da8 Bug 1542646 Part 2 - Use default keyword instead of empty constructors and destructors r=dholbert 2019-04-10 05:34:35 +01:00
longsonr 6ba1b50abd Bug 1542646 Part 1 - Correct namespace of forward declaration of DOMSVGAnimatedPreserveAspectRatio r=dholbert 2019-04-10 05:21:44 +01:00
Andrea Marchesini bba5a7d699 Bug 1536411 - StoragePrincipal - part 8 - SharedWorkers, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D25790

--HG--
extra : moz-landing-system : lando
2019-04-11 16:47:26 +00:00
Andrea Marchesini 677630aa7c Bug 1536411 - StoragePrincipal - part 7 - test for DOMCache and ServiceWorkers, r=Ehsan,asuth
Differential Revision: https://phabricator.services.mozilla.com/D25778

--HG--
extra : moz-landing-system : lando
2019-04-11 16:29:13 +00:00
Andrea Marchesini 0830861f7e Bug 1536411 - StoragePrincipal - part 6 - Cookies, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D24864

--HG--
extra : moz-landing-system : lando
2019-04-11 16:28:51 +00:00
Andrea Marchesini 6d8394e3f5 Bug 1536411 - StoragePrincipal - part 4 - BroadcastChannel, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D24028

--HG--
extra : moz-landing-system : lando
2019-04-11 16:28:13 +00:00
Andrea Marchesini d0cbc4e278 Bug 1536411 - StoragePrincipal - part 3 - IDBFactory, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D24027

--HG--
extra : moz-landing-system : lando
2019-04-11 16:27:53 +00:00
Andrea Marchesini dfe371cba0 Bug 1536411 - StoragePrincipal - part 2 - Worker and StoragePrincipal, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D24026

--HG--
extra : moz-landing-system : lando
2019-04-11 16:27:30 +00:00
Andrea Marchesini 5cfeeda19e Bug 1536411 - StoragePrincipal - part 1 - Implementation, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D24025

--HG--
extra : moz-landing-system : lando
2019-04-11 16:27:12 +00:00
Andrea Marchesini 4b6aa5b40f Bug 1536411 - StoragePrincipal - part 0 - WorkerPrivate::StorageAccess, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D24024

--HG--
extra : moz-landing-system : lando
2019-04-11 16:26:49 +00:00
Andreea Pavel f955a60145 Backed out changeset 78ed7f9d6566 (bug 1542530) for failing test_text_selection.html on a CLOSED TREE 2019-04-11 19:38:18 +03:00
Alastor Wu 68a7ddd191 Bug 1534993 - ensure AudioSink always returning valid position. r=jya
It's possible to overflow when we do the position calculation, we should only store the position which won't cause the integer overflow when adding it to start time.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 03:38:52 +00:00
Andrea Marchesini 4f43786402 Bug 1514733 - RemoteWorkerController should be notified when the RemoteWorkerParent actor is dismissed, r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D26963

--HG--
extra : moz-landing-system : lando
2019-04-11 14:35:59 +00:00
Andrea Marchesini 07ce3681ac Bug 1542530 - Selection.toString() works correctly when text is selected together with a set of div+svg elements, r=mats
Differential Revision: https://phabricator.services.mozilla.com/D27064

--HG--
extra : moz-landing-system : lando
2019-04-11 14:13:24 +00:00
Byron Campen [:bwc] f55b60cae8 Bug 1509669 - Part 0: Remove some mochitest logic that was expecting the bogus stats. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D26344

--HG--
extra : moz-landing-system : lando
2019-04-10 21:03:46 +00:00
Kartikaya Gupta 937b89a55a Bug 1542019 - Split the dispatch-to-content flag into three. r=botond,hsivonen
This patch extracts two additional CompositorHitTestInfo flags from the
eDispatchToContent flag; eApzAwareListeners for elements that have
APZ-aware listeners, and eInactiveScrollframe for inactive scrollframe
or unlayerized scrollthumbs. The eDispatchToContent is then renamed to
eIrregularArea to reflect the fact that it is used for irregular-shaped
areas that require main-thread hit-testing.

Additionally, it is important to note that when using the non-WebRender
codepath, all three of these flags still end up gettings squashed into
the "dispatch to content" region on the EventRegions; when APZ
reconstructs a CompositorHitTestInfo it will turn anything in this
region back into an eIrregularArea. So this is a lossy round-trip
conversion for the non-WebRender case. However it should still result in
correct behaviour because the semantics of eIrregularArea result in APZ
relying on the main-thread to do hit-testing and so any APZ-aware
listeners and inactive scrollframes are also handled by the main-thread.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 13:31:53 +00:00
Johann Hofmann 7d9bd82b23 Bug 1508961 - Don't prematurely check for permissions in pushManager.subscribe() permission requests. r=lina
This permission checking should be handled by PermissionUI.jsm, to be able to apply custom heuristics
for denying the permission and also to be able to "post-prompt" after denying automatically.

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

--HG--
extra : moz-landing-system : lando
2019-04-05 10:22:21 +00:00
Bogdan Tara 8e0ea96830 Merge inbound to mozilla-central. a=merge 2019-04-05 12:49:51 +03:00
Csoregi Natalia ba58e936bd Backed out changeset 4ad80127f89f (bug 1519636) for bustage on MarkupMap.h and nsAccessibilityService.cpp. CLOSED TREE 2019-04-05 09:48:19 +03:00
Sylvestre Ledru d1c1878603 Bug 1519636 - clang-format-8: Reformat recent changes to the Google coding style r=Ehsan
clang-format-8 upstream had some improvements wrt macros
See: https://reviews.llvm.org/D33440
This is why the diff is bigger than usual

# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-04-04 21:36:16 +00:00
Brindusan Cristian c298fe167e Backed out changeset 1ea4b3582033 (bug 760345) for build bustages at ia2AccessibleComponent.cpp. 2019-04-05 07:49:09 +03:00
Botond Ballo 2cb0da3cd1 Bug 1531962 - Avoid including MobileViewportManager.h from nsIPresShell.h. r=kats
nsIPresShell.h is widely included, so this avoids excessively long rebuilds
when MobileViewportManager.h is modified.

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

--HG--
extra : moz-landing-system : lando
2019-04-04 22:09:55 +00:00
Emilio Cobos Álvarez 993731e44b Bug 760345 - Remove the last usage of lossy currentcolor. r=heycam
We don't have lossy currentcolor in the style system anymore, except for a
single property -moz-font-smoothing-background-color.

I could've converted it into a proper StyleColor and thread down all the
necessary information to the font metrics code.

But it doesn't really seem worth it given it's not exposed to the web, so I just
did the simplest thing, which is making currentcolor compute to transparent to
that specific property.

This patch also removes the stores_complex_colors_lossily code and related,
since now we always can cache computed colors.

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

--HG--
extra : moz-landing-system : lando
2019-04-04 22:06:03 +00:00