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

91578 Коммитов

Автор SHA1 Сообщение Дата
Nika Layzell d7433f922a Bug 1610850 - Part 2: Tests for replacing parent process BrowsingContext, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D67922

--HG--
extra : moz-landing-system : lando
2020-03-26 17:37:21 +00:00
Nika Layzell 07b8c7a5be Bug 1610850 - Part 1: Switch BrowsingContext when navigating parent to remote, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D67921

--HG--
extra : moz-landing-system : lando
2020-03-26 17:37:19 +00:00
Emilio Cobos Álvarez 87f03f5d28 Bug 1625172 - Use early return in LocationBase::SetURI. r=nika
Just a minor cleanup while I was reading through our navigation code.

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

--HG--
extra : moz-landing-system : lando
2020-03-26 15:29:53 +00:00
Kirk Steuber acc51b1485 Bug 1568994 - Add Update URL template to application.ini, XREAppData, and Services.appinfo r=glandium
This is being added to facilitate moving generation of the update URL to Rust (Bug 1567286). Once that has been completed, we should be able to remove the update URL from its current location in firefox.js so that it is not being duplicated in application.ini.

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

--HG--
extra : moz-landing-system : lando
2020-03-26 00:57:13 +00:00
Razvan Maries dd48ca6c20 Backed out changeset 8b091426bc10 (bug 1540776) for build bustages. CLOSED TREE 2020-03-26 16:25:45 +02:00
Chris Martin 65292a10f3 Bug 1540776 - Have parent send color profile to child during launch r=aosmond,jld,jfkthame
For Win32k lockdown, we need to remove the content processes' ability to
call GetICMProfileW(). Since it needs this to retrieve the output color
profile, a new synchronous call is added that allows it to request the
parent process to read this file on its behalf.

The contents of the file are now being cached as well, as this should help
ease some of the increased parent process I/O caused by the children not
being able to do this in their process anymore.

For performance reasons, during launch this information is passed directly
to the child through the SetXPCOMProcessAttributes call

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

--HG--
extra : moz-landing-system : lando
2020-03-26 13:44:56 +00:00
Sebastian Streich a6ee1fb955 Bug 1622042 - Remove Geturi in contentutils::specificAboutPage r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D66636

--HG--
extra : moz-landing-system : lando
2020-03-26 13:28:21 +00:00
Sebastian Streich 991480fa8b Bug 1622042 - Refactor nsContentutils::isjpdfjs r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D66635

--HG--
extra : moz-landing-system : lando
2020-03-26 13:20:40 +00:00
Sebastian Streich 70f27eb5e3 Bug 1622042 - Remove nsContentUtils::GetAsciiOrigin r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D66634

--HG--
extra : moz-landing-system : lando
2020-03-26 13:20:35 +00:00
Sebastian Streich f7280c333b Bug 1622042 - Refactor NsContentUtils:Allowsl10n r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D66633

--HG--
extra : moz-landing-system : lando
2020-03-26 13:18:40 +00:00
Emilio Cobos Álvarez fcff6b1a69 Bug 1624829 - Use FunctionRef for various Enumerate* callbacks. r=edgar
This avoids a bunch of ugly casts and void pointers, without much overhead
(unlike std::function or such).

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

--HG--
extra : moz-landing-system : lando
2020-03-26 12:44:47 +00:00
Mirko Brodesser c22f5acd0d Bug 1623858: part 14) Incorporate feedback of part 12. r=smaug
Forgot to update the review on Phabricator.

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

--HG--
extra : moz-landing-system : lando
2020-03-26 12:23:30 +00:00
Lars T Hansen ab52212be6 Bug 1620986 - Workers should read multi-value pref. r=bbouvier
Differential Revision: https://phabricator.services.mozilla.com/D68353

--HG--
extra : moz-landing-system : lando
2020-03-26 11:47:59 +00:00
Andreea Pavel 0493bf1a2f Bug 1601601 - disable test_rename_index.html on linux 18.04 r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D67950

--HG--
extra : moz-landing-system : lando
2020-03-26 09:12:08 +00:00
Jon Coppeard c1e3671c97 Bug 1624810 - Set the multi-zone JS holder flag on appropriate cycle collected classes r=mccr8
Set the flag on the affected classes, which are:
 - CallbackTimeoutHandler
 - nsJSArgArray
 - CallbackObject
 - Console
 - MessageEvent
 - IDBIndexCursor
 - ExtendableMessageEvent
 - JSPurpleBuffer

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

