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

79927 Коммитов

Автор SHA1 Сообщение Дата
Mike Conley a94e1d38e2 Bug 1441168 - Make promiseDocumentFlushed reject if the DOM is modified in the callback. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D14101

--HG--
extra : moz-landing-system : lando
2018-12-19 18:32:18 +00:00
Edgar Chen 8be8c51fb1 Bug 1512457 - Part 4: Add more tests for frameless shadow host; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D14897

--HG--
extra : moz-landing-system : lando
2018-12-20 14:42:07 +00:00
Edgar Chen 9941a58c1c Bug 1512457 - Part 3: Ensure GetNextTabbableContentInScope returns only elements which have a frame; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D14865

--HG--
extra : moz-landing-system : lando
2018-12-20 14:47:39 +00:00
Edgar Chen f0c04529af Bug 1512457 - Part 2: Enter into frameless shadow host scope during tree traversal; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D14809

--HG--
extra : moz-landing-system : lando
2018-12-19 13:37:46 +00:00
Edgar Chen f2a996b941 Bug 1512457 - Part 1: Correctly handle the case that FocusManager could not find next content has frame in tree; r=smaug
In this case we should look for next highest tabindex or do end searching
handling, instead of just check the root content.

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

--HG--
extra : moz-landing-system : lando
2018-12-19 13:23:20 +00:00
Yaron Tausky c7dbf90233 Bug 1502871 - Get RefPtr to transaction before using it; r=janv
Avoid use-after-free by getting a RefPtr to a transaction before calling
content code that could cause its deallocation.

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

--HG--
extra : moz-landing-system : lando
2018-12-20 13:39:46 +00:00
Razvan Maries f658ebcbab Merge mozilla-inbound to mozilla-central a=merge 2018-12-20 07:04:06 +02:00
Andrea Marchesini 04882192be Bug 1515345 - No notification bar when filePickers are blocked, r=smaug 2018-12-20 01:46:43 +01:00
longsonr 4508eb258f Bug 1515187 - Part 2 move SVGPolyElement's implementation into the mozilla::dom namespace r=dholbert 2018-12-19 22:09:57 +00:00
Jeff Walden ed23151bd7 Bug 1492937 - Make the JS subscript loader load scripts exclusively as UTF-8, with no way to specify any other encoding, and adjust a bunch of existing tests to use UTF-8 directly, rather than Unicode escape sequences or similar. (This also changes the encoding of .sjs scripts and all mochitest-browser tests in the tree from Latin-1 to UTF-8.) r=yzen, r=MattN, r=jimb, r=kmag 2018-12-19 13:46:20 -08:00
Alex Kong 1a4b7d1b8a Bug 1508988 - Enable ESLint for dom/abort/, dom/asmjscache/, dom/battery/, dom/broadcastchannel/ and dom/console/ (manual changes). r=Standard8,nika
Differential Revision: https://phabricator.services.mozilla.com/D14132

--HG--
extra : moz-landing-system : lando
2018-12-19 22:39:34 +00:00
Alex Kong a164593e05 Bug 1508988 - Enable ESLint for dom/abort/, dom/asmjscache/, dom/battery/, dom/broadcastchannel/ and dom/console/ (automatic changes). r=Standard8,nika
Differential Revision: https://phabricator.services.mozilla.com/D14131

--HG--
extra : moz-landing-system : lando
2018-12-19 22:38:44 +00:00
Razvan Maries 98becee43c Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-12-20 00:01:42 +02:00
Razvan Maries 0e169796a1 Merge mozilla-inbound to mozilla-central a=merge 2018-12-19 23:58:38 +02:00
Jean-Yves Avenard c028a5a443 Bug 1515021 - Interrupt steps if shutdown. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D15008

--HG--
extra : moz-landing-system : lando
2018-12-19 20:25:55 +00:00
longsonr c074144472 Bug 1515187 - Part 1 nsSVGAnimatedTransform uses SVGTransform_Binding, preemptively fix it so later patches in this bug can land r=dholbert 2018-12-19 17:59:59 +00:00
Nico Grunbaum 7cd09e1947 Bug 1515379 - initialize frames delivered stat and add test r=dminor
This initializes a one of the stats that lost its default initialization when it was changed from an Atomic to a plain old int.

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

--HG--
extra : moz-landing-system : lando
2018-12-19 17:57:15 +00:00
Andrew McCreight 0507792161 Bug 1471989 - Clear JSStackFrame's JS object pointer when the window goes away. r=bzbarsky
JSStackFrames are C++ objects that are exposed to chrome JS and keep
alive content JS. This means that if chrome JS leaks a stack frame
then a window can be leaked.

The basic idea of this patch is to think of JSStackFrames as
cross-compartment wrappers, and do a "hueyfix" on them by dropping the
content JS reference when the associated content window is closed.

To do that, this patch modifies the realm private to keep a list of
all live JSStackFrames that have been created with objects in that
realm. When we nuke that realm, we also clear out all of the JS
pointers from the registered stack frames on that realm.

This adds a hash table lookup to the JSStackFrame ctor and dtor, which
is hopefully not too much overhead.

The test works by intentionally leaking a JSStackFrame from chrome JS
and making sure that the window still goes away.

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

--HG--
extra : moz-landing-system : lando
2018-12-19 19:42:04 +00:00
Peter Van der Beken 9ae4291779 Bug 1515319 - Allow record<DOMString, object> member in dictionary. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D14968

--HG--
extra : moz-landing-system : lando
2018-12-19 19:29:48 +00:00
Andreea Pavel f9260c6914 Backed out changeset b1fe3750580d (bug 1471989) for build bustages on a CLOSED TREE 2018-12-19 20:48:10 +02:00
Andrew McCreight 09534362bf Bug 1471989 - Clear JSStackFrame's JS object pointer when the window goes away. r=bzbarsky
JSStackFrames are C++ objects that are exposed to chrome JS and keep
alive content JS. This means that if chrome JS leaks a stack frame
then a window can be leaked.

The basic idea of this patch is to think of JSStackFrames as
cross-compartment wrappers, and do a "hueyfix" on them by dropping the
content JS reference when the associated content window is closed.

To do that, this patch modifies the realm private to keep a list of
all live JSStackFrames that have been created with objects in that
realm. When we nuke that realm, we also clear out all of the JS
pointers from the registered stack frames on that realm.

This adds a hash table lookup to the JSStackFrame ctor and dtor, which
is hopefully not too much overhead.

The test works by intentionally leaking a JSStackFrame from chrome JS
and making sure that the window still goes away.

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

--HG--
extra : moz-landing-system : lando
2018-12-19 16:46:25 +00:00
Margareta Eliza Balazs da52cd7623 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-12-19 18:02:55 +02:00
Margareta Eliza Balazs ca776030e5 Merge inbound to mozilla-central. a=merge 2018-12-19 17:46:11 +02:00
Andreas Pehrson 1e5789506e Bug 1515032 - Add mochitest. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D14871

--HG--
extra : moz-landing-system : lando
2018-12-19 15:43:02 +00:00
Brian Hackett 490b175062 Bug 1044074 - Don't run resize or scroll events while documents have events suppressed, r=smaug.
--HG--
extra : rebase_source : 47b98b215d3131fa3e6e88948fdd67aaf41524a9
2018-12-18 15:38:45 -10:00
Jan Varga f1c68bcc8c Bug 1513859 - Followup fix to make eslint happy; r=bustage CLOSED TREE 2018-12-19 13:08:42 +01:00
Jan Varga 849998a8e0 Bug 1513859 - CPOWs can still cause a hang with LSNG enabled; r=asuth 2018-12-19 12:38:23 +01:00
longsonr 0c49fd38bf Bug 1514570 - devirtualise IsSVGFocusable by having SVGAElement (its only override) directly override the higher level IsFocusableInternal API r=dholbert 2018-12-19 09:41:11 +00:00
Ehsan Akhgari 88f52ec120 Bug 1514762 - Delay modifying the observer list until we hit the event loop; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D14830

--HG--
extra : moz-landing-system : lando
2018-12-19 14:15:57 +00:00
Andreas Pehrson 88cb071d63 Bug 1513638 - Rename DispatchToMainThreadAfterStreamStateUpdate to DispatchToMainThreadStableState. r=jya,karlt
Differential Revision: https://phabricator.services.mozilla.com/D14421

--HG--
extra : moz-landing-system : lando
2018-12-19 04:34:10 +00:00
Andreas Pehrson 8dec05474b Bug 1513638 - Don't resolve DOMMediaStream::CountUnderlyingStreams promise in stable state. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D14420

