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

82824 Коммитов

Автор SHA1 Сообщение Дата
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
Emilio Cobos Álvarez 84eaf99704 Bug 1541925 - Avoid accounting for @font-face rules the style set when there's no pres shell. r=heycam
This preserves the behavior of not having FontFace objects for @font-face rules
in display: none iframes.

Note, however that we may want to always track stylesheets to both not have this
limitation and to fix bug 1471231 & co. But that's a separate bug in any case.

The assertion that is failing ultimately in this bug is not really relevant
anymore, so remove it while at it.

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

--HG--
extra : moz-landing-system : lando
2019-04-04 21:40:55 +00:00
Carolina Jimenez Gomez 8093499470 Bug 1512505 - Log a message in web console when a site is only supporting TLS 1.0 or 1.1. r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D25660

--HG--
extra : moz-landing-system : lando
2019-04-04 23:37:20 +00:00
Thomas Wisniewski 3c0b32cd63 Bug 1539916 - Update about:compat to show the proper URL and fix page-refresh glitches; r=kmag
Update about:compat to show the proper URL and fix page-refresh glitches

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

--HG--
extra : moz-landing-system : lando
2019-04-04 23:47:03 +00:00
Brindusan Cristian 522cfbe7f9 Backed out changeset 5dae6d1b597a (bug 1540150) for [@ libgdk-3.so.0.1800.9 + 0x60a09] crashes in h13 tests. CLOSED TREE
--HG--
extra : histedit_source : 431f554b4dd383748b3f1603b43b8ac5e790e70d
2019-04-05 03:23:12 +03:00
Narcis Beleuzu 24dbe577a5 Backed out changeset 389b6bbd76db (bug 1519636) for bustages on MarkupMap.h . CLOSED TREE 2019-04-05 00:27:56 +03:00
Sylvestre Ledru 399dbd28fe 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 20:12:23 +00:00
Boris Zbarsky 859b7ee389 Bug 1541600 part 3. Stop using AutoJSContext in GetStateObject. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D26225

--HG--
extra : moz-landing-system : lando
2019-04-04 20:01:14 +00:00
Boris Zbarsky 8b2ada715e Bug 1541600 part 2. Stop using AutoJSContext for the slow script dialog. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D26224

--HG--
extra : moz-landing-system : lando
2019-04-04 20:00:36 +00:00
Boris Zbarsky 11f24f599a Bug 1541600 part 1. Stop using AutoJSContext in nsJSEnvironment. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D26222

--HG--
extra : moz-landing-system : lando
2019-04-04 20:00:08 +00:00
arthur.iakab ce6a29ad5c Merge mozilla-central to autoland 2019-04-04 19:10:14 +03:00
arthur.iakab b0bf8d987a Merge inbound to mozilla-central a=merge 2019-04-04 19:08:32 +03:00
Mike Conley b3ad5c304f Bug 1540150 - Make it impossible to enter the native drag-drop loop in test automation. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D25428

--HG--
extra : moz-landing-system : lando
2019-04-04 15:06:30 +00:00
Emilio Cobos Álvarez f59ad7aa8e Bug 1490401 - MatchMedia should work inside display: none iframes. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D25926

--HG--
extra : moz-landing-system : lando
2019-04-04 11:25:31 +00:00
Michael Froman 1569aaa0fe Bug 1541537 - Stop using NS_DISPATCH_SYNC in favor of SyncDispatch. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D25973

--HG--
extra : moz-landing-system : lando
2019-04-04 02:50:00 +00:00
Boris Zbarsky 0e4c5eb310 Bug 1541479. Stop using AutoJSContext in BrowserElementParent. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D25948

--HG--
extra : moz-landing-system : lando
2019-04-04 08:45:14 +00:00
Mike Conley a2494f98e9 Bug 1540845 - Pass the browsing context ID through the event fired when oop frames crash. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D25843