--HG--
extra : moz-landing-system : lando
2020-03-26 10:49:06 +00:00
Perry Jiang d3d780f56b Bug 1615014 - ensure performance storage/counter is set before being read r=dom-workers-and-storage-reviewers,asuth
WorkerThreadPrimaryRunnable possibly indirectly creates a
SendInitBackgroundRunnable (runs on the main thread), which causes a data race
with CompileScriptRunnable (runs on the worker thread) by having an
unsynchronized read/write of WorkerPrivate::mPerformanceCounter.

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

--HG--
extra : moz-landing-system : lando
2020-03-26 03:22:42 +00:00
Perry Jiang a6d30433e1 Bug 1584007 - FutureClientSourceParent should keep ClientManagerService alive r=asuth
The strong reference will be dropped when FutureClientSourceParent is removed,
and we guarantee that all FutureClientSourceParents will either be removed or
replaced with a ClientSourceParent (or at least this is a guarantee that's
supposed to be true).

Depends on D66529

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

--HG--
extra : moz-landing-system : lando
2020-03-24 15:52:37 +00:00
Perry Jiang 45fc75766f Bug 1584007 - let ClientChannelHelperParent manage FutureClientSourceParent lifetime r=dom-workers-and-storage-reviewers,mattwoodrow,asuth
ClientChannelHelperParent is the thing creating the ClientInfos which aren't
backed by existing ClientSources, so it may make sense for CCHP to tell the
ClientManagerService (CMS) to "expect" or "forget" a "future"
ClientSource(Parent).

When such a ClientInfo is created, CCHP notifies the CMS that a future
ClientSource may be created. This notification has to be observed before any
ClientHandles try to query CMS to a ClientSourceParent, which is the case
because the notification as well as ClientHandleParent constructors occur over
PBackground, and the notification sending method is called first.

CMS is told to forget the future ClientSource whenever a redirect occurs that
would result in the creation of a new ClientSource (i.e. a new ClientInfo). It's
also possible that the ClientInfo's LoadInfo's channel is cancelled. To account
for this, CHCP stores the most recent ClientInfo it's created and tells CMS
to _possibly_ forget the associated future ClientSource in its destructor. It's
possible that the channel completed its load, in which case this notification
is a no-op. This also relies on CHCP being destroyed after the reserved
ClientSource has a chance to both be created and register its
ClientSourceParent.

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

--HG--
extra : moz-landing-system : lando
2020-03-24 15:18:31 +00:00
Perry Jiang 4f2d95544d Bug 1584007 - allow ClientManager to register "future" ClientSources r=dom-workers-and-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D66520

--HG--
extra : moz-landing-system : lando
2020-03-24 15:18:29 +00:00
Perry Jiang 7dbfd819b4 Bug 1584007 - let ClientHandleParents wait on FutureClientSourceParents r=dom-workers-and-storage-reviewers,mattwoodrow,asuth
Differential Revision: https://phabricator.services.mozilla.com/D66154

--HG--
extra : moz-landing-system : lando
2020-03-24 15:16:57 +00:00
Perry Jiang 21f57afb8b Bug 1584007 - let ClientManagerService store FutureClientSourceParent r=dom-workers-and-storage-reviewers,mattwoodrow,asuth
The changes only make it possible for ClientManagerService to store
FutureClientSourceParents, but it will not actually store them until
following changesets.

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

--HG--
extra : moz-landing-system : lando
2020-03-24 15:16:50 +00:00
Perry Jiang 75c94e9b42 Bug 1584007 - initial implementation of FutureClientSourceParent r=dom-workers-and-storage-reviewers,mattwoodrow,asuth
Also implements SourceTableEntry and nsIDHasher to switch ClientManagerService's
nsDataHashTable to a mozilla::HashMap<nsID, SourceTableEntry> in following
changesets.

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

--HG--
extra : moz-landing-system : lando
2020-03-24 15:16:42 +00:00
Jon Bauman 6ec77fef76 Bug 1624057 - Update mp4parse-rust to 63ca8c6. r=kinetik
Also update the update-rust.sh script in a couple ways:
- Stop copying the source for mp4parse_fallible into the tree; use crates.io
- Include submodules in mp4parse-rust checkout; needed for tests
- Exclude unnecessary build.rs from mp4parse_fallible, it was causing problems
- Update mp4rust_capi/Cargo.toml patch to exclude cdylib. It's only necessary for test_ffi and causes build problems otherwise

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

--HG--
extra : moz-landing-system : lando
2020-03-26 02:08:51 +00:00
Bas Schouten 6458fb2f4f Bug 1563335 - Part 2: Add a pref for serializing all JS threads that access shared SABs. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D66953