--HG--
extra : moz-landing-system : lando
2018-12-18 15:39:54 +00:00
Eden Chuang 90230f4b11 bug 1509320 - mochitest for ignoring the change on the selected shippingOption. r=baku 2018-12-17 15:51:38 +01:00
Margareta Eliza Balazs f462d0cc0c Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-12-19 18:04:43 +02:00
Bogdan Tara 91d742d138 Merge inbound to mozilla-central. a=merge 2018-12-19 06:50:57 +02:00
Bogdan Tara a5963704c0 Backed out changeset 134d6c86e984 (bug 1509442) for browser_webAudio_silentData.js failures CLOSED TREE 2018-12-19 03:03:42 +02:00
Cristina Coroiu 3aeca11e88 Bug 1484442 - disable test_input_number_mouse_events.html on mac debug for frequent failures r=jmaher 2018-12-18 13:51:00 +02:00
longsonr 45c9b09d32 Bug 1515341 - Move nsSVGFELightingElement into the mozilla::dom namespace and rename it as SVGFELightingElement r=dholbert 2018-12-20 08:01:54 +00:00
longsonr 323a94ea24 Bug 1515187 - Part 3 move SVGContentUtils into the mozilla namespace r=dholbert 2018-12-20 07:58:08 +00:00
longsonr cd491fca01 Bug 1516076 - Part 3 rename nsSVGAnimatedTransformList to SVGAnimatedTransformList and move it to the mozilla namespace r=dholbert
--HG--
rename : dom/svg/nsSVGAnimatedTransformList.cpp => dom/svg/SVGAnimatedTransformList.cpp
rename : dom/svg/nsSVGAnimatedTransformList.h => dom/svg/SVGAnimatedTransformList.h
2018-12-26 23:46:38 +00:00
Boris Zbarsky d6876ebbfa Bug 1515999. Remove the unused JSContext argument from GetArrayIndexFromId. r=peterv 2018-12-26 13:45:15 -08:00
Ehsan Akhgari ebf73ac0ad Bug 1511303 - Ensure that visiting a page with an iframe does not cause an entry to be injected in the Cookies subpanel in the Control Centre; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D14776

--HG--
extra : moz-landing-system : lando
2018-12-18 23:20:30 +00:00
Bogdan Tara d7c417565a Backed out changeset 3956dbb7e65d (bug 1511303) for browser_ignore_same_page_navigation.js failures CLOSED TREE 2018-12-19 00:57:37 +02:00
Boris Zbarsky 829ee4b10c Bug 1514251 part 2. Update naming in ReparentWrapper to reflect reality. r=peterv
We're not changing parents; we're changing globals.  Let's be clear about that.
2018-12-19 11:52:31 -08:00
Boris Zbarsky 00a507f332 Bug 1514251 part 1. Stop relying on compartment-per-global in ReparentWrapper. r=peterv,jandem
This code dates back to when we had a concept of parent as distinct from the
concept of global.  It was comparing compartments back then because in the
same-compartment case it would just JS_SetParent and return.  When we got rid of
the concept of parents, the code was left as-is, even though at that point we
could just as easily compare the two globals.

I believe that in the same-compartment-different-globals case this is safe,
because in that case JS_TransplantObject will just keep using the original
object allocation but JSObject::swap it with the new object, so that it will
pick up the new global.
2018-12-19 11:50:36 -08:00
Eden Chuang 8f52742cf8 bug 1509320 - Ignoring PaymentRequestService::changeShippingOption call if the shippingOptions has been selected. r=baku
Since the shippingOption has already been selected and synced with merchant
    side, we need not to emit a PaymentRequestUpdateEvent to merchant.
2018-12-13 18:12:26 +01:00
Margareta Eliza Balazs e5ddbb7ce1 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-12-20 17:32:42 +02:00
Margareta Eliza Balazs d2f4fd53c6 Backed out 2 changesets (bug 1494917) for bc failures in browser/components/payments/test/browser/browser_address_edit.js CLOSED TREE
Backed out changeset 1cdcc397c971 (bug 1494917)
Backed out changeset 14cfc544bea0 (bug 1494917)
2018-12-20 15:58:09 +02:00
Eliza Balazs beea267813 Bug 1514425 - Disable test_constructor.html on linux for frequent failures. r=jmaher 2018-12-20 05:17:00 +02:00
Blake Kaplan d418ca74d9 Bug 1509442 - Enter a realm here. r=qdot
Differential Revision: https://phabricator.services.mozilla.com/D13481

--HG--
extra : moz-landing-system : lando
2018-12-12 14:24:29 +00:00
Blake Kaplan cb3d965403 Bug 1514894 - Tell the new content process about its principal. r=asuth
By forcing our subject principal to be that of the service worker, we confuse
the permissions-checking code in the new process we create for
clients.openWindow. We need to tell the new process about the principal that's
doing work before it does any work.

Further principals (such as the principal for the loaded page) will be passed
down to the child via the various networking channels that we create for it.

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

--HG--
extra : moz-landing-system : lando
2018-12-18 22:00:09 +00:00
John Lin 9abf52aa0f Bug 1511607 - don't suspend background video decoding for unseekable media. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D14821

--HG--
extra : moz-landing-system : lando
2018-12-18 19:46:16 +00:00
Julia 7e1563241b Bug 1508991 - Enable ESLint for dom/manifest/ (manual changes) r=Standard8,Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D13208

--HG--
extra : moz-landing-system : lando
2018-12-18 20:39:42 +00:00
Julia d252be35ef Bug 1508991 - Enable ESLint for dom/manifest/ (automatic changes) r=Standard8,Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D13207

--HG--
extra : moz-landing-system : lando
2018-12-18 20:38:43 +00:00
Bogdan Tara b13992b643 Backed out changeset 82ca028b0524 (bug 1503984) for StaticPrefList failures CLOSED TREE 2018-12-18 22:06:19 +02:00
thomasmo 32f32b7a86 Bug 1508225 - Change return type of VRDisplayExternal::GetSensorState to a reference r=kip,dmajor
This change fixes a compiler warning, where a VRSensorState object is returned on the stack as a rather large object.
To address this warning, the return type of VRDisplayExternal::GetSensorState now returns a const reference to the member. The rest of the change are updates to uphold the new constness.

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

--HG--
extra : moz-landing-system : lando
2018-12-18 19:39:44 +00:00
Bogdan Tara 69fe878c79 Backed out changeset ddb6f7d7a0e3 (bug 1514894) for ClientManagerService related build bustages CLOSED TREE 2018-12-18 21:22:18 +02:00
Felipe Gomes 72585dea54 Bug 1503984 - Add a pref to block chrome code from accessing content subframes. r=nika
The pref dom.chrome_frame_access.enabled will default to true. When false, it will block various methods that chrome code can use to traverse subframes. The initial list is:
  iframe.contentWindow
  iframe.contentDocument
  window.top
  window.parent
  window.opener
  window.frames[i]
  window.frames.length
  MessageEvent.source

More blocks are likely to be added in the future.

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

--HG--
extra : moz-landing-system : lando
2018-12-18 18:53:24 +00:00
Blake Kaplan ba862815a3 Bug 1514894 - Tell the new content process about its principal. r=asuth
By forcing our subject principal to be that of the service worker, we confuse
the permissions-checking code in the new process we create for
clients.openWindow. We need to tell the new process about the principal that's
doing work before it does any work.

Further principals (such as the principal for the loaded page) will be passed
down to the child via the various networking channels that we create for it.

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

--HG--
extra : moz-landing-system : lando
2018-12-18 18:59:16 +00:00
Blake Kaplan f9cc1d1c09 Bug 1514908 - Reduce deep copies of the closures passed to this function. r=baku
By taking an rvalue reference and using std::move more aggressively, we can
avoid at least two copies of these closures, which avoids a bit of atomic
refcounting.

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

--HG--
extra : moz-landing-system : lando
2018-12-18 18:52:26 +00:00
Ehsan Akhgari c6e9319e51 Bug 1511303 - Ensure that visiting a page with an iframe does not cause an entry to be injected in the Cookies subpanel in the Control Centre; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D14776

--HG--
extra : moz-landing-system : lando
2018-12-18 18:33:26 +00:00
Brindusan Cristian 4eaaa7bc4c Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-12-18 19:37:00 +02:00
Andrea Marchesini 783759c379 Bug 1003730 - Always terminate workers when in canceling state, r=mrbkap 2018-12-18 12:48:11 +01:00
Andrea Marchesini 975c1db894 Bug 1512047 - Deprecate AddSearchProvider, r=mkaply 2018-12-18 08:56:19 +01:00
Brindusan Cristian d2dd4a1581 Backed out changeset 80bcfbcc44ea (bug 1511303) for bc failures on browser_alltabslistener.js. CLOSED TREE 2018-12-18 18:39:39 +02:00
Ehsan Akhgari 14c2b81c65 Bug 1511303 - Ensure that visiting a page with an iframe does not cause an entry to be injected in the Cookies subpanel in the Control Centre r=baku
Differential Revision: https://phabricator.services.mozilla.com/D14776

--HG--
extra : moz-landing-system : lando
2018-12-18 15:18:49 +00:00
Ehsan Akhgari c970e3b98e Bug 1510817 - Don't doubly warn when we can't load a script due to tracking protection; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D14861

--HG--
extra : moz-landing-system : lando
2018-12-18 15:19:02 +00:00
Henri Sivonen c3a839f3e2 Bug 1514726 - Avoid an allocation and copy in TextEncoder.encode() in the non-ASCII case. r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D14728

