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

760292 Коммитов

Автор SHA1 Сообщение Дата
Nicolas Silva 23ed6454cf Bug 1711648 - Move TileRange to the Box2D representation. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D117291
2021-06-10 08:08:06 +00:00
Nicolas Silva 32d212aa1f Bug 1711648 - Move TileRect to the Box2D representation. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D117290
2021-06-10 08:08:06 +00:00
Nicolas Silva 46f8718626 Bug 1711648 - Move PictureRect to the endpoint representation. r=gfx-reviewers,jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D116825
2021-06-10 08:08:05 +00:00
Nicolas Silva 6cf82a217d Bug 1711648 - Move some space conversion utilities from rect to box. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D116734
2021-06-10 08:08:05 +00:00
Jeremy Nuttall 9189120d88 Bug 1713530 - no longer use "else" after "return". r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D117393
2021-06-10 07:49:44 +00:00
Mark Banner e0b9b263bd Bug 1713325 - Exclude time when the user is idle from the page view time for history metadata. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D116275
2021-06-10 06:57:51 +00:00
Eden Chuang a876ffd06b Bug 1564235 - P6 Enable partial web-platform tests for navigationPreloadManager. r=dom-worker-reviewers,asuth
Depends on D116918

Differential Revision: https://phabricator.services.mozilla.com/D117288
2021-06-10 06:01:28 +00:00
Eden Chuang 144f9f3b9c Bug 1564235 - P5 Save NavigationPreload data into serviceworker.txt. r=dom-worker-reviewers,asuth
This patch implements the part of saving/loading NavigationPreload data into/from serviceworker.txt

Depends on D116917

Differential Revision: https://phabricator.services.mozilla.com/D116918
2021-06-10 06:01:28 +00:00
Eden Chuang f5b7f71fb3 Bug 1564235 - P4 Save NavigationPreload data in ServiceWorkerRegistration Info. r=dom-worker-reviewers,asuth
This patch implements the parent process' part of NavigationPreload API.
After receiving the IPC, using the corresponding ServiceWorkerRegistrationProxy to send data to the main thread, then saving the NavigationPreload data on ServiceWorkerRegistrationInfo.

Depends on D116916

Differential Revision: https://phabricator.services.mozilla.com/D116917
2021-06-10 06:01:27 +00:00
Eden Chuang 800daa7911 Bug 1564235 - P3 Create IPC for NavigationPreload in PServiceWorkerRegistration.ipdl. r=dom-worker-reviewers,asuth
This patch implements the IPC for NavigationPreload APIs.
The IPC methods are created on PServiceWorkerRegistration.

Depends on D116914

Differential Revision: https://phabricator.services.mozilla.com/D116916
2021-06-10 06:01:27 +00:00
Eden Chuang 415ab42b7d Bug 1564235 - P2 Create NavigationPreloadManager.webidl and implement webidl binding. r=dom-worker-reviewers,webidl,asuth
This patch creates NavigationPreloadManager.webidl and implements the webidl binding.

Depends on D116913

Differential Revision: https://phabricator.services.mozilla.com/D116914
2021-06-10 06:01:26 +00:00
Eden Chuang 57f3874d0c Bug 1564235 - P1 Pref for serviceworker.navigationPreload API. r=dom-worker-reviewers,asuth
Create a static preference for enable/disable NavigationPreload API.

Differential Revision: https://phabricator.services.mozilla.com/D116913
2021-06-10 06:01:26 +00:00
Nicolas Chevobbe 3ecabea51d Bug 1708106 - [devtools] Fix testActor usage in browser_inspector_highlighter-05.js. r=ochameau.
The test opens the inspector and retrieves the testActor,
then a navigation occurs and testActor is used to check
if the highlighter works.
When server-side target switching is enabled, the testActor
gets destroyed during the navigation, and when it throws
when we try to use it in the new document.
To fix this, we only retrieve the testActor once we navigated.