--HG--
extra : moz-landing-system : lando
2020-03-26 00:29:48 +00:00
Bas Schouten 1bc21ff19c Bug 1563335 - Part 1: Implement mechanism to throttle JS execution. r=smaug,asuth
Differential Revision: https://phabricator.services.mozilla.com/D59321

--HG--
extra : moz-landing-system : lando
2020-03-26 00:36:24 +00:00
Dimi Lee 0ae6d671f6 Bug 1612349 - Use SandboxFlags in BrowsingContext when adding storage permission. r=timhuang,baku
Differential Revision: https://phabricator.services.mozilla.com/D66376

--HG--
extra : moz-landing-system : lando
2020-03-25 22:23:08 +00:00
David Graham 9b46b26017 Bug 1240285 - Forward focus only if label is not focusable r=edgar
Focus should remain on the label rather than forwarded to the labeled
element.

Co-Authored-By: Mu-An Chiou <me@muanchiou.com>

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

--HG--
extra : moz-landing-system : lando
2020-03-25 20:01:02 +00:00
Byron Campen [:bwc] a36e252242 Bug 1620308: Move RTCDTMFSender logic to a single c++ class. r=smaug,jib,mjf
Differential Revision: https://phabricator.services.mozilla.com/D67513

--HG--
extra : moz-landing-system : lando
2020-03-25 18:46:37 +00:00
Nika Layzell a1910253b1 Bug 1616991 - Rename WindowGlobalChild::WindowGlobal getter to reflect nullability, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D64660

--HG--
extra : moz-landing-system : lando
2020-03-23 23:03:50 +00:00
Christoph Kerschbaumer 1064ddd638 Bug 1457100: Make OBJECT elements inherit CSP if opaque. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D68044

--HG--
extra : moz-landing-system : lando
2020-03-25 17:10:01 +00:00
Subhamoy Sengupta 559d2b59e6 Bug 1624588 - dom/file/ipc sources now also build when not unified r=baku
Differential Revision: https://phabricator.services.mozilla.com/D68142

--HG--
extra : moz-landing-system : lando
2020-03-25 15:28:37 +00:00
Mirko Brodesser 7bf56223ef Bug 1623858: part 12) Factor determining "selectstart" event target out. r=smaug
Depends on D68008

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

--HG--
extra : moz-landing-system : lando
2020-03-25 15:39:37 +00:00
Mirko Brodesser 5b963b4881 Bug 1623858: part 11) Split `Selection::AddRangesForSelectableNodes`. r=smaug
Depends on D67848

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

--HG--
extra : moz-landing-system : lando
2020-03-25 15:36:54 +00:00
Bryce Seager van Dyk 7359d3c9bc Bug 1623661 - Fix comments in PChromiumCDM.ipdl r=alwu
This updates comments to no longer reference the removed CDM 9 interface. Prior
to these changes the comments should have referenced interfaces 9 + 10, but in
some cases the 10 was omitted, so those comments are corrected too.

Depends on D68046

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

--HG--
extra : moz-landing-system : lando
2020-03-24 18:09:43 +00:00
Bryce Seager van Dyk 39709a7876 Bug 1623661 - Remove the ability to instantiate CDM9. r=alwu
This patch removes the code that tries to instantiate CDM interface version 9.
This code is no longer needed as Widevine have moved away from this interface.
At the time of writing Chromium have not used this interface for more than a
year, and Mozilla have not shipped CDMs using the interface for at least 6
months.

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

--HG--
extra : moz-landing-system : lando
2020-03-24 18:39:00 +00:00
Sebastian Streich 283d6ba1ab Bug 1600051 - Remove geturi Call in ReferrerInfo.cpp r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D68028

--HG--
extra : moz-landing-system : lando
2020-03-25 14:38:42 +00:00
Tim Huang c9c24d6092 Bug 1612378 - Part 10: Move the ContentBlockingAllowList check in the Document::RequestStorageAccess() to use the IsOnContentBlockingAllowList flag. r=dimi,baku
After we move the IsOnContentBlockingAllowList to the CookieJarSettings.
We suppose to use this in the Document::RequestStorageAccess() since
this would be called in content processes.

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

--HG--
extra : moz-landing-system : lando
2020-03-25 13:22:14 +00:00
Tim Huang 3b9146bb4c Bug 1612378 - Part 5: Make the browser.ContentBlockingAllowListPrincipal to directly get the ContentBlockingAllowListPrincipal from the WindowGlobalParent. r=dimi,johannh,baku
Right now, we have a ContentBlockingAllowListPrincipal in the
WindowGlobalParent. So, the browse element can directly get this
principal from there. And we can stop sending the
ContentBlockingAllowListPrincipal from the content to parent when
OnLocationChange happens.

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