--HG--
extra : moz-landing-system : lando
2018-12-18 11:40:31 +00:00
Kris Maglione b9c64adb66 Bug 1513366: Part 3 - Update txEXSLTFunctions to use do_ImportModule. r=Ehsan
This makes the code much simpler, and also likely much more efficient, since
it does not involve creating a sandbox, and the resulting copies and
cross-compartment-wrapper overhead.

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

--HG--
extra : rebase_source : d5def81411c651314fb10d19749ffe1642d78dcb
2018-12-11 13:30:13 -08:00
arthur.iakab f1762a3667 Merge mozilla-central to mozilla-inbound 2018-12-18 07:36:08 +02:00
Blake Kaplan b7296f0f06 Bug 1514844 - Remove the per-process notification cache. r=asuth
This assumes that all of the notifications for a given origin must be in the
same process. With this patch, we'll always go back to the parent process to
get the notifications. Up next is limiting our search in the parent process to
only the notifications we're looking for.

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

--HG--
extra : moz-landing-system : lando
2018-12-17 22:18:59 +00:00
Blake Kaplan e131893a41 Bug 1514844 - Fix notification events in service workers. r=asuth
The current code assumes that it can get the ServiceWorkerManager in the child
process to send a message to the proper service worker. That isn't true, we
need to ask the parent to do it for us.

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

--HG--
extra : moz-landing-system : lando
2018-12-18 00:42:53 +00:00
arthur.iakab e14d71a660 Merge mozilla-central to inbound
--HG--
rename : mobile/android/geckoview/src/main/aidl/org/mozilla/gecko/gfx/ISurfaceAllocator.aidl => mobile/android/geckoview/src/main/aidl/org/mozilla/gecko/gfx/SyncConfig.aidl
extra : rebase_source : a7f6628299f30b300a02932debe0cc92810f901d
2018-12-18 00:04:04 +02:00
longsonr 717a265944 Bug 1514570 - Only graphics elements should support tabindex r=dholbert 2018-12-17 21:11:12 +00:00
James Willcox e67010fdec Bug 1514360 - Fix test_navigator_buildID.html under GeckoView r=Ehsan
Depends on D14613

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

--HG--
extra : moz-landing-system : lando
2018-12-14 22:51:58 +00:00
Jonathan Kingston 943bc1976a Bug 903372 - Removal of xml:base. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D13457
2018-12-13 15:16:52 +00:00
championshuttler 6e072992a2 Bug 1423844 - Enable ESLint for dom/security/test/unit/ r=Standard8,jkt
Enable ESLint for dom/security/test/unit

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

--HG--
extra : moz-landing-system : lando
2018-12-17 15:47:44 +00:00
Ehsan Akhgari c695475926 Bug 1511477 - Ensure that the GeckoView API always reports the URI and type of all blocked trackers r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D14607

--HG--
extra : moz-landing-system : lando
2018-12-14 23:55:54 +00:00
Luca Greco 420d7d08e5 Bug 1506614 - Fix ChromeUtils.shallowClone behavior on objects with getters and/or setters. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D11655

--HG--
extra : moz-landing-system : lando
2018-12-17 15:19:27 +00:00
Tim Huang 1e2c28f939 Bug 1446472 - Part 1: Showing the identity block icon for canvas permission without the doorhanger when canvas extraction is auto detected. r=baku,Gijs
For a better user experience of auto-blocking canvas extraction, this
patch changes the behavior when detecting a canvas extraction without
user interaction. It will show a canvas identity block icon with a
hidden doorhanger when auto-blocking the canvas extraction. Users can
make their choice to either block or allow the canvas extraction by
clicking the identity block icon and then refresh the page to make
the canvas permission taking effect.

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

--HG--
extra : moz-landing-system : lando
2018-12-16 21:30:59 +00:00
Jean-Yves Avenard 25657ee569 Bug 1513511 - P2. Ensure all frames are decoded. r=bryce
vp9 streams contains superframes. Ensure they are all properly handled.

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

--HG--
extra : moz-landing-system : lando
2018-12-17 20:30:46 +00:00
Jean-Yves Avenard 0855e7a7da Bug 1513511 - P1. Use new FFmpeg decode API with recent FFmpeg version. r=bryce
In libavcodec 58 and later, the old avcodec_decode_video2 is broken and only return the first visible frame found after a VP9 super-frame.

This resulted in some YouTube videos for about 10% of the frames to never be returned.

Only the new API properly behaves so we upgrade our code to use it.

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

--HG--
extra : moz-landing-system : lando
2018-12-17 17:29:13 +00:00
Ehsan Akhgari e8796fe60d Bug 1512625 - Ensure that the allow-mode argument in the PContent::FirstPartyStorageAccessGrantedForOrigin() IPC call doesn't get converted down to 0/1 r=baku
Differential Revision: https://phabricator.services.mozilla.com/D14478

--HG--
extra : moz-landing-system : lando
2018-12-17 16:19:43 +00:00
Dan Minor 3430187119 Bug 1498253 - Remove mozAvSyncDelay and mozJitterBufferDelay from webidl; r=baku
These are undocumented and were only used for the about:webrtc page. They can
be removed without first deprecating them.

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

--HG--
extra : moz-landing-system : lando
2018-12-17 16:20:01 +00:00
Dan Minor 73d9c4cce6 Bug 1498253 - Remove mozAvSyncDelay and mozJitterBufferDelay; r=ng
The value for mozAvSyncDelay has been broken since the branch 57 update
(Bug 1341285). We added SetCurrentSyncOffset() but never called it from
anywhere.

In the future we should be getting stats from AudioReceiveStream rather than
modifying the channel code, the delay_estimate_ms field provides almost the
same information.

Since we're attempting to get rid of moz prefixed stats, it makes sense to just
remove this code rather than fix it. The associated telemetry code has been
broken since Bug 1341285 as well so I think it is safe to remove.

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

--HG--
extra : moz-landing-system : lando
2018-12-14 13:08:12 +00:00
James Willcox 6042d9482d Bug 1511132 - Disable ServiceWindowClients.openWindow() under GeckoView r=asuth
This also disables test_openWindow.html when running in GeckoView.

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

--HG--
extra : moz-landing-system : lando
2018-12-14 21:28:14 +00:00
Andrea Marchesini 9cc643f6d3 Bug 1513895 - Unify PopupBlocker algorithm in 1 single file, r=smaug 2018-12-16 10:21:16 +01:00
Brindusan Cristian 87c3d24a94 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-12-15 23:45:20 +02:00
Brindusan Cristian 64199f841e Merge inbound to mozilla-central. a=merge 2018-12-15 23:41:35 +02:00
Andrea Marchesini 5b2f5ad02d Bug 1513596 - Introduce a Blob.blobImplType attribute, chrome-only, for testing, r=smaug 2018-12-15 21:40:05 +01:00
Andrea Marchesini 3fbb317e79 Bug 1513596 - Mutable blobs should create blobs also when temporary files are used, r=smaug 2018-12-15 21:40:05 +01:00
Volodymyr Klymenko ext:(%3E) 92c4139a6d Bug 1508825 - Enable ESLint for dom/crypto (manual changes) r=Standard8,Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D13694

--HG--
extra : moz-landing-system : lando
2018-12-14 22:54:56 +00:00
Noemi Erli 6f12c62b7e Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-12-15 11:42:56 +02:00
Cosmin Sabou 945cf611d2 Merge mozilla-central to autoland. 2018-12-15 04:57:48 +02:00
Timothy Guan-tin Chien 3913ded230 Bug 1510848 - Do not unattach UA Widget Shadow Root if the element is already re-attached to the tree r=emilio,smaug
This patch moves all UA Widget calls to helper functions in Element.cpp. The helper function AttachAndSetUAShadowRoot sets the shadow root in a runnable, so that it is in the same order of NotifyUAWidget* runnables.

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

--HG--
extra : moz-landing-system : lando
2018-12-15 02:48:46 +00:00
Cosmin Sabou b30ca1fd33 Merge mozilla-inbound to mozilla-central. a=merge 2018-12-15 04:47:12 +02:00
Edgar Chen 7f5019defb Bug 1512043 - Ensure traverse all nodes owned by the top level shadow host; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D14143

--HG--
extra : moz-landing-system : lando
2018-12-14 18:14:52 +00:00
Brian Hackett d0f7b1b700 Bug 801304 Part 1 - Keep track of suspended event queues in nsIDocument, r=smaug.
--HG--
extra : rebase_source : 312b0e15d40c7e11ba2c4a6bdadcfefb1300999f
2018-12-14 06:47:40 -10:00
J.C. Jones 884c261af0 Bug 1514247 - Upgrade u2f-hid-rs to 0.2.3 r=emilio,keeler
This patch moves u2f-hid-rs to 0.2.3 [1], which changes the dependency graph of
u2f-hid-rs to not directly rely on the low-level core-foundation-sys library, as
core-foundation has all the features u2f-hid-rs needs in 0.6.1+.

This patch vendors core-foundation 0.6.3 and core-foundation-sys 0.6.2 as a
consequence.