--HG--
extra : moz-landing-system : lando
2019-04-04 13:38:51 +00:00
Ciure Andrei 5bbcf410bc Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2019-04-04 07:40:56 +03:00
Ciure Andrei 4116e08315 Merge inbound to mozilla-central. a=merge 2019-04-04 07:34:14 +03:00
Ciure Andrei c0aa332ab8 Merge autoland to mozilla-central. a=merge 2019-04-04 07:32:51 +03:00
Ciure Andrei ec1fe36f87 Backed out changeset 97d88752079f (bug 1540401) for causing a nightly startup crash a=backout 2019-04-04 04:45:08 +03:00
Emilio Cobos Álvarez 0056555f02 Bug 1540074 - Make sure to unstyle XBL children before removing the old XBL binding. r=heycam
This bug is happening because we resolve the child of the content generating the
first-line frame inheriting from the XBL marquee's anonymous content (which
isn't affected by the all:inherit rule and thus is non-floating).

Then we go through frame construction, and remove the <marquee> binding, which
makes the anonymous content go away, but don't restyle the children again.

The correct first-letter style without the binding is floating, but we don't
realize while constructing the frame tree.

We do realize of that afterwards though, when reparenting the styles, and
inherit from the right thing, and thus get the right floating style. But there's
nothing saving us now, since the first-letter frame is in-flow already.

The fix is clearing the style of children before removing the binding, the same
way we do before adding it.

FlushStyleBindings removes the current XBL binding. That shuffles the flattened
tree. We need to ensure the styles are gone on children before that to avoid
getting into a bad state.

AutoStyleElement already does that, just slightly too late if there's a
pre-existing binding, so moving it up a bit does the trick.
2019-04-04 02:29:35 +02:00
Barret Rennie 9bbc7930d4 Bug 1510569 - Port onRefreshAttempted from WebProgressChild.jsm to C++ r=baku
Differential Revision: https://phabricator.services.mozilla.com/D25650

--HG--
extra : moz-landing-system : lando
2019-04-03 17:32:56 +00:00
Barret Rennie 163ec0ba8b Bug 1510569 - Port onProgressChange notifications inside WebProgressChild.jsm to C++ r=baku
We do not need to handle onProgressChange64 notifications since the TabChild's
web progress events are filtered through an nsBrowserStatusFilter, which
truncates onProgresChange64 event values to 32-bit integers and then calls
onProgressChange.

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

--HG--
extra : moz-landing-system : lando
2019-04-03 17:32:41 +00:00
Barret Rennie c6fc7a9f0d Bug 1510569 - Implement nsIWebProgressListener2 for TabChild r=baku
Differential Revision: https://phabricator.services.mozilla.com/D25648

--HG--
extra : moz-landing-system : lando
2019-04-03 17:32:21 +00:00
Barret Rennie 9c76d87929 Bug 1510569 - Port onStatusChange notifications inside WebProgressChild.jsm to C++ r=baku
Differential Revision: https://phabricator.services.mozilla.com/D25446

--HG--
extra : moz-landing-system : lando
2019-04-03 17:31:54 +00:00
Barret Rennie 779f6e3bbf Bug 1510569 - Reconstruct nsIWebProgress and nsIRequest for onContentBlockingEvent in TabParent r=Ehsan
Now that we have access to the RemoteWebProgress from the TabParent and can
construct RemoteWebProgress and RemoteWebProgressRequests in C++, we can
reconstruct the RemoteWebProgress and RemoteWebProgressRequest in the TabParent
instead of RemoteWebProgressManager. This improves the API for nsIBrowser and
RemoteWebProgressManager, removing the need for the
`callWebProgressContentBlockingEventListeners` method in both. It also means we
won't need to implement `callWebProgress*Listeners` for methods on nsIBrowser
and RemoteWebProgressManager for all other nsIWebProgress events.

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

--HG--
extra : moz-landing-system : lando
2019-04-03 17:31:41 +00:00
Barret Rennie 2217e5192a Bug 1510569 - Reimplement RemoteWebProgressRequest as an XPCOM component in C++ r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D24940

--HG--
extra : moz-landing-system : lando
2019-04-03 17:31:07 +00:00
Barret Rennie 0196dec3ba Bug 1510569 - Add missing includes and using namespace declarations r=Ehsan
WindowGlobalChild.cpp was relying on several headers already included by other
files in its unified build translation unit, but the addition of the
RemoteWebProgressRequest in the next change bumps them into another translation
unit and breaks the build.

The missing `#include` and `using namespace` statements have been added,
allowing builds to succeed.

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