Differential Revision: https://phabricator.services.mozilla.com/D117267
2021-06-10 05:25:46 +00:00
Nicolas Chevobbe e3f2401076 Bug 1715448 - [devtools] Remove testActor zoomPageTo and changeZoomLevel methods. r=jdescottes.
These methods are replaced by a helper in shared-head that
sets the fullZoom property on the browsing context.
A new testActor method, waitForHighlighterUpdate, is added
so we can know when a given highlighter is updated (which
is something that was done in changeZoomLevel).

Differential Revision: https://phabricator.services.mozilla.com/D117263
2021-06-10 05:25:46 +00:00
Daniel Holbert 01a9895bd6 Bug 1695509 followup: adjust terminology in code-comment, for consistency. (no review, just minor change to a code-comment)
DONTBUILD

Differential Revision: https://phabricator.services.mozilla.com/D117390
2021-06-10 04:58:54 +00:00
Alexandru Michis c152381556 Backed out changeset 49f8a4acd649 (bug 1712674) for stack walking crashes on older Windows versions (bug 1715633).
CLOSED TREE
2021-06-10 11:39:30 +03:00
Alexandru Michis 9cd990dfdf Backed out 2 changesets (bug 1715300) for causing devtool and wpt failures.
Backed out changeset 29c787c733cf (bug 1715300)
Backed out changeset 435ccebf197a (bug 1715300)
2021-06-10 11:38:16 +03:00
Marian-Vasile Laza 5c483b46df Backed out 4 changesets (bug 1707954) for causing bc failures in ClearOnShutdown.cpp.
CLOSED TREE

Backed out changeset 7cb0db27236c (bug 1707954)
Backed out changeset fd52d202d10b (bug 1707954)
Backed out changeset 55586d8f7bf4 (bug 1707954)
Backed out changeset 49406bdac5ec (bug 1707954)
2021-06-10 09:13:45 +03:00
Daisuke Akatsuka ddb9da34fc Bug 1708263: Avoid flickering focus ring when focusing urlbar by clicking on edge of urlbar. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D116682
2021-06-10 04:42:36 +00:00
Kris Maglione 93948eda9f Bug 1643998: Check actual remote type along with PID when testing for privileged about: process. r=nika
We're getting some intermittent failures on automation where the PID does not
match the original privileged process in some checks. It isn't clear whether
that's because we're actually not in a privileged process, though, or whether
the original privileged process was simply replaced.

The new checks will tell us both things.