[1] https://github.com/jcjones/u2f-hid-rs/releases/tag/v0.2.3
[2] d1d36d1044

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

--HG--
extra : moz-landing-system : lando
2018-12-14 19:40:03 +00:00
Sylvestre Ledru 6f45c666bc Bug 1513205 - Also update the tests to match the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2018-12-14 18:10:35 +00:00
Jed Davis d845f69798 Bug 1510934 - Ensure that pref changes during content process launch are delivered to the process. r=njn
Some prefs need to be available before IPC is started, so we serialize a
snapshot when we start launching the process, and then stream further
changes over IPC messages.  However, async launch introduces a window
between the snapshot and when the parent can start sending messages,
during which other code can run on the main thread and change prefs.

In order to not lose those updates, they're queued and sent when the
launch is complete.

Depends on D14089

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

--HG--
extra : moz-landing-system : lando
2018-12-14 05:28:56 +00:00
Jed Davis 4213a3e9b6 Bug 1510934 - Change ContentParent's alive/dead tracking to launching/alive/dead. r=mrbkap
We need content processes that are created but not finished launching
(not "alive" yet) to be treated differently from ones that have exited
(no longer "alive"), so the boolean mIsAlive is expanded to a 3-state
enumeration, which could be expanded more in the future if needed.

(This is similar to GeckoChildProcessHost::mProcessState, but it's
synchronized with the rest of the ContentParent's state, which can lag
the GeckoChildProcessHost state due to runnable dispatch.)

This patch also removes mIsAvailable/IsAvailable/MarkAsTroubled, which
are unused as of bug 1459212.

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

--HG--
extra : moz-landing-system : lando
2018-12-15 01:38:27 +00:00
Volodymyr Klymenko ext:(%3E) fbb0aae478 Bug 1508825 - Enable ESLint for dom/crypto/ (automatic changes) r=Standard8,Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D13693

--HG--
extra : moz-landing-system : lando
2018-12-14 00:44:52 +00:00
Razvan Maries 87aca70b7f Merge mozilla-inbound to mozilla-central a=merge 2018-12-14 18:22:09 +02:00
Nico Grunbaum ecedddea82 Bug 1495446 - fix timestamp of WebRTC RTCP stats r=jib
The RTCP timestamps have different timebases and reporting sources, this makes the source and timebase the same for all RTCP stats

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

--HG--
extra : moz-landing-system : lando
2018-12-14 01:55:21 +00:00
Timothy Guan-tin Chien 0bdd6f623a Bug 1511130 - Part II, Allow UAWidgetsChild to destruct widgets even if it throws during construction r=bgrins
This patch move the actual widget construction to a onsetup method, allow UAWidgetsChild to hold the reference of the widget instance even if the actual setup (happens in the onsetup call) throws. With the reference of the widget kept, UAWidgetsChild will finally able to call its destructor later on.

Depends on D13607

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

--HG--
extra : moz-landing-system : lando
2018-12-13 20:59:00 +00:00
Andrea Marchesini 6b9fe3a6cf Bug 1511436 - Cleanup URL-Classifier code - part 3 - AsyncUrlChannelClassifier, r=dimi 2018-12-14 12:40:17 +01:00
Andrea Marchesini 71b120ca17 Bug 1511436 - Cleanup URL-Classifier code - part 2 - nsUrlClassifierDBService::AsyncClassifyLocalWithFeatures, r=dimi 2018-12-14 12:40:17 +01:00
Andrea Marchesini cdd5a7b12c Bug 1511436 - Cleanup URL-Classifier code - part 0 - use of StaticPrefs, r=dimi 2018-12-14 12:40:16 +01:00
Andrea Marchesini f47925dbf9 Bug 1508699 - Fetch() should not send lowercase header names, r=asuth 2018-12-19 15:48:30 +01:00
Andrea Marchesini f6bdf95ba2 Bug 1515295 - fetch EmptyBody must make a uniqueptr of the principalInfo, r=edgar 2018-12-19 15:48:30 +01:00
Andrea Marchesini 1472148116 Bug 1513647 - MutableBlobStorage should be used in eCouldBeInTemporaryFile mode for fetch(), r=smaug 2018-12-19 15:48:29 +01:00
Eden Chuang 273386aaea bug 1494917 - Warning to console when calling PaymentResponse.retry() with improper error fields. r=baku
1. Warning to browser console when calling with empty error fields.
    2. Warning to browser console when calling with non-empty payer errors but
       corresponding PaymentOptions.requestPayerXXX is false.

--HG--
extra : histedit_source : 816c44a0ceca5202886a48eee96d2ef7f7315487
2018-12-05 15:02:01 -05:00
Eden Chuang 070cae36a6 bug 1494917 - mochitest test updation. r=baku
--HG--
extra : histedit_source : ea66d06661ca3a225bcd0a4888b1f5f4f32e72ff
2018-12-04 15:42:03 -05:00
Bogdan Tara 4cbc39232e Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-12-14 00:52:36 +02:00
Bogdan Tara b6a18773a4 Merge inbound to mozilla-central. a=merge 2018-12-14 00:42:20 +02:00
Alastor Wu 41ffd33d93 Bug 1512362 - hook pref "media.autoplay.allow-muted" to all inaudible autoplay media policy r=cpearce
When talking about autoplay, video without audio track should also be controlled by the pref "media.autoplay.allow-muted".

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

--HG--
extra : moz-landing-system : lando
2018-12-13 21:31:42 +00:00
Jean-Yves Avenard 1eaf0bea3e Bug 1443429 - P4. Ensure MediaShutdownManager is initialized outside stable state. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D14283

--HG--
extra : moz-landing-system : lando
2018-12-13 20:06:03 +00:00
Jean-Yves Avenard 03276c5356 Bug 1443429 - P3. Don't use WebVTTListener while in stable state. r=smaug
WebVTTListener is a JS wrapper around vtt.js.

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

--HG--
extra : moz-landing-system : lando
2018-12-13 20:06:02 +00:00
Jean-Yves Avenard b6b646428c Bug 1443429 - P1. Ensure that we don't run JS wrapper while in stable state. r=pehrsons
Due to the state watcher logic, mirror tasks can be dispatched while in stable state. We must not have visible aJS change during such stable state.

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

--HG--
extra : moz-landing-system : lando
2018-12-13 20:04:46 +00:00
Jared Wein 6989ff6cec Bug 1477113 - Dispatch paymentmethodchange event from the front-end. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D13740

--HG--
extra : moz-landing-system : lando
2018-12-13 18:48:54 +00:00
Andrea Marchesini 8e9ba7560d Bug 1513606 - Remove unused code in Fetch, r=smaug 2018-12-13 17:12:29 +01:00
Geoff Brown e260da40f6 Bug 1512464 - Remove invalid entries from dom/tests/mochitest/general/chrome.ini; r=smaug 2018-12-13 09:08:45 -07:00
Gijs Kruitbosch 70281bf326 Bug 1499092 - rename/move code from 'feeds' and 'web content' to more appropriate/obvious versions for registerProtocolHandler, r=nika
Differential Revision: https://phabricator.services.mozilla.com/D13699

--HG--
rename : browser/components/feeds/WebContentConverter.js => browser/components/protocolhandler/WebProtocolHandlerRegistrar.js
rename : browser/components/feeds/moz.build => browser/components/protocolhandler/moz.build
rename : browser/components/feeds/test/.eslintrc.js => browser/components/protocolhandler/test/.eslintrc.js
rename : browser/components/feeds/test/browser/.eslintrc.js => browser/components/protocolhandler/test/browser/.eslintrc.js
rename : browser/components/feeds/test/browser/browser.ini => browser/components/protocolhandler/test/browser/browser.ini
rename : browser/components/feeds/test/browser/browser_registerProtocolHandler_notification.html => browser/components/protocolhandler/test/browser/browser_registerProtocolHandler_notification.html
rename : browser/components/feeds/test/browser/browser_registerProtocolHandler_notification.js => browser/components/protocolhandler/test/browser/browser_registerProtocolHandler_notification.js
rename : browser/components/feeds/test/mochitest.ini => browser/components/protocolhandler/test/mochitest.ini
rename : browser/components/feeds/test/test_registerHandler.html => browser/components/protocolhandler/test/test_registerHandler.html
rename : browser/components/feeds/test/test_registerHandler_disabled.html => browser/components/protocolhandler/test/test_registerHandler_disabled.html
rename : dom/interfaces/sidebar/nsIWebContentHandlerRegistrar.idl => dom/interfaces/sidebar/nsIWebProtocolHandlerRegistrar.idl
extra : moz-landing-system : lando
2018-12-13 13:34:11 +00:00
Gijs Kruitbosch 7ab8abdd16 Bug 1499092 - move bulk of registerProtocolHandler checks into compiled code so we don't need a dedicated component in the child process, r=nika
Differential Revision: https://phabricator.services.mozilla.com/D13697

--HG--
extra : moz-landing-system : lando
2018-12-13 13:47:39 +00:00
adam.kolodko 8859b55ad1 Bug 1508990 - Enable ESLint for dom/ipc/ (manual changes) r=Standard8,mrbkap
Depends on D13887

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