--HG--
extra : moz-landing-system : lando
2020-03-25 13:22:02 +00:00
Mirko Brodesser ec7cb2f8d3 Bug 1623858: part 10) Simplify `Selection::AddRangesForSelectableNodes`'s signature. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D67848

--HG--
extra : moz-landing-system : lando
2020-03-25 14:28:40 +00:00
Mihai Alexandru Michis b12b39cb9b Backed out changeset 34504844db03 (bug 1624588) for causing bustages in IPCBlobInputStreamParent.cpp
CLOSED TREE
2020-03-25 14:55:09 +02:00
Subhamoy Sengupta 8f9e4e8061 Bug 1624588 - dom/file/ipc sources now also build when not unified r=baku
Missing includes, namespace-related issues, and missing template instantiations added to make sources compile without unifying.

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

--HG--
extra : moz-landing-system : lando
2020-03-25 12:45:59 +00:00
Mihai Alexandru Michis a2417944d2 Backed out changeset 47e14ba39a78 (bug 1600051) for causing crashes in ReferrerInfo.cpp
CLOSED TREE
2020-03-25 14:39:18 +02:00
Sebastian Hengst bbcdad1d35 Bug 1607975 - Disabled dom/indexedDB/test/browser_bug839193.js on Windows 7. r=ttung DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D68096

--HG--
extra : moz-landing-system : lando
2020-03-25 12:22:53 +00:00
Sebastian Streich 0a160139eb Bug 1600051 - Remove geturi Call in ReferrerInfo.cpp r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D68028

--HG--
extra : moz-landing-system : lando
2020-03-25 11:40:48 +00:00
Jeff Gilbert b672f22f08 Bug 1624768 - Forbid multisampled unsized DEPTH_STENCIL. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D68135

--HG--
extra : moz-landing-system : lando
2020-03-25 05:40:54 +00:00
Brindusan Cristian 4d9cd18676 Backed out changeset 58d155b0b54a (bug 1624768) for mochitest failures at test_2_conformance2__renderbuffers__multisampled-depth-renderbuffer-initialization.html. 2020-03-25 06:00:00 +02:00
Jeff Gilbert 0e9c40e7e2 Bug 1624768 - Forbid multisampled unsized DEPTH_STENCIL. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D68135

--HG--
extra : moz-landing-system : lando
2020-03-25 01:40:41 +00:00
Karl Tomlinson 3c6e2c84d6 Bug 1492011 assert that ConsoleStructuredCloneData::mGlobal is cleared before ConsoleRunnable destruction r=baku
Depends on D68000

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

--HG--
extra : moz-landing-system : lando
2020-03-24 10:02:10 +00:00
Karl Tomlinson 701025e896 Bug 1492011 make ConsoleCallData::mRefCnt thread-safe r=baku
so that references can be released from the main thread and there is no need
to send a message to Console thread.

Depends on D67999

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

--HG--
extra : moz-landing-system : lando
2020-03-24 10:02:07 +00:00
Karl Tomlinson 8000fcef11 Bug 1492011 introduce a separate class to hold main-thread data associated with each Console r=baku
This provides that ConsoleRunnable no longer has a reference to Console, which
previously needed to be released through a message to the console thread.

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

--HG--
extra : moz-landing-system : lando
2020-03-25 01:06:16 +00:00
Karl Tomlinson 7a8ede2509 Bug 1492011 provide ID and Prefix on ConsoleCallData r=baku
to remove Console instance access from
PopulateConsoleNotificationInTheTargetScope().

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

--HG--
extra : moz-landing-system : lando
2020-03-25 00:22:34 +00:00
Karl Tomlinson 876034cbe8 Bug 1492011 change CreateStartTimerValue and CreateLogOrEndTimerValue from instance to class method r=baku
Differential Revision: https://phabricator.services.mozilla.com/D67997

--HG--
extra : moz-landing-system : lando
2020-03-25 00:51:50 +00:00
Karl Tomlinson 42e23b8bed Bug 1492011 change CreateCounterOrResetCounterValue from instance method to nonmember function with internal linkage r=baku
Depends on D67995

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

--HG--
extra : moz-landing-system : lando
2020-03-24 09:55:53 +00:00
Karl Tomlinson 74303d90fd Bug 1492011 change ProcessArguments from instance method to nonmember function with internal linkage r=baku
Depends on D67994

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

--HG--
extra : moz-landing-system : lando
2020-03-24 09:55:41 +00:00
Karl Tomlinson 08d7ab99aa Bug 1492011 provide group stack parameter to PopulateConsoleNotificationInTheTargetScope() r=baku
This will support removal of Console class usage from main thread.