Differential Revision: https://phabricator.services.mozilla.com/D117361
2021-06-10 04:37:50 +00:00
Mike Hommey 8f9b77aa0b Bug 1715553 - Disable logalloc-replay check on code-coverage builds. r=firefox-build-system-reviewers,nalexander
It was already disabled for fuzzed code-coverage in bug 1695331. My
guess is that fuzzed code-coverage tripped on the extra allocations
due to the code-coverage runtime, but the code-coverage builds didn't
trip it because they also triggered an exception, which further
triggered a bug in the code with python3 (and somehow the fuzzed ccov
builds didn't trigger that). That bug effectively masked the failure.

Differential Revision: https://phabricator.services.mozilla.com/D117383
2021-06-10 03:55:46 +00:00
Andrew Osmond d8c6fe9d4d Bug 1715335 - Part 2. Enable reftest-snapshot tests on Linux WebRender. r=jmaher
Swaps out non-WebRender for WebRender.

Differential Revision: https://phabricator.services.mozilla.com/D117237
2021-06-10 02:48:39 +00:00
Andrew Osmond 3d3e5f6c3f Bug 1715335 - Part 1. Add annotations for reftest-snapshot. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D117236
2021-06-10 02:48:39 +00:00
Csoregi Natalia e84ffc5f5c Backed out 6 changesets (bug 1564235) for ServiceWorkerRegistrar failures. CLOSED TREE
Backed out changeset 78d268b961e6 (bug 1564235)
Backed out changeset 198a29232047 (bug 1564235)
Backed out changeset b1503c48e2f6 (bug 1564235)
Backed out changeset 679bed36bc0b (bug 1564235)
Backed out changeset 789ce1a19e9f (bug 1564235)
Backed out changeset a4cd096b0ba7 (bug 1564235)
2021-06-10 05:17:08 +03:00
Nika Layzell 84cc1811f1 Bug 1713890 - Relax gfx.{content,canvas}.asure.backends pref usage checks, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D117329
2021-06-10 01:36:35 +00:00
Eden Chuang 7406c4d713 Bug 1564235 - P6 Enable partial web-platform tests for navigationPreloadManager. r=dom-worker-reviewers,asuth
Depends on D116918

Differential Revision: https://phabricator.services.mozilla.com/D117288
2021-06-10 00:48:12 +00:00
Eden Chuang 36ec693d5f Bug 1564235 - P5 Save NavigationPreload data into serviceworker.txt. r=dom-worker-reviewers,asuth
This patch implements the part of saving/loading NavigationPreload data into/from serviceworker.txt

Depends on D116917

Differential Revision: https://phabricator.services.mozilla.com/D116918
2021-06-10 00:48:12 +00:00
Eden Chuang b7870e4605 Bug 1564235 - P4 Save NavigationPreload data in ServiceWorkerRegistration Info. r=dom-worker-reviewers,asuth
This patch implements the parent process' part of NavigationPreload API.
After receiving the IPC, using the corresponding ServiceWorkerRegistrationProxy to send data to the main thread, then saving the NavigationPreload data on ServiceWorkerRegistrationInfo.

Depends on D116916

Differential Revision: https://phabricator.services.mozilla.com/D116917
2021-06-10 00:48:11 +00:00
Eden Chuang 04cdcb2866 Bug 1564235 - P3 Create IPC for NavigationPreload in PServiceWorkerRegistration.ipdl. r=dom-worker-reviewers,asuth
This patch implements the IPC for NavigationPreload APIs.
The IPC methods are created on PServiceWorkerRegistration.

Depends on D116914

Differential Revision: https://phabricator.services.mozilla.com/D116916
2021-06-10 00:48:11 +00:00
Eden Chuang 5dd1338210 Bug 1564235 - P2 Create NavigationPreloadManager.webidl and implement webidl binding. r=dom-worker-reviewers,webidl,asuth
This patch creates NavigationPreloadManager.webidl and implements the webidl binding.

Depends on D116913

Differential Revision: https://phabricator.services.mozilla.com/D116914
2021-06-10 00:48:11 +00:00
Eden Chuang e64946a1a6 Bug 1564235 - P1 Pref for serviceworker.navigationPreload API. r=dom-worker-reviewers,asuth
Create a static preference for enable/disable NavigationPreload API.

Differential Revision: https://phabricator.services.mozilla.com/D116913
2021-06-10 00:48:10 +00:00
Daniel Holbert 0abd4dea7a Bug 1715656: Add <meta charset="utf-8"> tag to all helper HTML files in toolkit/components/printing/tests/, to avoid log-spam for undeclared encoding. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D117371
2021-06-10 00:11:40 +00:00
Masayuki Nakano 4bc0632c23 Bug 1713758 - Make everyone outside editor module use `EditorBase` instead of `TextEditor` if the instance can be an `HTMLEditor` instance r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D117119
2021-06-09 23:51:37 +00:00
Robert Mader a07b257da5 Bug 1715655 - Dispatch Vsync events with right/higher priority in VsyncParent, r=gfx-reviewers,jrmuizel
`EventQueuePriority::Vsync` was likely introduced for exactly this
use-case. This may reduce janks in certain animations.

Differential Revision: https://phabricator.services.mozilla.com/D117370
2021-06-09 23:45:48 +00:00
Jon Bauman 4f81223dbe Bug 1715648 - Update mp4parse-rust to 1bb484e. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D117373
2021-06-09 23:18:38 +00:00
Daniel Holbert 18c31e716e Bug 1695509: Don't inflate overflow areas with stale positions of pushed floats that we drained but weren't able to place. r=TYLin
Before this patch, there's an edge case where we may drain a pushed float (with
a stale position), and then discover that it won't fit in the current block (so
we push it and leave its position untouched), but we still inadvertently
include its rect in the current block's overflow areas.  This means we're
feeding stale/bogus position into the overflow areas, which can make them
unnecessarily huge.

