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

87517 Коммитов

Автор SHA1 Сообщение Дата
Marco Bonardo cff612c7b4 Bug 1586681 - Ensure URIFIxup uses the right engine when there's a separate PB engine. r=Standard8,Gijs
Add a new FIXUP_FLAG_PRIVATE_CONTEXT to nsIURIFixup, make it use the default
private search engine when it's set.
Update consumers to pass the new flag when necessary.

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

--HG--
extra : moz-landing-system : lando
2019-10-12 12:37:51 +00:00
Perry Jiang c0d0830d63 Bug 1578919 - Don't allow AutoIPCStream to outlive its IPCStream r=asuth
In ServiceWorkerPrivateImpl::SendFetchEvent, a heap-allocated AutoIPCStream can
point to a stack-allocated IPCStream (part of an IPCInternalRequest). If this
IPCStream is destroyed before the AutoIPCStream, the AutoIPCStream will have a
dangling pointer (and this is the case if SendFetchEvent is called when the
Service Worker's state is "activating" rather than "activated").

This patch moves around the logic to handle the AutoIPCStream's lifetime to
ensure it its lifetime is within its IPCStream's lifetime. The larger issue
might be that AutoIPCStream doesn't have inherent lifetime guarantees (it'll
definitely outlive its IPCStream if it points to its embedded one, but it
doesn't own any external IPCStreams it might point to).

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

--HG--
extra : moz-landing-system : lando
2019-10-11 23:22:31 +00:00
Kris Maglione d49f0b4f15 Bug 1583400: Follow-up: Fix cycle collector assertion.
Differential Revision: https://phabricator.services.mozilla.com/D49034

--HG--
extra : moz-landing-system : lando
2019-10-11 23:22:52 +00:00
Kris Maglione bc437d3e44 Bug 1583400: Make IsCurrentInnerWindow Fission-compatible. r=bzbarsky
IsCurrentInnerWindow() should only return true when we are the current inner
of our BrowsingContext, which has a longer lifetime than individual
GlobalWindowOuter instances. In particular, if our BrowsingContext has no
GlobalWindowOuter hanging off it, that means that currently it's hosting an
inner window from some other process and we are not the current inner. If it
_does_ have a GlobalWindowOuter hanging off it, it's possible that this is not
the same as our mOuterWindow, if the BrowsingContext navigated to a different
site and then navigated back to our site.

Therefore, we need to check that we are the current inner of whatever the
BrowsingContext's current GlobalWindowOuter is, if it has one at all.

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

--HG--
extra : moz-landing-system : lando
2019-10-11 21:53:22 +00:00
shindli e7b5981fa2 Backed out 2 changesets (bug 1568883, bug 1568249) for causing c1 failures in dom/base/test/chrome/test_cpows.xul CLOSED TREE
Backed out changeset b1a2422a6fa0 (bug 1568249)
Backed out changeset d3f5f69f38a8 (bug 1568883)
2019-10-12 00:07:48 +03:00
Kris Maglione 456c394740 Bug 1587559 - Ignore noopener.newprocess preference under Fission. r=nika
It doesn't have any useful effect given the way Fission chooses processes, and
complicates the window.open logic in ways that are hard to maintain and cause
problems.

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

--HG--
extra : moz-landing-system : lando
2019-10-11 19:59:10 +00:00
Boris Zbarsky 9c62fd6061 Bug 1585684. Fix error message for permission failures when passing a union member. r=peterv
The new error message is still not great, but it's a lot better than having %s
as the description of what's going on.

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

--HG--
extra : moz-landing-system : lando
2019-10-09 09:22:05 +00:00
Kris Maglione babdf3507e Bug 1586887: Return WindowProxyHolder rather than BrowsingContext from Window WebIDL getters. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D48429

--HG--
extra : moz-landing-system : lando
2019-10-11 19:32:09 +00:00
Kris Maglione b45bfec73f Bug 1586911: Silence SHEntry assertion after local->remote->local iframe navigation. r=peterv
When we have a parser-created iframe which starts out in-process, transitions
to remote, and then transitions back to in-process, we create separate
DocShells for the first and last in-process loads. Since both are
network-created, and have the same child index, they both try to add
themselves as children to their parent's SHistory at the same index. And since
the entry for the first DocShell already exists at that index when we try to
add the second, that triggers an assertion.

This isn't really ideal, but it is expected given the current state of session
history under Fission. It should hopefully be solved more gracefully when the
Fission-aware session history rewrite is done, but in the mean time, I think
we should just ignore the conflict, since it's expected.

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

--HG--
extra : moz-landing-system : lando
2019-10-11 19:32:02 +00:00
Boris Zbarsky 092c3345a8 Bug 1568249. Remove all the LegacyQueryInterface machinery from Web IDL. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D48250

--HG--
extra : moz-landing-system : lando
2019-10-07 13:12:55 +00:00
Boris Zbarsky 226ca6e774 Bug 1568883. Remove the QI implementation from Web IDL elements. r=peterv,mossop
The XBL test is being removed because it was the only remaining consumer of
xbl's implements="interfacename" in the tree, and was triggering QI on elements
for that codepath.

I've verified that a try run that MOZ_CRASHes when the C++ binding
QueryInterface implementation is invoked is green with these changes.

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

--HG--
extra : moz-landing-system : lando
2019-10-09 09:19:32 +00:00
Boris Zbarsky 5f2a4a2274 Bug 1584630. Implement missing property use counters for HTMLDocument. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D47504

--HG--
extra : moz-landing-system : lando
2019-10-11 16:56:36 +00:00
Imanol Fernandez 2d92d3cf9a Bug 1587366 - Fix VRManagerParent::GetVRActiveStatus race condition: Notify VRActiveStatus after a the VREventObserver is created. r=rbarker,daoshengmu
Notify VRActiveStatus after a the VREventObserver is created to prevent the VRManagerParent::GetVRActiveStatus race condition.
Call VRManager::Shutdown() when the app goes to background instead of calling it in the foreground event due to the inactivity timer.

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

--HG--
extra : moz-landing-system : lando
2019-10-11 15:58:39 +00:00
Abdoulaye Oumar Ly c558bed276 Bug 1505916 - [Fission] Part 2: Make the fullscreen code work with oop iframes. r=NeilDeakin,smaug
e10s scenario:
1. An DOM element request fulscreen mode.
2. The request is redirected to the parent.
3. Parent enters fullscreen.
4. Parent notifies child that it has finished entering fullscreen.
5. Child goes fullscreen.
6. Then, child notifies parent that it has finished transitioning to fullscreen.
4. Finally, parent notify observers that fullscreen paint has finished.

Let's go into the details of how step 5 works in the above scenario.
5.a The element that made the request is set to fullscreen.
5.b Then, the document where that element lives is set to fullscreen as well as all of its ancestors until we reach the top level document. (see Document::ApplyFulscreen method)

Now in Fission world, we may have a request comming from an oop iframe. And it that case since we won't have  to ancestor documents living in different content process(es), we will first notiy those content processes (one after another from bottom to top) to go fullscreen. Once they all do, the content process where the request originated will be told to enter fullscreen.

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

--HG--
extra : moz-landing-system : lando
2019-10-11 14:30:28 +00:00
Mirko Brodesser b761e516f6 Bug 1587746: remove `RangeBoundaryBase::Set` and use constructor instead. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D48826

--HG--
extra : moz-landing-system : lando
2019-10-11 12:43:57 +00:00
Sebastian Hengst 0af4fd28ee Bug 1587836 - update permissions related Bugzilla components stored in moz.build files. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D48869

--HG--
extra : moz-landing-system : lando
2019-10-11 08:44:00 +00:00
John Dai f36d0e4438 Bug 1587490 - Skip dom/base/test/browser_messagemanager_unload.js when fission enable; r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D48854

--HG--
extra : moz-landing-system : lando
2019-10-10 23:47:59 +00:00
Mirko Brodesser 7ab5217f00 Bug 1587370: remove `RangeBoundaryBase::SetAfterRef` and use constructor instead. r=smaug
Simpler.

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

--HG--
extra : moz-landing-system : lando
2019-10-10 16:13:47 +00:00
Sylvestre Ledru 22e8ae9853 Bug 1587905 - Remove useless variable 'typeTest' declaration & assignation r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D48887

--HG--
extra : moz-landing-system : lando
2019-10-10 22:48:49 +00:00
Jan Varga 111821c2c6 Bug 1587931 - LSNG: Force kill database actors during shutdown; r=asuth
Database actors are force killed after 5 seconds if the child side doesn't
respond to the RequestAllowToClose message during shutdown.

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

--HG--
extra : moz-landing-system : lando
2019-10-11 03:03:01 +00:00
Emilio Cobos Álvarez 135388d85f Bug 1587457 - Remove Element::GetTokenList. r=bzbarsky
Looks like this used to be more generic, looking at:

https://hg.mozilla.org/mozilla-central/rev/263812990c503f6e238b33b2fd3314284ac1be3e

But now only specific element subclasses use it, and the token lists can just be
members in the relevant subclasses.

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

--HG--
extra : moz-landing-system : lando
2019-10-11 04:09:40 +00:00
Chun-Min Chang 1f93dd2664 Bug 1580602 - P3: Implement setActionHandler API. r=bzbarsky
Implement the setActionHandler interface. The API will be enabled behind
a pref.

Depends on D45457

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

--HG--
extra : moz-landing-system : lando
2019-10-11 02:47:54 +00:00
Chun-Min Chang f6890b3d06 Bug 1580602 - P2: Implement MediaMetadata API. r=bzbarsky
Implement the MediaMetadata interface. The API will be enabled behind a
pref.

Depends on D45456

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

--HG--
extra : moz-landing-system : lando
2019-10-10 19:18:30 +00:00
Chun-Min Chang a5fc04d902 Bug 1580602 - P1: Implement a blank MediaSession interface. r=bzbarsky
Create dummy implementations for the MediaSession interfaces. The files
are generated by running `./mach webidl-example` with necessary changes
to make it buildable.

The internal implementations are blank in this patch. They will be done
in the following patches.

Due to some spec issues, the final implementations only support some
basic operations like "play" and "pause".

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

--HG--
extra : moz-landing-system : lando
2019-10-10 19:18:30 +00:00
Jan Varga be1002620d Bug 1587263 - IDB: Use specialized directory locks for database maintenances; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D48658

--HG--
extra : moz-landing-system : lando
2019-10-11 03:03:01 +00:00
Ehsan Akhgari 94103f71d2 Bug 1546112 follow-up: Fix the comment in XMLDocument.webidl
Differential Revision: https://phabricator.services.mozilla.com/D48930

--HG--
extra : moz-landing-system : lando
2019-10-11 02:27:44 +00:00
Matt Woodrow 4cefa2fdd3 Bug 1578624 - P11: Add a flag to ask the parent to not actually load the URI when opening a window, since we'll do it ourselves anyway. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D47867

--HG--
extra : moz-landing-system : lando
2019-10-11 01:56:35 +00:00
Matt Woodrow a3e396d5bf Bug 1578624 - P10: Update crash reporter's URL annotation when loading a new URI from the parent. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D45485

--HG--
extra : moz-landing-system : lando
2019-10-11 02:28:08 +00:00
Matt Woodrow fe675abd66 Bug 1578624 - P6: Add LoadURI to BrowsingContext's webidl. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D44762

--HG--
extra : moz-landing-system : lando
2019-10-11 02:27:14 +00:00
Matt Woodrow 1acea42856 Bug 1578624 - P5: Add DisplayLoadError to BrowsingContext. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D44761

--HG--
extra : moz-landing-system : lando
2019-10-11 02:27:07 +00:00
Matt Woodrow 70bb7111fa Bug 1578624 - P4: Add an option to set mIsNavigating on the docshell when loading using BrowsingContext. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D44760

--HG--
extra : moz-landing-system : lando
2019-10-11 02:27:05 +00:00
Matt Woodrow 94578c8761 Bug 1578624 - P2: Extend nsDocShellLoadState for the extra options needed to describe front end loads. r=kmag,nika
Differential Revision: https://phabricator.services.mozilla.com/D44758

--HG--
extra : moz-landing-system : lando
2019-10-11 02:27:01 +00:00
Luca Greco 9da1e2339a Bug 1580561 - Part 2: Extend mozAddonManager API to allow AMO to handoff reports to the integrated abuse report panel. r=kmag,zombie,webidl,smaug
Depends on D46024

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

--HG--
extra : moz-landing-system : lando
2019-10-10 22:53:08 +00:00
Ehsan Akhgari 1fd1ce7882 Bug 1587922 - Remove the remnants of the showModalDialog code; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D48892

--HG--
extra : moz-landing-system : lando
2019-10-10 22:59:28 +00:00
Edgar Chen 5d70bb26af Bug 1587801 - Rewrite test_bug260264.html to use async/await; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D48848

--HG--
extra : moz-landing-system : lando
2019-10-10 15:13:01 +00:00
Edgar Chen 2ff9c5e0b4 Bug 1587801 - Rewrite test_bug260264.html to use add_task(); r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D48846

--HG--
extra : moz-landing-system : lando
2019-10-10 14:35:55 +00:00
Emilio Cobos Álvarez db6212cd4a Bug 1587599 - Remove some dead/useless code in nsAttrValue. r=bzbarsky
A forward declaration right before a definition is useless, and
ParseLazyURIValue is not implemented.

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

--HG--
extra : moz-landing-system : lando
2019-10-10 19:02:14 +00:00
Oana Pop Rus b7d78b54e2 Backed out 3 changesets (bug 1580602) for eslint in test_setactionhandler.html on a CLOSED TREE
Backed out changeset b4a5a6bc1d56 (bug 1580602)
Backed out changeset e70e3c090791 (bug 1580602)
Backed out changeset 2c90724f42fc (bug 1580602)
2019-10-10 22:14:48 +03:00
Chun-Min Chang 133cf491bb Bug 1580602 - P3: Implement setActionHandler API. r=bz
Implement the setActionHandler interface. The API will be enabled behind
a pref.

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

Depends on D45457

--HG--
extra : histedit_source : 43cf16795b27126a96441b117c9bbfdf2aea6aa9
2019-10-09 23:59:54 +03:00
Chun-Min Chang ba9959f768 Bug 1580602 - P2: Implement MediaMetadata API. r=bz
Implement the MediaMetadata interface. The API will be enabled behind a
pref.

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

Depends on D45456

--HG--
extra : histedit_source : a572d4abe88c2b4cd8c03a0fadc6c7b30a8c8798
2019-10-09 23:59:50 +03:00
Chun-Min Chang 00c83a8573 Bug 1580602 - P1: Implement a blank MediaSession interface. r=bz
Create dummy implementations for the MediaSession interfaces. The files
are generated by running `./mach webidl-example` with necessary changes
to make it buildable.

The internal implementations are blank in this patch. They will be done
in the following patches.

Due to some spec issues, the final implementations only support some
basic operations like "play" and "pause".

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

--HG--
extra : histedit_source : 2fc6e1e63347211cad3a19354a38040760c7ce0f
2019-10-10 00:14:49 +03:00
Jan Varga 9dd55053d6 Bug 1587258 - QM: Add support for creating specialized directory locks from existing directory locks; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D48657

--HG--
extra : moz-landing-system : lando
2019-10-10 14:55:53 +00:00
Ehsan Akhgari ff268df84b Bug 1546112 - Remove the code for XMLDocument.load/async; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D48877

--HG--
extra : moz-landing-system : lando
2019-10-10 18:20:34 +00:00
Andreas Pehrson 7064471d78 Bug 1586328 - Make Extract take an aNow argument to avoid pushing a blob the very first call. r=bryce
The first call to Extract() comes from MediaEncoderInitialized() and runs before
we dispatch the task to fire "start". With a very small timeslice (even 0), the
first call to Extract() could decide to push a blob, which is against the spec.

With this patch, the caller is in control of what time Extract() thinks "now"
is. This lets the particular call from MediaEncoderInitialized() gather data
into the blob through Extract() without being at risk of pushing a blob.

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

--HG--
extra : moz-landing-system : lando
2019-10-10 16:24:56 +00:00
Ehsan Akhgari 8d1f83f075 Bug 1587806 - Remove Document.loadBindingDocument; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D48849

--HG--
extra : moz-landing-system : lando
2019-10-10 14:21:28 +00:00
Emilio Cobos Álvarez ca0bd9ef74 Bug 1587767 - Assert that link flag handling is correct, and that NodeInfoChanged is only called on disconnected nodes. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D48830

--HG--
extra : moz-landing-system : lando
2019-10-10 15:39:20 +00:00
Emilio Cobos Álvarez 3c4c6733b5 Bug 1587797 - Simplify FlushPendingLinkUpdates. r=smaug
It's only called from a runnable nowadays.

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

--HG--
extra : moz-landing-system : lando
2019-10-10 14:29:18 +00:00
Daniel Varga b285b016fb Backed out changeset 3a52a67311e2 (bug 1580602) to reland with part2 and part3 2019-10-10 10:22:51 +03:00
Chun-Min Chang 8f0d0a884e Bug 1580602 - P1: Implement a blank MediaSession interface. r=bzbarsky
Create dummy implementations for the MediaSession interfaces. The files
are generated by running `./mach webidl-example` with necessary changes
to make it buildable.

The internal implementations are blank in this patch. They will be done
in the following patches.

Due to some spec issues, the final implementations only support some
basic operations like "play" and "pause".

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

--HG--
extra : moz-landing-system : lando
2019-10-09 21:14:49 +00:00
John Lin 1bc3a5e9be Bug 1509316 - p4: disable HW codec in WebRTC tests. r=pehrsons,drno
Differential Revision: https://phabricator.services.mozilla.com/D47713

--HG--
extra : moz-landing-system : lando
2019-10-09 23:15:56 +00:00