Depends on D67993

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

--HG--
extra : moz-landing-system : lando
2020-03-24 09:04:00 +00:00
Karl Tomlinson 15ee47208b Bug 1492011 replace ArgumentsToValueList instance method with nsTArray::AppendElements() r=baku
Depends on D67992

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

--HG--
extra : moz-landing-system : lando
2020-03-24 09:02:16 +00:00
Karl Tomlinson 3ec04c339f Bug 1492011 change ShouldIncludeStackTrace from instance to class method r=baku
Depends on D67991

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

--HG--
extra : moz-landing-system : lando
2020-03-24 09:01:04 +00:00
Karl Tomlinson 36c19455ab Bug 1492011 Remove now-unused Console::mStatus r=baku
Depends on D67990

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

--HG--
extra : moz-landing-system : lando
2020-03-24 09:00:49 +00:00
Karl Tomlinson 2f45248784 Bug 1492011 Remove Console::mCallDataStoragePending r=baku
Now that ConsoleCallData has nothing to trace, mCallDataStoragePending has no
purpose.

Depends on D67989

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

--HG--
extra : moz-landing-system : lando
2020-03-24 08:58:51 +00:00
Karl Tomlinson ddd9e31d2f Bug 1492011 store raw JS arguments on Console separately from ConsoleCallData r=baku
so that all ConsoleCallData members can be destroyed on either thread.

ArgumentData::mArguments hold the same references that
ConsoleCallData::mCopiedArguments held previously.  The name change is because
the references are merely stored rather than any deep copy of objects.

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

--HG--
extra : moz-landing-system : lando
2020-03-25 00:47:15 +00:00
Karl Tomlinson f49d456f4a Bug 1492011 consolidate StoreProfileData and StoreConsoleData into a single method with arguments parameter r=baku
This removes a dependency on JS objects on ConsoleCallData, and a reference to
the arguments on ConsoleProfileWorkerRunnable.

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

--HG--
extra : moz-landing-system : lando
2020-03-24 08:31:48 +00:00
Daniel Huigens 7f0520ae9a Bug 1598278 - Check that Service Worker controls client in navigate() r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D66040

--HG--
extra : moz-landing-system : lando
2020-03-24 23:35:38 +00:00
Erik Nordin ca4fa23626 Bug 1621415 - Ensure adopted styles are applied when printing r=emilio
- Add functionality to clone adopted style sheets for printing.
- Add reftest to ensure that the document's adopted styles show in print.
- Add reftest to ensure that a shadow root's adopted styles show in print.

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

--HG--
extra : moz-landing-system : lando
2020-03-24 22:54:18 +00:00
Nika Layzell f5ff895032 Bug 1624711 - Traverse and Unlink MediaSession::mActionHandlers r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D68091

--HG--
extra : moz-landing-system : lando
2020-03-24 21:20:26 +00:00
Andrew McCreight 750c11df72 Bug 1570487 - Nuke Xray waivers for local outer window proxies on navigation. r=peterv
We nuke xray waivers when we navigate outer windows out of process,
because it doesn't make much sense to have a waiver in that case.
This patch makes the behavior for navigating to local outer windows
consistent, by also nuking remote window proxies. Hopefully that
won't break anything.

This is Nightly-only for now, because it might break addons.

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

--HG--
extra : moz-landing-system : lando
2020-03-24 19:24:03 +00:00
Kevin Jacobs 00c927efc6 Bug 1624128 - Update CK_GCM_PARAMS uses for PKCS11 v3.0 definition r=keeler
This patch initializes the ulIvBits member of CK_GCM_PARAMS, which is new in PKCS11 v3.

For libprio, we instead define NSS_PKCS11_2_0_COMPAT, which yields the old struct definition.

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

--HG--
extra : moz-landing-system : lando
2020-03-24 16:41:27 +00:00
Andrea Marchesini bd961ae216 Bug 1437057 - Expose the origin of a cookie to JS, r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D67589

--HG--
extra : moz-landing-system : lando
2020-03-24 16:47:57 +00:00
Kristen Wright 656a5d7c45 Bug 1622111 - Convert four security.mixed_content.* prefs in nsMixedContentBlocker r=njn
Converts `security.mixed_content.block_object_subrequest`, `security.mixed_content.block_display_content`, `security.mixed_content.upgrade_display_content`, and `security.mixed_content.block_active_content` to static prefs.

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