--HG--
extra : moz-landing-system : lando
2018-12-13 00:45:24 +00:00
adam.kolodko 1a8fd9262f Bug 1508990 - Enable ESLint for dom/ipc/ (automatic changes) r=Standard8,mrbkap
Differential Revision: https://phabricator.services.mozilla.com/D13887

--HG--
extra : moz-landing-system : lando
2018-12-13 00:43:55 +00:00
Narcis Beleuzu 99f7b49656 Backed out changeset 3fa420b71260 (bug 1477113) for bc failures on browser_total.js. CLOSED TREE 2018-12-13 09:53:39 +02:00
Jared Wein bbfb132319 Bug 1477113 - Dispatch paymentmethodchange event from the front-end. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D13740

--HG--
extra : moz-landing-system : lando
2018-12-13 06:35:30 +00:00
Cosmin Sabou 9835fdf72c Merge mozilla-inbound to mozilla-central. a=merge 2018-12-13 05:56:48 +02:00
Cosmin Sabou edce6c68ac Merge autoland to mozilla-central. a=merge 2018-12-13 05:54:41 +02:00
Cosmin Sabou 0bedc24aae Backed out 2 changesets (bug 1511235) for causing bugs 1513454, 1513456 as alwu requested on irc. a=backout
Backed out changeset 4c9f874d6868 (bug 1511235)
Backed out changeset 3432e8bee7f1 (bug 1511235)
2018-12-13 03:43:36 +02:00
Razvan Maries cef33be47c Merge mozilla-inbound to mozilla-central a=merge 2018-12-12 18:32:14 +02:00
Jan de Mooij b8a316aca4 Bug 1512260 - Make wrapper nuking work with a target realm instead of target compartment. r=kmag
For *incoming* wrappers this preserves behavior. We nuke *outgoing* wrappers
when all realms in the compartment have been nuked. To implement this I moved
the wasNuked flag from XPConnect to JS::Compartment as nukedOutgoingWrappers and
to JS::Realm as nukedIncomingWrappers.

The code to create a dead wrapper in the nuked compartment/realm case was also
moved into the JS engine. I added a shell test for it.

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

--HG--
extra : moz-landing-system : lando
2018-12-12 08:02:30 +00:00
Ciure Andrei 12adcc1edd Backed out changeset a8dd01db9f92 (bug 1512260) requsted by owner (missing test) CLOSED TREE 2018-12-12 09:14:53 +02:00
Jan de Mooij 89da963b10 Bug 1512260 - Make wrapper nuking work with a target realm instead of target compartment. r=kmag
For *incoming* wrappers this preserves behavior. We nuke *outgoing* wrappers
when all realms in the compartment have been nuked. To implement this I moved
the wasNuked flag from XPConnect to JS::Compartment as nukedOutgoingWrappers and
to JS::Realm as nukedIncomingWrappers.

The code to create a dead wrapper in the nuked compartment/realm case was also
moved into the JS engine. I added a shell test for it.

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

--HG--
extra : moz-landing-system : lando
2018-12-12 06:39:38 +00:00
Coroiu Cristina 51cd68a168 Merge mozilla-central to autoland a=merge on a CLOSED TREE 2018-12-12 07:26:06 +02:00
Dorel Luca d1d958a798 Backed out 4 changesets (bug 1512280) for bmsvc build bustage
Backed out changeset abe934612616 (bug 1512280)
Backed out changeset 9463a1a3d790 (bug 1512280)
Backed out changeset 9a68c5f1ca0d (bug 1512280)
Backed out changeset 616721cad893 (bug 1512280)
2018-12-12 07:22:49 +02:00
Coroiu Cristina 3160ddc1f0 Merge inbound to mozilla-central a=merge 2018-12-12 07:12:07 +02:00
Jan-Ivar Bruaroey 826b382038 Bug 1512280 - Less verbose code in MediaManager in places. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D13986

--HG--
extra : moz-landing-system : lando
2018-12-12 04:22:06 +00:00
Jan-Ivar Bruaroey 3120eb8814 Bug 1512280 - Add out-parameter to EnumerateDevicesImpl(); clearer semantics and flattens things. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D13985

--HG--
extra : moz-landing-system : lando
2018-12-12 04:00:42 +00:00
Jan-Ivar Bruaroey b43cd8e1dd Bug 1512280 - Make LOG macros clang-format friendlier. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D13859

--HG--
extra : moz-landing-system : lando
2018-12-12 02:36:51 +00:00
Jan-Ivar Bruaroey 2fc3a23b7c Bug 1512280 - Fix some nits and shorten MediaManager::GetUserMedia(). r=achronop
Differential Revision: https://phabricator.services.mozilla.com/D13858

--HG--
extra : moz-landing-system : lando
2018-12-12 02:23:57 +00:00
alwu aba79e9edc Bug 1511235 - part2 : add test. r=jya,baku
Add new webidl method for testing only and a test.

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

--HG--
extra : moz-landing-system : lando
2018-12-12 02:16:55 +00:00
Daniel Varga 9be61b1c47 Backed out changeset 1a06654dd1ba (bug 1513152) for test-android-em failure at dom/security/test/csp/test_punycode_host_src.html on a CLOSED TREE 2018-12-12 03:29:20 +02:00
Dorel Luca 58cd1ee36a Backed out changeset b3a9872c08d7 (bug 1513042) for Gtest failure
--HG--
extra : rebase_source : 6930ed8e1ea84af3a83f380279138d75ce2bde30
2018-12-12 02:13:45 +02:00
Tom Ritter bb57f44268 Bug 1512690 - Add a mechanism to omit logging specified Message Manager topics r=tjr
The topic will be skipped if the topic name appears anywhere as a substring
of the env var MOZ_LOG_MESSAGEMANAGER_SKIP.

Example:
  MOZ_LOG_MESSAGEMANAGER_SKIP="foobar|extension"
    Will match the topics 'foobar', 'foo', 'bar', and 'ten' (even though you may not
    have intended to match the latter three) and it will not match the topics
    'extensionresult' or 'Foo'.

--HG--
extra : histedit_source : 911b7572481c618551c6faeacfd4a46b6873ed8d
2018-12-11 13:28:26 -06:00
Tom Ritter 04ad4da5ff Bug 1512690 - Introduce a MesageManager log topic for MM topics and data r=tjr
This logging topic will output the topic of MEssageManager data at log
level 4 (debug); and will output the entire content of the data at level
5 (verbose).

--HG--
extra : histedit_source : 7be60b456a1652f9a9985fd4a01571b207a5f9e6
2018-12-11 11:31:24 -06:00
Andrea Marchesini 66b8ff36dc Bug 1459264 - Allow just 1 FilePicker per event - tests, r=smaug 2018-12-12 01:00:09 +01:00
Andrea Marchesini 294ac3e81c Bug 1459264 - Allow just 1 FilePicker per event, r=smaug 2018-12-12 01:00:05 +01:00
Andrea Marchesini 45041939bf Bug 167475 - iframes should load just URLs able to return data, r=smaug
This is done in order to block external protocol URLs in iframes, which cannot
be used to create documents, and they could exec external apps or show prompt
dialogs.
2018-12-12 00:59:47 +01:00
Bryce Van Dyk 74daa628bc Bug 1513042 - Update mp4parse-rust to v0.11.2. r=jya
Update mp4parse-rust update script and pull the new version.

This update changes the mp4parse C-API. Specifically, each track can now
have multiple sample descriptions. Previously we'd just exposed the first for
the entire track, and if others were available they were not exposed via the
API. Because of the API change, we update the C++ interface with mp4parse-rust.

We now inspect the sample info to make sure they're consistent with the parsers
expectations:
- Only a single codec is present for a track, multiple codecs in a track will
  result in us returning an error.
- Only 0 or 1 crypto info is present for a track, more than one set of info will
  result in us returning an error.

We still generalize some of the first sample info to the samples of the track,
as we did before this patch. However, we will now catch the above cases
explicitly.

We now handle crypto information if it is not present on the first sample info.
The parser will iterate through sample infos and use the first set of crypto
info it finds (and fail if it finds 2+).

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

--HG--
extra : moz-landing-system : lando
2018-12-11 20:55:26 +00:00
Cameron McCormack 6a4128de00 Bug 1513361 - Add missing space to layout/element-data-objects memory reporter r=njn
Differential Revision: https://phabricator.services.mozilla.com/D14191

--HG--
extra : moz-landing-system : lando
2018-12-11 21:48:33 +00:00
Mark Banner 0304564ac7 Bug 1415483 - Apply the new options to reject-importGlobalProperties across the codebase, remove unnecessary importGlobalProperties. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D13754

--HG--
extra : moz-landing-system : lando
2018-12-11 21:39:40 +00:00
alwu 7b4432b505 Bug 1511235 - part1 : suspend video decoding for video whose visibility state is UNTRACK. r=jya
If video has not been within the potential visible range (which is larger than viewport) yet, its visibility state won't
be updated and would stay in 'UNTRACK'. As those kinds of video are still invisible to users, we don't need to decode
any video frames, we can suspend their video decoding until they're going to be visible.

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