--HG--
extra : moz-landing-system : lando
2019-04-03 17:31:00 +00:00
Barret Rennie 611cae7854 Bug 1510569 - Reimplement RemoteWebProgress as an XPCOM component in C++ r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D24811

--HG--
extra : moz-landing-system : lando
2019-04-03 17:30:40 +00:00
Barret Rennie c8a6795173 Bug 1510569 - Add missing includes to WindowGlobalParent.cpp r=Ehsan
Due to adding a new CPP file in the next change, the unified build fails due to
files being shuffled around between translation units. This change fixes the
build.

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

--HG--
extra : moz-landing-system : lando
2019-04-03 17:30:27 +00:00
Barret Rennie f5743d5bf7 Bug 1510569 - Include innerDOMWindowID in the WebProgressData sent from TabChild to TabParent r=baku
Differential Revision: https://phabricator.services.mozilla.com/D24808

--HG--
extra : moz-landing-system : lando
2019-04-03 17:29:58 +00:00
Barret Rennie 203367c7de Bug 1510569 - Ensure TabChild's IPC actor is not dead before sending OnContentBlockingEvent message to TabParent r=nika
Differential Revision: https://phabricator.services.mozilla.com/D24807

--HG--
extra : moz-landing-system : lando
2019-04-03 17:29:40 +00:00
Barret Rennie 08dfb4b9c8 Bug 1510569 - Use Maybe<T> directly in TabChild::PrepareProgressListenerData r=nika,Alex_Gaynor
Differential Revision: https://phabricator.services.mozilla.com/D24806

--HG--
extra : moz-landing-system : lando
2019-04-03 17:29:28 +00:00
Barret Rennie 27a7e12ecc Bug 1510569 - Filter TabChild nsIWebProgress events through a nsBrowserFilter r=kmag
The implementation of WebProgressChild.jsm filters all nsIWebProgress events
through an nsBrowserFilter. We need to do this in the TabChild as well, but
TabChild currently only handles onContentBlockingEvent, for which
nsBrowserFilter only calls the underlying listener.

We also unregister the progress listener much earlier in TabChild::Destroy as
this method causes OnStateChange event to be triggered later on, which we are
not interested in capturing.

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

--HG--
extra : moz-landing-system : lando
2019-04-03 17:29:15 +00:00
Karl Tomlinson fe0b4da7b5 Bug 1541311 add support for AudioWorkletNode.numberOfInputs/Outputs r=padenot
There is no specified limit on the number of inputs or outputs, except that
the webidl parameter is unsigned long, but Gecko has an implementation-defined
limit.

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

--HG--
extra : moz-landing-system : lando
2019-04-03 13:38:10 +00:00
Razvan Maries 1cd564b971 Backed out changeset 3b94c20ba873 (bug 1540990) for build bustages. CLOSED TREE 2019-04-04 02:44:00 +03:00
Masayuki Nakano b2bba953cc Bug 1540990 - Get rid of unnecessary nsIPresShell.h inclusions r=emilio
A lot of files include `nsIPresShell.h` even though currently they don't
need it.  This patch removes the unnecessary inclusions.

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

--HG--
extra : moz-landing-system : lando
2019-04-03 23:29:38 +00:00
Masayuki Nakano 98518a7159 Bug 1540969 - Get rid of nsPICommandUpdater r=bzbarsky
`nsPICommandUpdater` is a scriptable interface, but nobody refers it from JS,
and it's implemented only by `nsCommandManager`.  Therefore, we can get rid
of this interface.

Additionally, `nsCommandManager::Init()` is called only by `nsDocShell`, which
is the only instantiater of the class, and returns error only when given window
is nullptr.  Therefore, we can make the constructor take the window instead.

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

--HG--
extra : moz-landing-system : lando
2019-04-03 12:53:54 +00:00
Masayuki Nakano ac8ecb5c44 Bug 1540965 - Make nsIControllerContext builtinclass and removes its init() method r=bzbarsky
`nsIControllerContext` isn't implemented with JS even in comm-central nor
BlueGriffon.  Therefore, it can be a builtinclass.

Additionally, it's `init()` returns always `NS_OK`, and always called with
`null` from JS, and always called with an instance from C++.  So that its the
only implementation, `nsBaseCommandController` can have 2 constructors which
does what `Init()` currently does.

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