This patch accounts for this by only considering overflow from floats that we
actually successfully placed, in ReflowPushedFloats.

(Also: this patch removes a stale bit of documentation about aLineLayout being
possibly-null in AddFloat.  In actuality, AddFloat has a fatal assertion that
mandates that this arg is non-null.)

Differential Revision: https://phabricator.services.mozilla.com/D117218
2021-06-09 23:13:08 +00:00
Geoff Lankow a412b17308 Bug 1715223 - Override telemetry products check in test_DownloadList.js. r=mtigley
This test is now failing on Thunderbird, which doesn't have the telemetry events in question.

Differential Revision: https://phabricator.services.mozilla.com/D117130
2021-06-09 23:10:52 +00:00
Dana Keeler dc0d26aaef Bug 1714263 - remove expired intermediate preloading telemetry r=rmf
Differential Revision: https://phabricator.services.mozilla.com/D117085
2021-06-09 22:33:13 +00:00
Dana Keeler 81b6f5967b Bug 1714263 - remove expired CRLITE_RESULT telemetry histogram r=rmf
Differential Revision: https://phabricator.services.mozilla.com/D117084
2021-06-09 22:33:12 +00:00
Masayuki Nakano e4b33674ec Bug 1713821 - Make `EditorEventListener::Blur()` ignore coming events whose target is an element, but the editor is in the design mode r=smaug
While initializing `HTMLEditor` for `designMode`, `blur` event for the
previously focused element will be fired after `HTMLEditor` initialization
because of the script blocker in `Document::EditingStateChanged()`:
https://searchfox.org/mozilla-central/rev/c0f286b1f541c675bbe052b21bdefa80d150ec35/dom/base/Document.cpp#5878,5891,5923

This causes `EditorEventListener::Blur()` calling
`EditorBase::FinalizeSelection()` to make the editor stop handling selection.
Therefore, if the design mode is turned on from an event listener run by a
user operation cannot make the caret visible.

This patch makes the `Blur()` ignore `blur` events whose target is element
in the design mode since the target of `blur` events should be handled in the
design mode is always the DOM window or the document node.

Differential Revision: https://phabricator.services.mozilla.com/D117268
2021-06-09 22:26:16 +00:00
Dana Keeler 16983654e9 Bug 1687570 - remove nsIX509Cert.keyUsages r=johannh,dveditz
nsIX509Cert.keyUsages is only used by the front-end. As of bug 1688703, the new
certificate viewer utility files can be used anywhere in the front-end to
decode certificates. Since this code is JS instead of C/C++, this is
preferrable from the standpoint of reducing attack surface.

Differential Revision: https://phabricator.services.mozilla.com/D113197
2021-06-09 21:54:57 +00:00
Glenn Watson adb325ac13 Bug 1714275 - Establish raster roots for picture cache tiles. r=gfx-reviewers,kvark
This will allow us to select either rasterizing the tiles with a
scale factor of 1.0 (for high performance mode) or at the current
scale of the pinch-zoom (for high quality mode).

Differential Revision: https://phabricator.services.mozilla.com/D116796
2021-06-09 21:41:01 +00:00
Aaron Klotz ab34bfc22f Bug 1707954: Part 4 - Build fixes to reflect EnsureMTA changes; r=Jamie
Now that we always have an MTA active, we don't need to explicitly try to
start it anymore. These locations in our source were doing so, which is now
not only redundant, but fails (since `EnsureMTA`'s default constructor is now
`private`).