--HG--
extra : moz-landing-system : lando
2020-03-19 00:54:29 +00:00
Kristen Wright 1991a7758d Bug 1622111 - Convert dom.w3c_pointer_events.implicit_capture to a static pref. r=njn
Converts dom.w3c_pointer_events.implicit_capture to a static pref, removes the initializer in PointerEventHandler.

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

--HG--
extra : moz-landing-system : lando
2020-03-19 00:54:31 +00:00
Kristen Wright 4132959c5f bug 1622111 - Convert intl.ime.hack.on_ime_unaware_apps.fire_key_events_for_composition to static pref r=njn
Converts `intl.ime.hack.on_ime_unaware_apps.fire_key_events_for_composition` to a static pref.

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

--HG--
extra : moz-landing-system : lando
2020-03-19 00:54:13 +00:00
Kristen Wright 74a5665bf6 Bug 1622111 - Convert dom.datatransfer.mozAtAPIs to static pref. r=njn
Converts dom.datatransfer.mozAtAPIs to a static pref and adds the `do_not_use_directly` field, since the pref is used in combination with an additional check in `DataTransfer::MozAtAPIsEnabled`.

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

--HG--
extra : moz-landing-system : lando
2020-03-19 00:54:15 +00:00
Kristen Wright a2f61f37b1 Bug 1622111 - Convert dom.events.testing.asyncClipboard to static pref. r=njn
Converts dom.events.testing.asyncClipboard to a static pref. In its original usage, it called a getter that also added information to the log. This uses the do_not_use_directly field to indicate that the getter should still be used for logging.

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

--HG--
extra : moz-landing-system : lando
2020-03-19 00:54:18 +00:00
Kristen Wright 5094f72a18 Bug 1622111 - Convert security.data_uri.unique_opaque_origin to static pref and remove ClientPrefs. r=njn
Converts security.data_uri.unique_opaque_origin to a static pref. This pref was initialized by the ClientManager in ClientPrefs, so this commit also removes those files. Somehow this pref was getting added in VarCache twice, so it also removes the places where the pref was added in Networking.

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

--HG--
extra : moz-landing-system : lando
2020-03-23 16:08:52 +00:00
Kristen Wright d4f1210e56 Bug 1622111 - Convert dom.use_components_shim to static pref. r=njn
Converts dom.use_components_shim to a static pref and removes its `all.js` entry.

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

--HG--
extra : moz-landing-system : lando
2020-03-19 00:54:22 +00:00
Kristen Wright 6c22e40a82 Bug 1622111 - Convert three dom.vibrator.* prefs to static prefs r=njn
Converts dom.vibrator.enabled, dom.vibrator.max_vibrate_ms, and dom.vibrator.max_vibrate_list_len to static prefs. Removes their init function.

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

--HG--
extra : moz-landing-system : lando
2020-03-19 00:54:25 +00:00
Kristen Wright dbfec5d2b0 Bug 1622111 - Convert dom.animations.offscreen-throttling to static pref. r=njn
Converts dom.animations.offscreen-throttling to a static pref and removes the static function used to create the varcache pref.

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

--HG--
extra : moz-landing-system : lando
2020-03-23 19:43:34 +00:00
Paul Adenot c5169dcde5 Bug 1613070 - Add tracing markers to AudioWorklet code (real-time thread side). r=karlt
Moving the trace point for messages to the inner loop allow understanding what
pages are doing better (if they are creating lots of nodes or changing lots of
params, etc.). Also, it is important to be able to characterize `onmessage`
calls.

Having two tracepoints under `ProcessBlockOnPorts` allows gauging the buffer
preparation overhead. vs just the page's processing code.

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

--HG--
extra : moz-landing-system : lando
2020-03-24 13:21:54 +00:00
Sebastian Streich 2a1c2e48ec Bug 1623379 - nsMixedContentBlocker.cpp r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D67349

--HG--
extra : moz-landing-system : lando
2020-03-24 12:03:17 +00:00
Emilio Cobos Álvarez 91032e5d60 Bug 1624359 - Remove Document::mVisibleContentHeuristic. r=smaug
We added it so the perf team could run some experiments, and they were done but
the code was left...

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

--HG--
extra : moz-landing-system : lando
2020-03-24 12:27:54 +00:00
norah a1c0103334 Bug 1622663 - Removed redundant access specifier on line 74. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D68020

--HG--
extra : moz-landing-system : lando
2020-03-24 12:06:28 +00:00
Tom Schuster d65152a788 Bug 1622562 - Remove ErrorReport flags everywhere. r=mccr8
Depends on D67143

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

--HG--
extra : moz-landing-system : lando
2020-03-24 10:13:15 +00:00
Mihai Alexandru Michis b6435f7773 Backed out 5 changesets (bug 1584007) for causing crashes in ClientManagerService.
CLOSED TREE