--HG--
extra : moz-landing-system : lando
2019-04-03 12:52:56 +00:00
Edwin Gao 2945074373 Bug 1530895 - skip test_iframe_event_listener_leaks test for windows10-aarch64 due to high intermittance r=jmaher
Skip this test due to high intermittence.

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

--HG--
extra : moz-landing-system : lando
2019-04-03 20:59:38 +00:00
Kyle Machulis 971f298ed0 Bug 1525583 - Add more null checks for NPN_RetainObject; r=jmathies
Don't try to change refcount on null pointer if one is passed.

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

--HG--
extra : moz-landing-system : lando
2019-04-03 19:52:40 +00:00
Byron Campen [:bwc] 716f6f00e6 Bug 1373123: Extend this timeout a bit. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D25937

--HG--
extra : moz-landing-system : lando
2019-04-03 21:25:13 +00:00
Ciure Andrei 58c8915ecd Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-04-04 00:57:38 +03:00
Andreea Pavel 8633610e74 Backed out 2 changesets (bug 1324548) for failing wpt at idlharness.https.window.html on a CLOSED TREE
Backed out changeset 055578135fba (bug 1324548)
Backed out changeset 7aefaab277fe (bug 1324548)
2019-04-03 23:18:19 +03:00
Jan Varga 0269846741 Bug 1540668 - IDB: Add a timer for ShutdownWorkThreads; r=asuth, dr=chutten
Differential Revision: https://phabricator.services.mozilla.com/D25745
2019-04-02 13:16:55 +02:00
Ryan Hunt 7f35fd333c Bug 1516425 - Hold a strong reference to TabParent from nsFrameLoader and make TabParent cycle collected. r=smaug
Currently TabParent is refcounted, but nsFrameLoader hold a weak pointer. The pointer
should be cleared out when the TabParent is destroyed, but that's a bit of a footgun
and it's not obvious that we always do this correctly.

Because TabParent holds a reference to a nsFrameLoader and the frame element (which
contains a nsFrameLoader), I think this means we need to cycle collect TabParent.

--HG--
extra : rebase_source : 06e04c2ba8ea81d996d2688a1b0064aa37f45bbc
2019-04-02 10:35:51 -04:00
Kyle Machulis e71632b0fc Bug 1540002 - Remove intr __delete__ from PPluginInstance; r=nika,mccr8
PPluginInstance's __delete__ was ported from rpc to intr, and is the
only non-async IPDL deletion in the codebase. We should be able to
align this with the rest of the IPDL interfaces and remove the need
for specialized intr __delete__ handling.

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

--HG--
extra : moz-landing-system : lando
2019-04-02 21:10:20 +00:00
Edwin Gao b5302c0b94 Bug 1541241 - disable test_bug1307694 for windows10-aarch64 due to missing plugin support r=jmaher
Additional test needs to be disabled for widows10-aarch64 due to lack of plugin support.

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

--HG--
extra : moz-landing-system : lando
2019-04-03 10:32:08 +00:00
Léo Paquet d761d81c93 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-03 17:01:38 +00:00
Paul Adenot 039c642c8e Bug 1324548 - Tests for MediaStreamTrackAudioSourceNode. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D16066

--HG--
extra : moz-landing-system : lando
2019-04-03 17:01:58 +00:00
Dorel Luca 652a1d165f Backed out changeset ba0820e380a3 (bug 1540150) for Mochitest failures in layout/generic/test/test_bug496275.html. CLOSED TREE 2019-04-03 19:29:06 +03:00
Dorel Luca 47b5923c5b Backed out 2 changesets (bug 1324548) for Mochitest failures in dom/tests/mochitest/general/test_interfaces.html. CLOSED TREE
Backed out changeset fda93e03e469 (bug 1324548)
Backed out changeset 8e6135544e33 (bug 1324548)
2019-04-03 18:54:05 +03:00
Brendan Dahl 2f6cd63d92 Bug 1498287 - Support RTL pref in non-XUL documents too. r=smaug
Moves most of the RTL handling from XULDocument into Document. Creates
a new static class that listens to the direction pref change and notifies
all the documents when it changes.

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