We also fix a spot in `JumpListBuilder` where we need a lambda to capture by
reference to fix a static analysis issue.

Differential Revision: https://phabricator.services.mozilla.com/D113563
2021-06-09 21:38:15 +00:00
Aaron Klotz b16f77c62b Bug 1707954: Part 3 - Add eager MTA creation to mscom::EnsureMTA; r=Jamie
* We make `EnsureMTA`'s default constructor `private`, and `ProcessRuntime` a friend.
  `ProcessRuntime` calls this to eagerly create the MTA.
* The default constructor uses the new-ish `CoIncrementMTAUsage` to create the
  MTA without requiring a dedicated thread (when available). Otherwise we
  fall back to the traditional method. In the latter case, we synchronously
  wait for the initialization to complete so that we are guaranteed to have
  an MTA when we return.
* Some minor refactoring to make it easier to do the sync wait in the
  default constructor. I also renamed a couple of things just to make them
  more clear.

Differential Revision: https://phabricator.services.mozilla.com/D113562
2021-06-09 21:38:14 +00:00
Aaron Klotz 85f847e2f0 Bug 1707954: Part 2 - Update Launcher Process with mscom::ProcessRuntime changes; r=Jamie
Given the changes in part 1, we must now use the `ProcessCategory` variant of
`ProcessRuntime`'s constructors.

Differential Revision: https://phabricator.services.mozilla.com/D113561
2021-06-09 21:38:14 +00:00
Aaron Klotz 6ff70a37d9 Bug 1707954: Part 1 - Change mscom::ProcessRuntime to ensure MTA creation during startup; r=Jamie
This patch does the following:

* General cleanup:
  * More explicit restrictions of how/when the various constructors are available.
  * `InitializeSecurity` is made `static`, since it doesn't really manipulate instance variables.
  * We move some logic for resolving `CoInitializeEx` flags into `GetDesiredApartmentType`.
* Addition of `PostInit`:
  * This doesn't do anything at the moment, but since I'm already making a bunch
    of changes, I wanted to add this too. `PostInit` is a static method that
    is invoked once the `ProcessRuntime` is finished initializing, and, when
    present, the sandbox is fully enabled.
* We call `EnsureMTA`'s default constructor to eagerly bring up the MTA. This
  causes all background threads to implicitly become members of the MTA, which
  means that we can eliminate `CoInitializeEx` calls throughout our codebase,
  since they're slow and most developers do not have a clear understanding of
  what those functions actually do.
  * This also simplifies the COM initialization in sandboxed content processes
    with Win32K lockdown, since if our main thread is in the implicit MTA, we
    can immediately initialize ourselves without needing to punt that work
    over to the persistent MTA thread.

Differential Revision: https://phabricator.services.mozilla.com/D113560
2021-06-09 21:38:14 +00:00
Daisuke Akatsuka 68f6428735 Bug 1565448: Expand line-height to avoid cutting-off the text. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D116963
2021-06-09 21:37:07 +00:00
Brendan Dahl 1ea665289c Bug 1715638 - Update pdf.js to version 2.10.87 r=calixte
Differential Revision: https://phabricator.services.mozilla.com/D117365
2021-06-09 21:30:31 +00:00
Boris Chiou fd2fe22dc1 Bug 1340422 - Part 11: Enable pref on nightly. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D115753
2021-06-09 21:17:25 +00:00
Boris Chiou ab6b587bfe Bug 1340422 - Part 10: Use style for GetDistancesFromOriginToEndsOfVisibleSegments(). r=emilio
When using a mpath elememt which linked to a external path element, we use
GetDistancesFromOriginToEndsOfVisibleSegments() to do a quick check if we
really need to build the path (note: see
SVGMotionSMILAnimationFunction::RebuildPathAndVerticesFromMpathElem),
so we have to get the d property value from style in this function.

Differential Revision: https://phabricator.services.mozilla.com/D116920
2021-06-09 21:17:25 +00:00