Backed out changeset e8e6a6bb50ff (bug 1584007)
Backed out changeset 9468d92f2a55 (bug 1584007)
Backed out changeset 19ed74a7ea6f (bug 1584007)
Backed out changeset 6c35d3d0f747 (bug 1584007)
Backed out changeset ea67977a5cdd (bug 1584007)
2020-03-24 11:29:22 +02:00
Jan Varga 5ce327d92a Bug 1619948 - Put LSNG behind the EARLY_BETA_OR_EARLIER flag; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D67892

--HG--
extra : moz-landing-system : lando
2020-03-24 03:58:10 +00:00
Perry Jiang 373ae45772 Bug 1584007 - let ClientChannelHelperParent manage FutureClientSourceParent lifetime r=dom-workers-and-storage-reviewers,mattwoodrow,asuth
ClientChannelHelperParent is the thing creating the ClientInfos which aren't
backed by existing ClientSources, so it may make sense for CCHP to tell the
ClientManagerService (CMS) to "expect" or "forget" a "future"
ClientSource(Parent).

When such a ClientInfo is created, CCHP notifies the CMS that a future
ClientSource may be created. This notification has to be observed before any
ClientHandles try to query CMS to a ClientSourceParent, which is the case
because the notification as well as ClientHandleParent constructors occur over
PBackground, and the notification sending method is called first.

CMS is told to forget the future ClientSource whenever a redirect occurs that
would result in the creation of a new ClientSource (i.e. a new ClientInfo). It's
also possible that the ClientInfo's LoadInfo's channel is cancelled. To account
for this, CHCP stores the most recent ClientInfo it's created and tells CMS
to _possibly_ forget the associated future ClientSource in its destructor. It's
possible that the channel completed its load, in which case this notification
is a no-op. This also relies on CHCP being destroyed after the reserved
ClientSource has a chance to both be created and register its
ClientSourceParent.

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

--HG--
extra : moz-landing-system : lando
2020-03-24 02:34:20 +00:00
Perry Jiang 54f6dbaac3 Bug 1584007 - allow ClientManager to register "future" ClientSources r=dom-workers-and-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D66520

--HG--
extra : moz-landing-system : lando
2020-03-24 02:34:12 +00:00
Perry Jiang 6b14fd7ea2 Bug 1584007 - let ClientHandleParents wait on FutureClientSourceParents r=dom-workers-and-storage-reviewers,mattwoodrow,asuth
Differential Revision: https://phabricator.services.mozilla.com/D66154

--HG--
extra : moz-landing-system : lando
2020-03-24 02:34:10 +00:00
Perry Jiang d1cc3d5d84 Bug 1584007 - let ClientManagerService store FutureClientSourceParent r=dom-workers-and-storage-reviewers,mattwoodrow,asuth
The changes only make it possible for ClientManagerService to store
FutureClientSourceParents, but it will not actually store them until
following changesets.

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

--HG--
extra : moz-landing-system : lando
2020-03-24 02:34:35 +00:00
Perry Jiang b5b13cec75 Bug 1584007 - initial implementation of FutureClientSourceParent r=dom-workers-and-storage-reviewers,mattwoodrow,asuth
Also implements SourceTableEntry and nsIDHasher to switch ClientManagerService's
nsDataHashTable to a mozilla::HashMap<nsID, SourceTableEntry> in following
changesets.

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

--HG--
extra : moz-landing-system : lando
2020-03-24 02:33:54 +00:00
Perry Jiang 3d1637251d Bug 1622924 - destroy CheckedUnsafePtr before pointee deletes itself r=dom-workers-and-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D67427

--HG--
extra : moz-landing-system : lando
2020-03-23 14:51:59 +00:00
Makoto Kato 21e2657268 Bug 1618763 - Part 1. mHTMLInputInputmode should be lower case except to mozAwesomebar. r=masayuki
Since we cannot use HTMLInputElement.GetInputMode since we still support
mozAwesomebar, inputmode attribute isn't sanitized. Since I would like to reduce
comparing cost, it should be lower case except to mozAwesomebar.

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

--HG--
extra : moz-landing-system : lando
2020-03-23 10:36:25 +00:00
Jeff Walden 361725476a Bug 1624473 - Use #include <type_traits> in Codegen.py instead of #include "mozilla/TypeTraits.h", as a step toward removing the latter now that it's no longer needed. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D67951