--HG--
extra : moz-landing-system : lando
2019-04-03 09:26:31 +00:00
Olli Pettay 22ed97f045 Bug 1536530, let save-page-as work even if there are invalid urls, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D25933

--HG--
extra : moz-landing-system : lando
2019-04-03 13:56:05 +00:00
Daniel Varga f89113118b Merge mozilla-central to mozilla-inbound. a=merge 2019-04-03 09:18:15 +03:00
Daniel Varga 14dc5b7d8a Merge mozilla-inbound to mozilla-central. a=merge 2019-04-03 09:05:41 +03:00
Bogdan Tara 18ad7ae673 Backed out changeset 37530e362d32 (bug 1539578) for browser_WebCrypto_telemetry.js failures CLOSED TREE 2019-04-03 00:56:53 +03:00
Brindusan Cristian f0bb72977e Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-04-02 18:50:37 +03:00
Brindusan Cristian b2cbe5adc9 Merge inbound to mozilla-central. a=merge 2019-04-02 18:47:16 +03:00
J.C. Jones aaa18d99e7 Bug 1541085 - Web Authentication - Only reset mTransaction on cycle collection r=keeler
This stack is pretty clear that calling StopListeningForVisibilityEvents
(via ClearTransaction) is a no-go from the cycle collector. We need to instead
just do the minimum version of bug 1540378, just reset mTransaction and move on.

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

--HG--
extra : moz-landing-system : lando
2019-04-02 17:56:47 +00:00
J.C. Jones dee2fdd745 Bug 1540658 - Web Authentication - U2FTokenManager must obey the IPC state machine r=keeler
In Bug 1448408 ("Don't listen to visibility events"), I changed `U2FTokenManager::
ClearTransaction` to send aborts, to handle the new visibility states. However,

`WebAuthnTransactionParent::ActorDestroy` is called at the conclusion of IPC
shutdown, which calls `MaybeClearTransaction` in `U2FTokenManager`, which calls
ClearTransaction, which then tries to send an Abort, which is a state machine
failure since we just shut the IPC down.

This patch creates a new `AbortOngoingTransaction` method which is used
to send the aborts instead of shoehorning that into `ClearTransaction`, reverting
`ClearTransaction` back to the prior form, and instead changes `Register` and
`Sign` to call the new method.

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

--HG--
extra : moz-landing-system : lando
2019-04-02 18:26:38 +00:00
Ehsan Akhgari 2b9f54347c Bug 1498102 - Ensure that rejection of the promise created in serviceWorkerScriptCache::PurgeCache isn't visible on the console; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D25824

--HG--
extra : moz-landing-system : lando
2019-04-02 19:56:27 +00:00
Mike Conley f862af9fde Bug 1540150 - Make it impossible to enter the native drag-drop loop in test automation. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D25428

--HG--
extra : moz-landing-system : lando
2019-04-03 14:20:04 +00:00
Léo Paquet 13ed118524 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-03 14:00:28 +00:00
Paul Adenot d23acbb4c9 Bug 1324548 - Tests for MediaStreamTrackAudioSourceNode. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D16066

--HG--
extra : moz-landing-system : lando
2019-04-02 15:26:11 +00:00
Thomas Wisniewski 78b73b590c Bug 1538456 - Don't fire an XHR HEADERS_RECEIVED event in the event of a network error; r=baku
Don't fire an XHR HEADERS_RECEIVED event in the event of a network error

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

--HG--
extra : moz-landing-system : lando
2019-04-03 05:19:06 +00:00
Robin Templeton 0093033657 bug 1456569 - Implement BigInt64 and BigUint64Array. r=wingo,jwalden,sfink
Differential Revision: https://phabricator.services.mozilla.com/D12581

--HG--
extra : moz-landing-system : lando
2019-04-02 17:11:13 +00:00
Masayuki Nakano 4204b59128 Bug 1540963 - Make nsIControllerCommandTable builtinclass and make its users use nsControllerCommandTable directly r=bzbarsky
`nsIControllerCommandTable` isn't implemented with JS even in comm-central nor
BlueGriffon.  Therefore, we can make it a builtinclass.

Additionally, it's inherited only by nsControllerCommandTable.  So, all users
in C++ can treat the concrete class directly.

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