--HG--
extra : moz-landing-system : lando
2018-12-10 18:21:13 +00:00
alwu dd8abd37d5 Bug 1512506 - Prevent MDSM from dispatching lots of audio decoding tasks when seeking directly to EOS during looping. r=jya
To make sure media sink starts from the correct position, otherwise, we would incorrectly estimate the decoded audio
duration when we directly seek looping audio to EOS. That would results in MDSM continually dispatching decoding tasks
even if we've enough data.

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

--HG--
extra : moz-landing-system : lando
2018-12-12 01:52:06 +00:00
Jeff Walden efc00313f9 Bug 1513152 - Load .sjs scripts in httpd.js as UTF-8, updating consumers of the in-tree .sjs scripts as necessary for the change. r=kmag
--HG--
extra : rebase_source : 1eed4ea5b846e5ce608593ef732bedc3194268e3
2018-12-08 18:00:33 -05:00
Jan de Mooij eee34e39b3 Bug 1513277 part 2 - Use the scripted caller's global in mozJSComponentLoader::FindTargetObject. r=kmag
We have a few places where C++ calls ChromeUtils::Import directly.
I fixed these to pass the target object directly instead of an empty Optional<>.

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

--HG--
extra : moz-landing-system : lando
2018-12-12 21:30:04 +00:00
Jan-Ivar Bruaroey 76f3de75e7 Bug 1512280 - Less verbose code in MediaManager in places. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D13986

--HG--
extra : moz-landing-system : lando
2018-12-12 20:43:23 +00:00
Jan-Ivar Bruaroey c5cf4c239c Bug 1512280 - Add out-parameter to EnumerateDevicesImpl(); clearer semantics and flattens things. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D13985

--HG--
extra : moz-landing-system : lando
2018-12-12 20:42:54 +00:00
Jan-Ivar Bruaroey 5a89bd8fda Bug 1512280 - Make LOG macros clang-format friendlier. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D13859

--HG--
extra : moz-landing-system : lando
2018-12-12 20:42:18 +00:00
Jan-Ivar Bruaroey af3c7b9ee4 Bug 1512280 - Fix some nits and shorten MediaManager::GetUserMedia(). r=achronop
Differential Revision: https://phabricator.services.mozilla.com/D13858

--HG--
extra : moz-landing-system : lando
2018-12-12 20:42:01 +00:00
mordax b0156a5d8a Bug 1508983 - Enable ESLint for dom/base/test/unit (manual changes) r=Standard8,smaug
Differential Revision: https://phabricator.services.mozilla.com/D13134

--HG--
extra : moz-landing-system : lando
2018-12-11 22:55:53 +00:00
mordax f17847223e Bug 1508983 - Enable ESLint for dom/base/test/unit (automatic changes) r=Standard8,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D13130

--HG--
extra : moz-landing-system : lando
2018-12-11 23:01:55 +00:00
mordax 632c7423fc Bug 1508983 - Enable ESLint for dom/base/test/chrome/ (manual changes) r=Standard8,smaug
Differential Revision: https://phabricator.services.mozilla.com/D13129

--HG--
extra : moz-landing-system : lando
2018-12-12 14:56:54 +00:00
mordax e45d6338be Bug 1508983 - Enable ESLint for dom/base/test/chrome (automatic changes) r=Standard8,smaug
Differential Revision: https://phabricator.services.mozilla.com/D13128

--HG--
extra : moz-landing-system : lando
2018-12-11 22:54:23 +00:00
Coroiu Cristina 59f79d44b0 Merge mozilla-central to inbound a=merge on a CLOSED TREE 2018-12-12 00:01:36 +02:00
Csoregi Natalia 9e970681f2 Backed out 2 changesets (bug 1415483) for multiple failures e.g. on test_message_manager_ipc.html. CLOSED TREE
Backed out changeset d00748de66fc (bug 1415483)
Backed out changeset 8dea94258f54 (bug 1415483)
2018-12-11 19:30:57 +02:00
Csoregi Natalia 354257650e Merge mozilla-central to autoland. CLOSED TREE 2018-12-11 18:29:02 +02:00
Mark Banner 1abdc8687f Bug 1415483 - Apply the new options to reject-importGlobalProperties across the codebase, remove unnecessary importGlobalProperties. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D13754

--HG--
extra : moz-landing-system : lando
2018-12-11 14:09:44 +00:00
Emilio Cobos Álvarez 10e4c5c339 Bug 1513141 - Really minor nsFocusManager cleanup. r=edgar
I was skimming over the patch in bug 1512043 and wrote this. I think it should
not really affect that patch in any meaningful way, so I may as well land it.

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

--HG--
extra : moz-landing-system : lando
2018-12-11 11:25:02 +00:00
Emilio Cobos Álvarez b6deca5eb0 Bug 1442466 - Fix bogus IsInNativeAnonymousSubtree function in nsWebBrowserFind. r=bzbarsky
This is ultimately the root cause of the issue. I'm landing a test to ensure we
notice the behavior change if we make it, in addition to a test for this issue
itself, to ensure that we don't get stuck, since after bug 1510485 we don't
return such nodes from nsFind when window.find is called anyway.

This code made no sense, it only returned true if the binding parent is the node
itself, which as far as I can tell cannot happen, so it was just a very
expensive way to return false.

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

--HG--
extra : moz-landing-system : lando
2018-12-11 04:18:11 +00:00
Mark Banner 8c00ef3f30 Bug 1512052 - Add more .eslintrc.js files for test directories. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D13746

--HG--
extra : moz-landing-system : lando
2018-12-11 13:15:08 +00:00
Eliza Balazs 75bd1e1093 Bug 1511666 - Disable test_delivering.html on android debug for frequent failures. r=jmaher 2018-12-11 01:16:00 +02:00
Henri Sivonen 69ad08c987 Bug 1071816 - Support loading unlabeled/BOMless UTF-8 text/html and text/plain files from file: URLs. r=emk. 2018-12-11 10:36:46 +02:00
Narcis Beleuzu 208387527a Merge mozilla-central to inbound. a=merge 2018-12-11 07:26:37 +02:00
Emilio Cobos Álvarez 4591031b65 Bug 1513012 - Move overflow to use cbindgen. r=heycam
It's one of the most annoying / hacky mako bits we have.

Differential Revision: https://phabricator.services.mozilla.com/D14084
2018-12-11 03:07:08 +01:00
Jason Orendorff 4499193a01 Backed out 2 changesets (bug 1488417, bug 1259822) for web compat issues.
Backed out changeset b58b7cd29a0b (bug 1488417)
Backed out changeset f0c6e521429c (bug 1259822)

--HG--
extra : rebase_source : 8c06ed65ee33eddad7131694beb9740abeca82cb
2018-12-10 10:47:47 -06:00
Boris Zbarsky c734e83c48 Bug 1511401 part 4. Use CallArgs::requireAtLeast in the DOM. r=nbp,qdot 2018-12-10 14:13:06 -05:00
Brindusan Cristian 989d78f3d0 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-12-11 00:10:08 +02:00
Jeff Walden 87c8fc7bca Bug 1513152 - Load .sjs scripts in httpd.js as UTF-8, updating consumers of the in-tree .sjs scripts as necessary for the change. r=kmag
--HG--
extra : rebase_source : ff77d84433fa3fc78aea9a6c2a0e897981fd7b84
2018-12-08 18:00:33 -05:00
Neil Deakin 2ceb209681 Bug 1492326, revert some of bug 1478372, so that callers need to get the custom interface from a custom element without using QueryInterface, r=peterv 2018-12-04 11:33:06 -05:00
Neil Deakin 09ecdaf662 Bug 1492326, don't use QueryInterface to get nsIBrowser as it may be implemented in a custom element, r=paolo 2018-12-04 11:33:06 -05:00
Neil Deakin ef24d6e37e Bug 1492326, use Element helper methods in dom/layout instead of QueryInterface to get interface implementations that might be implemented by custom elements, r=paolo 2018-12-04 11:33:05 -05:00
Neil Deakin 90cfd345ef Bug 1492326, add helpers to Element to get nsIDOMXUL* and nsIBrowser interfaces implented by custom elements, r=peterv 2018-12-04 11:25:42 -05:00
Neil Deakin d2ed932b7c Bug 1492326, change methods of nsIDOMXUL* interfaces so that they return Elements to reduce usages as most callers want the return values as elements, r=peterv 2018-12-04 11:25:41 -05:00
Brindusan Cristian c706eee030 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-12-09 11:38:48 +02:00
Ehsan Akhgari 7040d79ff9 Bug 1510275 - Make sure that we only ever dispatch a single STATE_COOKIES_LOADED notification per top-level document r=baku
Differential Revision: https://phabricator.services.mozilla.com/D13849