--HG--
extra : moz-landing-system : lando
2020-03-23 23:05:55 +00:00
Botond Ballo 7c3a542e38 Bug 1623476 - Scroll element into view before simulating a click on it in test_bug500885.html. r=kats
The top-level document containing the iframe in which the test runs can be
scrolled by things that happen in previous tests (e.g. a zoomToFocusedInput
in a previous test), causing the target element to be outside of the visual
viewport.

After bug 1556556, event synthesization functions will no longer support
targeting elements outside the visual viewport.

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

--HG--
extra : moz-landing-system : lando
2020-03-23 22:24:42 +00:00
Botond Ballo 7208849141 Bug 1623476 - Disable zoom-to-focused-input behaviour in clipboard tests. r=kats
The tests don't have a reliable mechanism to wait for a potential zoom
animation to end, leading to flakiness due to a zoom animation form a previous
sub-case interfering with the current sub-case.

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

--HG--
extra : moz-landing-system : lando
2020-03-23 22:24:40 +00:00
Botond Ballo 3228bec83b Bug 1623476 - Adjust coordinate values in test_user_select.html. r=mstange
The coordinate values are chosen to target the first pixel of a target frame.
However, due to rounding error during the event synthesization code path,
they can miss the frame by a fraction of a pixel.

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

--HG--
extra : moz-landing-system : lando
2020-03-23 22:22:52 +00:00
alwu 8fe54c2cae Bug 1623950 - remove destroyed browsing context Id from the 'mMediaSessionInfoMap'. r=chunmin
If the browsing context which media session belongs to has been detroyed and it wasn't be removed correctly via the IPC message (that could happen if the browsing context was destroyed before ContentPatent receives the remove message [1]), then we should remove it and continue to iterate other elements.

[1] https://searchfox.org/mozilla-central/rev/202a285024f174c2d2bf2152d9cba90a03723eab/dom/ipc/ContentParent.cpp#5854-5856

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

--HG--
extra : moz-landing-system : lando
2020-03-23 22:07:08 +00:00
Dzmitry Malyshau dcf75e7f03 Bug 1622261 - Refactor the ID recycling to always cycle through the GPU process
Previously, we kept the object IDs managed on content side only.
The GPU side would work with given indices.
When an object is destroyed, we'd free the ID on the content side and signal the GPU to delete the object.
Problem is that on the GPU process the object may still be kept alive for as long as any dependants are alive.

What this change is doing - hooking up the callbacks to the *actual* freeing of IDs on the GPU side.
These callbacks end up in messages from WebGPUParent to WebGPUChild, and only then the IDs are freed
on the content side and able to be reused.

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

--HG--
extra : moz-landing-system : lando
2020-03-23 07:54:08 +00:00
Ryan Hunt e50c835e32 Bug 1612534 - Manually fix wasm/ jit-tests. r=lth
This commit includes all the manual changes needed to get 'wasm/' jit-tests
passing.

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

--HG--
extra : moz-landing-system : lando
2020-03-23 16:31:21 +00:00
Andrew McCreight 2110d31627 Bug 1582568 - Nuke CCWs for waivers for remote window proxies. r=peterv
Xray waivers for remote window proxies don't make much sense, so we nuke any
waiver when a window proxy navigates from local to remote. However, this xray
waiver can be the target of a CCW, and dead wrappers are not supposed to the
target of a CCW, so we need to find and nuke any CCWs targetting the waiver.

This requires fixing js::RemapWrapper so that it can be used to fix CCWs to
dead wrappers.

Hopefully this will fix a bunch of intermittent failures in
browser_windowProxy_transplant.js.

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

--HG--
extra : moz-landing-system : lando
2020-03-23 15:36:40 +00:00
Nika Layzell bd152e0d88 Bug 1614259 - Ensure BrowisngContexts are detached when nsDocShell is destroyed, r=farre
After bug 1582832, DocShell destruction and BrowsingContext detaching happen
in separate operations, leaving a gap where a DocShell has been destroyed, but
its BrowsingContext is still considered attached. During this gap, the usual
invariant that an in-process, attached BrowsingContext always has an
associated DOM window doesn't hold, nor do the usual invariants for outer
window forwarding security checks.

This patch fixes the detach timing so that a child BrowsingContext for a frame
which has been removed is always marked detached at the same time its DocShell
is destroyed.

Co-authored-by: Kris Maglione <maglione.k@gmail.com>

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

--HG--
extra : moz-landing-system : lando
2020-03-23 13:28:09 +00:00
Sylvestre Ledru 734f79b541 Bug 1624237 - Run misc-unused-using-decls - Remove useless declarations r=andi
$ ./mach static-analysis check --checks="-*, misc-unused-using-decls" --fix <path>

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

--HG--
extra : moz-landing-system : lando
2020-03-23 13:15:33 +00:00