--HG--
extra : moz-landing-system : lando
2019-04-03 12:52:14 +00:00
Masayuki Nakano 8329e8382e Bug 1540962 - Make nsICommandManager builtinclass and make users use nsCommandManager directly r=bzbarsky
`nsICommandManager` isn't implemented by JS even in comm-central nor
BlueGriffon.  Therefore, we can make it a builtinclass.

Additionally, this patch makes all users in C++ use `nsCommandManager` which is
the only implementation of `nsICommandManager`.  This avoids QI from
`nsICommandManager` to `nsPICommandUpdater`.

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

--HG--
extra : moz-landing-system : lando
2019-04-03 12:51:38 +00:00
Masayuki Nakano 9165a150a1 Bug 1540930 - Make nsPresContext use mozilla::PresShell directly rather than via nsIPresShell r=emilio
`nsPresContext` should use `mozilla::PresShell` directly instead of
`nsIPresShell`.  This patch makes it.

Unfortunately, `nsPresContext` and `nsIFrame` have `PresShell()`.  Therefore,
we cannot use `PresShell*` in its methods so that this patch uses `mozilla::`
namespace prefix.

It might be better to rename them as `PresShellPtr()` in another bug.

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

--HG--
extra : moz-landing-system : lando
2019-04-03 12:40:26 +00:00
Masayuki Nakano fefd623c98 Bug 1530188 - Make nsChildView::GetEditorView() use eQueryContentState without flushing layout r=smaug
`nsChildView::GetEditorView()` is called by `TextInputHandlerBase::GetWindowLevel()`
which is called when Cocoa requests window level of focused widget.

It currently gets widget including focused element (e.g., it may be in a XUL
`<panel>`) with `eQueryTextContent` event.  However, it requires only the widget
(i.e., when a XUL `<panel>` has focused element, the widget for the panel).
Therefore, it does not require to flush the layout.

However, on macOS, `ContentEventHandler` always flushes layout even with
`eQueryContentState` which does not require any layout information.  Whether
it requires flushing layout or not is considered with
`WidgetQueryContentEvent::mNeedsToFlushLayout` but this is set to false only
when `IMEContentObserver` notifies widget (and IME) of focus set.  At this
time, only on macOS, IME caches the layout information, for example, the
character coordinates, but we don't have a way to update it.  This is the reason
why we always flush layout on macOS.

Unfortunately, when a menu popup frame is created, widget for the popup is
created synchronously.  Then, Cocoa retrieves window level of the widget including
focused element.  But this is unsafe to flush the layout.  So, we need to stop
flushing layout in this case.

Therefore, this patch moves the `#ifdef` from `TextEvents.h` to
`IMEContentObserver.cpp`, then, makes `nsChildView::GetEditorView()` use
`eQueryContentState` which is the simplest query content event, and finally,
sets `mNeedsToFlushLayout` to `false`.

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

--HG--
extra : moz-landing-system : lando
2019-04-03 10:27:13 +00:00
Emilio Cobos Álvarez d2005aabce Bug 1535788 - add some includes to fix some builds on automation.
CLOSED TREE
2019-04-03 14:22:11 +02:00
Narcis Beleuzu 36a6694a8b Backed out changeset 304b957afe29 (bug 1527620) for marionette-media failures on test_youtube.py. CLOSED TREE 2019-04-02 11:19:26 +03:00
Tarek Ziadé 0d09d08c72 Bug 1527620 - Add youtube streaming tests - r=whimboo
This patch introduces a new marionette media test along
with a Youtube test.

To run the Youtube streaming test locally:

./mach marionette-test dom/media/test/marionette/test_youtube.py -vv --gecko-log -

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

--HG--
extra : moz-landing-system : lando
2019-04-02 07:38:41 +00:00
Alex Chronopoulos df730bd21e Bug 1540231 - Stop dispatching a task to the TaskQueue when we are already in it. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D25576

--HG--
extra : moz-landing-system : lando
2019-04-01 22:05:48 +00:00
Karl Tomlinson 943896b43c Bug 1539039 keep WorkletGlobalScope as long as its Worklet is usable r=baku
Depends on D25353

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