--HG--
extra : moz-landing-system : lando
2018-12-08 20:19:16 +00:00
Noemi Erli a5c0369219 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-12-08 00:18:17 +02:00
Noemi Erli 793579d2b7 Merge inbound to mozilla-central. a=merge 2018-12-07 23:40:06 +02:00
Emilio Cobos Álvarez 6729b2a1c2 Bug 1511138 - Fix / update tests. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D13550
2018-12-07 14:23:31 -05:00
arthur.iakab 168846ee68 Backed out 5 changesets (bug 1511138) for causing eslint failure on SelectChild.jsm CLOSED TREE
Backed out changeset daee82295b3c (bug 1511138)
Backed out changeset d23c9c3e1566 (bug 1511138)
Backed out changeset a99600391704 (bug 1511138)
Backed out changeset 4ef293b90887 (bug 1511138)
Backed out changeset 4df286b234b3 (bug 1511138)
2018-12-07 20:55:24 +02:00
Emilio Cobos Álvarez 3767b3a6d1 Bug 1511138 - Fix / update tests. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D13550
2018-12-07 13:01:01 -05:00
Brian Birtles 1a15db9fdd Bug 1512678 - Simplify handling of previousBaseStyles in KeyframeEffect::EnsureBaseStyles; r=hiro
This should avoid a sometimes unnecessary heaps allocation and also avoids the
possibility of having a "none" previousBaseStyles.

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

--HG--
extra : moz-landing-system : lando
2018-12-07 17:28:29 +00:00
John Lin 9249bf1d0a Bug 1495053 - p3: implement MediaDrmCDMProxy::SetServerCertificate(). r=cpearce
Differential Revision: https://phabricator.services.mozilla.com/D7792

--HG--
extra : moz-landing-system : lando
2018-12-07 14:44:34 +00:00
John Lin 356abac240 Bug 1495053 - p2: add setServerCertificate() to Java/JNI proxy classes. r=cpearce
Differential Revision: https://phabricator.services.mozilla.com/D7791

--HG--
extra : moz-landing-system : lando
2018-12-07 14:44:10 +00:00
John Lin eb4a57903b Bug 1510424 - fix AAC and FLAC EME support configuration. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D13135

--HG--
extra : moz-landing-system : lando
2018-12-07 14:40:50 +00:00
Ehsan Akhgari e283953da8 Bug 1512179 - Fix a nullptr deref crash in ContentPermissionRequestBase::GetPrincipal() r=baku
Differential Revision: https://phabricator.services.mozilla.com/D13852

--HG--
extra : moz-landing-system : lando
2018-12-07 18:02:56 +00:00
Gijs Kruitbosch 0ad3fd36fa Bug 1503887 - clear focused window when Blur() is called and there's no docshell, presshell, or the focused element is no longer in the composed document r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D13655

--HG--
extra : moz-landing-system : lando
2018-12-07 09:00:28 +00:00
Nico Grunbaum 4380b01ee3 Bug 1512517 - update WebRTC stat deprecation messages r=jib
Update WebRTC stat deprecation messages which were originally targeting 65, which are now targeting 66.

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

--HG--
extra : moz-landing-system : lando
2018-12-06 21:48:31 +00:00
Brian Birtles 928d88aabb Bug 1433705 - Rename GetCurrentTime to GetCurrentTimeAsDuration; r=hiro
To avoid having to always work around conflicts with winbase.h.

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

--HG--
extra : moz-landing-system : lando
2018-12-06 22:16:48 +00:00
Brian Birtles 49c3fc1ad2 Bug 1488122 - Factor out type definition for base values hashmap; r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D13935

--HG--
extra : moz-landing-system : lando
2018-12-06 20:57:58 +00:00
Brian Birtles 4646c7c31e Bug 1488122 - Update additive filling animations when the base style changes; r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D13934

--HG--
extra : moz-landing-system : lando
2018-12-06 20:59:50 +00:00
Brian Birtles 7f652e687a Bug 1488122 - Rename KeyframeEffect::mBaseStyleValuesForServo to just mBaseValues; r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D13933

--HG--
extra : moz-landing-system : lando
2018-12-06 20:57:12 +00:00
Daniel Varga 860ad350dd Merge mozilla-central to autoland. a=merge
--HG--
extra : rebase_source : 8ee1e412347621306f50b7d0dd1d8121ddcd498e
2018-12-06 23:48:46 +02:00
Cosmin Sabou 42dba8ce7d Backed out 5 changesets (bug 1511138) for browser chrome failures on browser_selectpopup_colors.js. CLOSED TREE
Backed out changeset 65e99e6399b9 (bug 1511138)
Backed out changeset 5f5d1c50a342 (bug 1511138)
Backed out changeset e03afbff55f3 (bug 1511138)
Backed out changeset d2d3e7a822b5 (bug 1511138)
Backed out changeset e601a2fbd077 (bug 1511138)
2018-12-06 20:14:00 +02:00
Csoregi Natalia f5599eb934 Merge mozilla-central to mozilla-inbound. CLOSED TREE 2018-12-06 17:43:26 +02:00
Emilio Cobos Álvarez 8da7cb1c9b Bug 1511138 - Fix / update tests. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D13550
2018-12-06 10:33:29 -05:00
Natalia Csoregi 4f94342ed3 Bug 1403815 - Disable browser_test_toplevel_data_navigations.js on mac and linux debug for frequent failures. r=jmaher 2018-12-06 07:13:00 +02:00
Sylvestre Ledru eaf6089240 Bug 1511900 - Fix some wording r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D13712

--HG--
extra : moz-landing-system : lando
2018-12-05 20:00:57 +00:00
Olli Pettay 1ceeb71b80 Bug 1512256 - Move FragmentOrElement::mAttrs to Element, r=ehsan 2018-12-06 15:58:40 +02:00
Jan-Ivar Bruaroey 0979860740 Bug 1512197 - Temporary fix for incorrect sharing of MozPromiseHolder in MediaManager. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D13847

--HG--
extra : moz-landing-system : lando
2018-12-05 21:46:51 +00:00
Emilio Cobos Álvarez df6ab0194b Bug 1511570 - Make content-language invalidate style data. r=jfkthame
This is needed because content-language can affect the default
computed values for a given document.

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

--HG--
extra : moz-landing-system : lando
2018-12-04 18:44:40 +00:00
Daniel Stenberg 704416cc5c Bug 1503393 - adjust tests for localhost proxying r=mayhemer
--HG--
extra : rebase_source : 49fd0951c9bce6058a1a54a4772891aa28ebb354
extra : source : 52e8ef71af9b837be53b294d09381d70c5efceba
2018-12-03 16:28:14 +02:00
sotaro ba323650b7 Bug 1513699 - Disable SkiaGL on WebRender r=jrmuizel
Disable SkiaGL on WebRender, since there is a case that R8G8B8X8 is used, but WebRender does not support R8G8B8X8 yet. And SkiaGL is already disabled by Bug 1468801.

Differential Revision: https://phabricator.services.mozilla.com/D14366
2018-12-13 18:01:16 +09:00
Andrea Marchesini c7a7810165 Bug 1513890 - Get rid of x-moz-errormessage attribute, r=edgar 2018-12-15 09:54:02 +01:00
shindli 937fb2a5d8 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-12-05 23:36:55 +02:00
shindli 077738eeba Merge inbound to mozilla-central. a=merge 2018-12-05 23:33:31 +02:00
Jean-Yves Avenard 590f06d6e0 Bug 1509875 - P1. Retrieve extended profile from mp4parse. r=kinetik
Depends on D13765

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

--HG--
extra : moz-landing-system : lando
2018-12-05 16:54:21 +00:00
Botond Ballo a88fd1acef Bug 1511137 - Track more accurately when the main thread originates a resolution change. r=kats
The tracking is done using nsAtom origins, similarly to how updates to the
scroll offset are tracked.

Currently, APZ still uses some heuristics to deduce that the main thread
originated a resolution change in some cases, but the intention is to try
to remove those and rely only on this mechanism in the future.

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

--HG--
extra : moz-landing-system : lando
2018-12-05 16:29:18 +00:00
Lina Cambridge ac99a741ef Bug 1511974 - Set up the mock Push socket in `test_permissions.html` to avoid network connections. a=testonly
Differential Revision: https://phabricator.services.mozilla.com/D13828

--HG--
extra : moz-landing-system : lando
2018-12-05 16:46:48 +00:00
Qinghao_Jack_Song 12bc2f9591 Bug 1511454 - Migrate about:plugins to use Fluent for localization r=flod,Gijs,zbraniecki
Differential Revision: https://phabricator.services.mozilla.com/D13681

--HG--
extra : moz-landing-system : lando
2018-12-05 16:06:15 +00:00
Cosmin Sabou aa3555e89c Merge mozilla-central to mozilla-inbound. 2018-12-05 18:17:30 +02:00
Nika Layzell e1e08d3d11 Bug 1512085 - Don't overlap IDs between content and middleman process, r=bhackett
Differential Revision: https://phabricator.services.mozilla.com/D13763
2018-12-05 10:18:46 -05:00
Nika Layzell 614b663032 Bug 1510460 - Record the current WindowGlobal on ChromeBrowsingContext, r=farre
Differential Revision: https://phabricator.services.mozilla.com/D13156
2018-12-05 10:18:43 -05:00
Nika Layzell 1114608d6f Bug 1500950 - Expose rootFrameLoader on WindowGlobalParent, r=farre
This attribute was not exposed due to Bug 1489301.