--HG--
extra : moz-landing-system : lando
2019-04-01 16:54:58 +00:00
Karl Tomlinson d0133206f2 bug 1539039 notify WorkletImpl before WorkletThread shutdown on xpcom shutdown r=baku
This gives WorkletImpl a chance to send a message to release worklet thread
objects.

This is used only for PaintWorklet until PaintWorklet uses its own threads.

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

--HG--
extra : moz-landing-system : lando
2019-04-01 16:51:18 +00:00
Jan Varga 8838c839de Bug 1540401 - LSNG: Convert most of MOZ_ASSERT to MOZ_DIAGNOSTIC_ASSERT; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D25549
2019-04-01 01:18:10 +02:00
Jan Varga 78e96d22bc Bug 1540189 - LSNG: Result of SendReady call is not checked; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D25423
2019-03-29 17:58:46 +01:00
Andrew Osmond dbfad894d9 Bug 1501794 - Implement img decode API. r=bzbarsky,tnikkel
The img decode API allows a web author to request that an image be
decoded at its intrinsic size and be notified when it has been
completed. This is useful to ensure an image is ready to display before
adding it to the DOM tree -- this will help reduce flickering.

Differential Revision: https://phabricator.services.mozilla.com/D11362
2019-04-02 08:56:54 -04:00
Karl Tomlinson d0778fd087 Bug 1539039 shutdown worklet from AudioContext::Shutdown() r=padenot
On process shutdown, the MSG is shut down (and so are other threads) before
the final main thread cycle collection, and so we can't depend on unlink to
notify the worklet before MSG shutdown.

Depends on D25351

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

--HG--
extra : moz-landing-system : lando
2019-03-29 16:11:59 +00:00
Karl Tomlinson bf17f21d5d Bug 1539039 finish worklet before destination stream is destroyed r=padenot
AudioDestinationNode, AudioContext, and Worklet are part of the same cycle.
Any of these may be unlinked before another.
The unlink process for this cycle is the notification that the worklet will no
longer be used, but the worklet uses the destination stream to send a message
to release graph thread objects and so must do this before the stream is
destroyed.

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

--HG--
extra : moz-landing-system : lando
2019-03-29 16:12:08 +00:00
Jeff Walden feb28d4555 Bug 1539690 - Make a JS::RegExpFlag public API for flag bits, and make a JS::RegExpFlags flag-set abstraction. r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D25177

--HG--
rename : js/public/RegExp.h => js/public/RegExpFlags.h
extra : moz-landing-system : lando
2019-04-02 03:16:43 +00:00
Noemi Erli 5d1c793bad Backed out changeset 6ccad746f5d8 (bug 1456569) for Linting opt failure in TypedArray.js CLOSED TREE 2019-04-02 05:40:09 +03:00
Noemi Erli 1416a50250 Backed out changeset 6f8d311064d9 (bug 15396900) for bustages in bug1033946.js CLOSED TREE 2019-04-02 05:38:56 +03:00
Eden Chuang 72b79c6fbd Bug 1442778 - Add "chromeContext" parameter to console API and console service messages. r=smaug
1. Adding a new attribute chromeContext in ConsoleEvent
2. Adding a new boolean attribute isFromChromeContext in nsIConsoleMessage
3. Sending IsFromChromeContext to the parent process

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

--HG--
extra : moz-landing-system : lando
2019-04-01 22:42:34 +00:00
Robin Templeton d1fd3eb1c9 bug 1456569 - Implement BigInt64 and BigUint64Array. r=wingo,jwalden,sfink
Differential Revision: https://phabricator.services.mozilla.com/D12581

--HG--
extra : moz-landing-system : lando
2019-04-01 22:22:28 +00:00
Jeff Walden c6c6107545 Bug 1539690 - Make a JS::RegExpFlag public API for flag bits, and make a JS::RegExpFlags flag-set abstraction. r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D25177

--HG--
rename : js/public/RegExp.h => js/public/RegExpFlags.h
extra : moz-landing-system : lando
2019-04-02 02:07:50 +00:00
J.C. Jones bfdf3e2380 Bug 1540378 - Web Authentication: Fix teardown during cycle collection r=keeler,mccr8
In Bug 1448408 ("Don't listen to visibility events"), it became possible to
close a tab without a visibility event to cause transactions to cancel. This
is a longstanding bug that was covered up by the visibility events. This patch
updates the cycle collection code to ensure that transactions get cleared out
safely, and we don't proceed to RejectTransaction (and subsequent code) on
already-cycle-collected objects.

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

--HG--
extra : moz-landing-system : lando
2019-04-01 23:13:26 +00:00
Edwin Gao 1981282937 Bug 1538785 - disable additional plugin tests for window10-aarch64 r=jmaher
Disable for windows10-aarch64 the following:

- test_bug1165981

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

--HG--
extra : moz-landing-system : lando
2019-04-01 21:41:06 +00:00
Masayuki Nakano e71369edd3 Bug 1540927 - part 2: Make Selection use mozilla::PresShell directly rather than via nsIPresShell r=smaug
This patch makes `Selection` use `mozilla::PresShell` directly.

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

--HG--
extra : moz-landing-system : lando
2019-04-03 07:53:23 +00:00
Masayuki Nakano daafebb174 Bug 1540927 - part 1: Make nsFrameSelection treat mozilla::PresShell directly rather than via nsIPresShell r=smaug
This patch makes `nsFrameSelection` treat `mozilla::PresShell` directly and
rename `nsFrameSelection::GetShell()` to `nsFrameSelection::GetPresShell()
because of avoiding confusion between `PresShell` vs. `DocShell`.

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

--HG--
extra : moz-landing-system : lando
2019-04-03 07:53:16 +00:00
Honza Bambas 1296f23329 Bug 1538812 - Remove the dangerous default 'NS_ASSIGNMENT_DEPEND' of argument 'assignment' on NS_NewByteInputStream to let it be defined expicitly and thus visibly, r=michal
Differential Revision: https://phabricator.services.mozilla.com/D25462

--HG--
extra : moz-landing-system : lando
2019-04-03 11:39:41 +00:00
Christoph Kerschbaumer 1b37794a98 Bug 1541168: Remove remaining newChannelFromURI2 appearances. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D25916

--HG--
extra : moz-landing-system : lando
2019-04-03 10:45:48 +00:00
Emilio Cobos Álvarez d8e2990d8a Bug 1535788 - Make the Document own the StyleSet. r=heycam
This is the last step to be able to call matchMedia on display: none iframes.

This is green, except for some startup preference query tests that I'm going to
address in a blocking bug (making LangGroupFontPrefs global, basically).

The setup is similar to the ShadowRoot one, except we don't eagerly keep the
StyleSet around up-to-date, we only fill it if it ever had a pres context.

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

--HG--
extra : moz-landing-system : lando
2019-04-03 07:02:00 +00:00
Andrea Marchesini 01c18856e4 Bug 1540080 - Execute the canceling runnable after self.close() even when we have sync event loops, r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D25605

--HG--
extra : moz-landing-system : lando
2019-04-02 20:53:16 +00:00
Edwin Gao f230fa362c Bug 1539522 - skip test_audioContextSuspendResumeClose.html for windows10-aarch64 r=jmaher
Disable this consistently failing test on windows10-aarch64.

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

--HG--
extra : moz-landing-system : lando
2019-04-02 21:47:12 +00:00
Dorel Luca 82007d97cd Backed out changeset cd466be3bacb (bug 1525051) for mochitest failures in dom/tests/mochitest/general/test_performance_timeline.html. CLOSED TREE 2019-04-03 13:35:03 +03:00
Emilio Cobos Álvarez 2044ab5df1 Bug 1541016 - followup: Fix windows builds. r=bustage
Which are apparently confused by the existence of both mozilla::detail and
mozilla::dom::detail.

CLOSED TREE, of course.
2019-04-03 12:30:41 +02:00
J.C. Jones 47b914e9b8 Bug 1539578 - Add telemetry for DH use in WebCrypto API r=keeler
Our WebCrypto implementation supports using DH as an algorithm in generateKey,
which is not one of the recognized algorithms in the published specification [0].

We should seek to remove it from Firefox, but before we do, it'd be good to
gather some telemetry on whether it's used at all, even in its' non-standard
form.

[0] https://www.w3.org/TR/WebCryptoAPI/#algorithm-overview

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

--HG--
extra : moz-landing-system : lando
2019-04-02 22:25:04 +00:00