Differential Revision: https://phabricator.services.mozilla.com/D9404
2018-12-05 10:18:39 -05:00
Nika Layzell f18502de7a Bug 1500949 - Include innerWindowId/outerWindowId in PWindowGlobal, r=farre
This will be useful as both an ID for PWindowGlobal, as well as a mechanism for
taking advantage of already synchronized information. As an example, LoadInfo
objects contain the inner window IDs of the window requesting the load, which
can now be used to obtain a reference to the corresponding WindowGlobalParent
in the parent process.

Differential Revision: https://phabricator.services.mozilla.com/D9396
2018-12-05 10:18:38 -05:00
Nika Layzell 554bfd2811 Bug 1500948 - Expose BrowsingContext on nsFrameLoader objects, r=farre
This should make BrowsingContext more usable by making it much easier to obtain
for a given frame or browser. BrowsingContext and nsFrameLoader should have
the same lifetime.

Differential Revision: https://phabricator.services.mozilla.com/D9395
2018-12-05 10:18:36 -05:00
Nika Layzell 91dd6c616f Bug 1500944 - Part 2: Expose WindowGlobal actors to Chrome JS, r=farre
This serves 2 purposes:
1. Provides an object corresponding to an inner window which Chrome JS can hold onto.
2. Provides the object to JS which Chrome JS per-window actors will be attached to.
3. Provides useful information to Chrome JS in the parent process.

Differential Revision: https://phabricator.services.mozilla.com/D9394
2018-12-05 10:18:34 -05:00
Nika Layzell b4954ede43 Bug 1500944 - Part 1: Store the set of active WindowGlobalParent objects in ChromeBrowsingContext, r=farre
This allows getting the set of all window globals for a given browsing context.
This is less useful at the moment as the active window global is not exposed as
such. That will be added as a follow-up.

Differential Revision: https://phabricator.services.mozilla.com/D9393
2018-12-05 10:18:33 -05:00
Nika Layzell 4e07a0c5f9 Bug 1487249 - Part 3: Add the WindowGlobal actor representing a single window global, r=bzbarsky
This actor can be used for communicating with individual frames, without
depending on walking the tree in the content process.

This is not yet complete. No tests have been written for it, the
WindowGlobalParent objects need to be exposed to chrome JS, and a form of JS
actors should be installed under them.

In addition, BrowsingContextChrome objects should be updated to allow access to
the current WindowGlobalParent in that context.

Differential Revision: https://phabricator.services.mozilla.com/D4623
2018-12-05 10:18:31 -05:00
Andreas Farre 1fc714c017 Bug 1510928 - Don't assert when setting opener to closed window. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D13529

--HG--
extra : moz-landing-system : lando
2018-12-05 12:21:17 +00:00
Ciure Andrei ed617be144 Backed out 2 changesets (bug 1512052)for causing build bustages CLOSED TREE
Backed out changeset 4773a3f46c22 (bug 1512052)
Backed out changeset 2f48c5afbe57 (bug 1512052)

--HG--
rename : browser/components/attribution/test/xpcshell/.eslintrc.js => browser/components/attribution/test/.eslintrc.js
2018-12-05 05:47:39 +02:00
Mark Banner 8256078237 Bug 1512052 - Add more .eslintrc.js files for test directories. r=mossop
Depends on D13745

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

--HG--
extra : moz-landing-system : lando
2018-12-04 22:27:35 +00:00
Adam Pucciano 3355b8f222 Bug 1508989 - Enable ESLint for dom/filesystem / (manual changes) r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D13632

--HG--
extra : moz-landing-system : lando
2018-12-05 02:25:02 +00:00
Adam Pucciano 244c269756 Bug 1508989 - Enable ESLint for dom/filesystem / (automatic changes) r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D13770

--HG--
extra : moz-landing-system : lando
2018-12-05 02:24:58 +00:00
Thomas Nguyen 367c91d575 Bug 1502678 - Add an automated test to test referrer header is sent correctly in target=_blank and rel=noopener. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D13236

--HG--
extra : moz-landing-system : lando
2018-11-30 14:19:12 +00:00
James Willcox 46b85d411a Bug 1506642 - Don't try to test for various Push interfaces on GeckoView r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D11661

--HG--
extra : moz-landing-system : lando
2018-12-10 22:19:26 +00:00
Edgar Chen 9c53a575d3 Bug 1500273 - Ensure backward focus navigation works in Shadow DOM; r=smaug
When entering into a Shadow DOM in backward navigation, the frame still points
to the last frame in Shadow DOM which could be a non-focusable frame, so move
the handling of backward navigation for Shadow DOM upward.

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

--HG--
extra : moz-landing-system : lando
2018-12-11 20:43:51 +00:00
Jean-Yves Avenard ed5b2cd92a Bug 1513227 - P2. Remove unused files. r=jolin
Depends on D14158

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

--HG--
extra : moz-landing-system : lando
2018-12-11 17:38:53 +00:00
Jean-Yves Avenard 7f7e06e3f1 Bug 1513227 - P1. Use correct constant to determine if HW decoding is enabled. r=jolin
Differential Revision: https://phabricator.services.mozilla.com/D14158

--HG--
extra : moz-landing-system : lando
2018-12-11 17:37:47 +00:00
Jean-Yves Avenard c9d5db990f Bug 1512456 - P10. Add missing return. r=baku
The missing return would have caused an assertion if OpenWindow had failed as you can't reject a promise twice.

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

--HG--
extra : moz-landing-system : lando
2018-12-11 12:05:03 +00:00
Jean-Yves Avenard bdddd3ed8a Bug 1512456 - P8. Use GenericNonExclusivePromise where needed. r=gerald,alwu
Those MozPromises are shared and must be made non-exclusive

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

--HG--
extra : moz-landing-system : lando
2018-12-11 10:47:01 +00:00
Jean-Yves Avenard b61cc66043 Bug 1512456 - P7. Chain promises so they can be exclusive. r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D14031

--HG--
extra : moz-landing-system : lando
2018-12-11 10:54:20 +00:00
Jean-Yves Avenard dc9ee1f6ee Bug 1512456 - P6. Tidy up some MozPromise usage. r=gerald
Make consistent use of MozPromise chaining where possible and remove unnecessary refcount.

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

--HG--
extra : moz-landing-system : lando
2018-12-11 10:54:48 +00:00
Jean-Yves Avenard 3d5c3c9538 Bug 1512456 - P4. Replace assert with MOZ_ASSERT. r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D14027

--HG--
extra : moz-landing-system : lando
2018-12-11 10:46:25 +00:00
Jean-Yves Avenard ebce26bb61 Bug 1512456 - P3. Minor cleanup usage of GenericPromise. r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D14026

--HG--
extra : moz-landing-system : lando
2018-12-11 10:46:21 +00:00
Jean-Yves Avenard cf0ff88211 Bug 1512456 - P1. Don't use GenericPromise with MediaSink. r=alwu
The VideoSink shares the AudioSink's own EndedPromise to notify its user that it has ended. As such, the MozPromise used must be non-exclusive.
Using the GenericPromise for such purpose only hid that requirement.

We also remove the MediaSink from the media namespace, and clarify the naming of some arguments and class members to accurately describe what they do.

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

--HG--
extra : moz-landing-system : lando
2018-12-11 10:44:51 +00:00
Jean-Yves Avenard 48517afae6 Bug 1512298 - Make IPDL MozPromise exclusive. r=gerald,froydnj
MozPromise most common use is to have an single or exclusive listener. By making the MozPromise generated by IPDL exclusive we can also use move semantics.

While at it, we also use move semantics for the ResponseRejectReason and via the callback's reject method so that the lambda used with the MozPromise::Then can be identical to the one used by the IPDL callback.
As it currently is, it provides no advantage over a copy as it's just an enum; however, this will facilitate future changes where it may not be.

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

--HG--
extra : moz-landing-system : lando
2018-12-11 19:22:26 +00:00
Timothy Guan-tin Chien 5f45d86bf7 Bug 1512696 - Pick up is attribute from XHTML element in XUL document r=smaug
This patch allow nsXULPrototypeElement to set mIsAtom when the namespace is in XHTML.

The value is needed by XULDocument::CreateElementFromPrototype() so we could properly
pass it to NS_NewHTMLElement().

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

--HG--
extra : moz-landing-system : lando
2018-12-10 21:19:35 +00:00
Dan Minor 71d10e00cf Bug 1497573 - Create desktop_capturer_cursor_composer_ lazily; r=ng
The webrtc.org capturer implementations do not allow Start to be called more
than once. Previously we worked around this by adding a Stop method that was
called from StopCapture. With this change, we instead free the capturer in
StopCapture and create or re-create it as needed from StartCapture or
FocusOnSelectedSource.

Depends on D14066

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

--HG--
extra : moz-landing-system : lando
2018-12-10 17:27:42 +00:00