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

760104 Коммитов

Автор SHA1 Сообщение Дата
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
Boris Chiou 87c6ff875d Bug 1340422 - Part 9: Update devtool tests for auto-completion. r=jdescottes
Now we have d property, so the list of auto completion should include d
property when typing 'd'. We need to add more tabs or up/down keys to
choose the keyword we want.

Differential Revision: https://phabricator.services.mozilla.com/D115752
2021-06-09 21:17:24 +00:00
Boris Chiou 32d231dac6 Bug 1340422 - Part 8: Optimize attribute mapping by not parsing svg path string again. r=emilio
Unfortunately, we still have to convert the cpp version into rust version.
However, it's still better than parsing it again.

If we want to use the css parser to parse d attribute, we may need an
extra API to get the whole input as &str from Parser.
(expect_string() doesn't work because the SVG attribute value is not a quoted
string.) It seems Parser::slice() cannot get the whole input because we don't
know the end index of the whole input string. We should fix this in Bug 1714238.

Differential Revision: https://phabricator.services.mozilla.com/D115571
2021-06-09 21:17:24 +00:00
Boris Chiou 5918c183ff Bug 1340422 - Part 7: Notify style system when SMIL animation changes d attribute. r=emilio
So we update d property in the style system as well. This makes sure we
have the correct computed style and the correct rendering result.

Differential Revision: https://phabricator.services.mozilla.com/D115570
2021-06-09 21:17:23 +00:00
Boris Chiou 6c444066ce Bug 1340422 - Part 6: Factor out part of Elliptical arc implementation. r=emilio
Besides, add some conversion from double to float to make clang-tidy happy.

Differential Revision: https://phabricator.services.mozilla.com/D115569
2021-06-09 21:17:23 +00:00
Boris Chiou 81730e1d1a Bug 1340422 - Part 5: Factor out some utility inline functions in SVGPathData.cpp. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D115568
2021-06-09 21:17:23 +00:00
Boris Chiou 74fad503a5 Bug 1340422 - Part 4: Resolve SVG Marker points of path from CSS. r=emilio
We have to calculate markers from style.

Differential Revision: https://phabricator.services.mozilla.com/D115567
2021-06-09 21:17:22 +00:00
Boris Chiou 3159e083e9 Bug 1340422 - Part 3: Resolve SVG path from CSS. r=emilio
Use the style value when building the SVG path and its display items.
Besides, we should also invalid the cache when there are any CSS updates.

Differential Revision: https://phabricator.services.mozilla.com/D115566
2021-06-09 21:17:21 +00:00
Boris Chiou a1d053296d Bug 1340422 - Part 2: Map SVG d attribute to CSS. r=emilio
We parse the attribute and store it into CSS. We have tests already in
wpt, svg/path/property/*, but we cannot pass them for now because we
don't convert the relative commands into absolute commands. Those will
be fixed in Bug 1489392 once the spec issue is resolved.

Differential Revision: https://phabricator.services.mozilla.com/D81238
2021-06-09 21:17:21 +00:00
Boris Chiou d61e621388 Bug 1340422 - Part 1: Add SVG d property in CSS. r=emilio
Add d property for style system. d property only supports path() for now
and it has the functional notation without fill rule.

https://github.com/w3c/svgwg/issues/320#issuecomment-414462645

Differential Revision: https://phabricator.services.mozilla.com/D81237
2021-06-09 21:17:21 +00:00
cerkiewny 6751962b24 Bug 1688896 - alphabetically reorder switch statements in aboutLogins r=tgiles
Differential Revision: https://phabricator.services.mozilla.com/D117356
2021-06-09 21:12:16 +00:00
Noemi Erli 90b8bc9a03 Backed out 4 changesets (bug 1707954) for causing bustages in rules.mk CLOSED TREE
Backed out changeset fa23f9293250 (bug 1707954)
Backed out changeset e1b37839487b (bug 1707954)
Backed out changeset f72b810472fd (bug 1707954)
Backed out changeset fb4829011104 (bug 1707954)
2021-06-10 00:29:29 +03:00
Noemi Erli 9d1151db1f Backed out changeset 56aa4be0522c (bug 1710164) for causing bustages in nsLookAndFeel.mm 2021-06-10 00:25:28 +03:00
Harry Twyford dd78788280 Bug 1715619 - Enable widget.macos.support-dark-appearance by default on Nightly and Early Beta. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D117357
2021-06-09 21:01:06 +00:00
Hiroyuki Ikezoe 4273fb3f50 Bug 1706853 - Make GetFrameVisibleRectOnScreen return Nothing() if we haven't received OOP iframe's transformed rectangle from APZ. r=botond
With this change we no longer incorrectly consider there is no visible rect for
the OOP iframe where we haven't yet received the rectangle from APZ.

Differential Revision: https://phabricator.services.mozilla.com/D117260
2021-06-09 21:00:34 +00:00
Julian Descottes 40af870e80 Bug 1641551 - [devtools] Only check browsertoolbox preference for parentProcess targets r=ochameau,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D117077
2021-06-09 20:41:11 +00:00
Aaron Klotz 3dccb2d4b4 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 20:28:06 +00:00
Aaron Klotz 2bac3c5a84 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 20:28:06 +00:00
Aaron Klotz 43d03f255a 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 20:28:06 +00:00
Aaron Klotz e6aba31a8f 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 20:28:05 +00:00
surajeet310 4ee25b07d1 Bug 1714788 - Fixed more Sphinx warnings in 'mach doc' r=sylvestre DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D117225
2021-06-09 20:27:09 +00:00
Mike Conley 850133d78a Bug 1714254 - Bump PLACES_BOOKMARKS_TOOLBAR_RENDER_DELAY_MS probe expiry for a few more releases. r=dthayer, data-review=TravisLong
Differential Revision: https://phabricator.services.mozilla.com/D117348
2021-06-09 20:04:46 +00:00
Harry Twyford 61497005b9 Bug 1710164 - Use appropriate system colors for in-content pages in HCM on macOS. r=mstange,desktop-theme-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D115649
2021-06-09 20:02:14 +00:00
championshuttler 1f56db85d5 Bug 1715612 - Attempt to migrate try select to py3.r=mhentges
Differential Revision: https://phabricator.services.mozilla.com/D117276
2021-06-09 20:01:22 +00:00
Jan-Ivar Bruaroey cf18f45105 Bug 1703584 - Fix FoldEffect class in about:webrtc to not eat memory. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D117112
2021-06-09 19:49:42 +00:00
Christoph Kerschbaumer 2df9bc6544 Bug 1714950: Fix test loadWithHTTPSOnlyMode with https-first-mode enabled r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D116990
2021-06-09 19:42:32 +00:00
Csoregi Natalia f0d30bfbed Backed out changeset f7a108e738ee (bug 1712215) for failures on browser_parsable_css.js. CLOSED TREE 2021-06-09 23:27:29 +03:00
Csoregi Natalia d2e0d6f213 Backed out 14 changesets (bug 1682632) for mbu failures. CLOSED TREE
Backed out changeset e14034a66620 (bug 1682632)
Backed out changeset 3e47d00b7822 (bug 1682632)
Backed out changeset bf010d24288c (bug 1682632)
Backed out changeset 9e321d3b964b (bug 1682632)
Backed out changeset 36540900695b (bug 1682632)
Backed out changeset 8660a7bcc4e1 (bug 1682632)
Backed out changeset 89322328bf07 (bug 1682632)
Backed out changeset 1bc53013f8b3 (bug 1682632)
Backed out changeset afcbc61ae254 (bug 1682632)
Backed out changeset 6a9f2fdec9ff (bug 1682632)
Backed out changeset 017891ebb9dd (bug 1682632)
Backed out changeset f78f3e3c8fa4 (bug 1682632)
Backed out changeset 16d334e1548f (bug 1682632)
Backed out changeset 006dfdbfe446 (bug 1682632)
2021-06-09 23:16:13 +03:00
Csoregi Natalia cee413b886 Backed out 3 changesets (bug 1712557) for failures on browser_dbg-link-reload.js. CLOSED TREE
Backed out changeset 853833eded4d (bug 1712557)
Backed out changeset d7c5b966a457 (bug 1712557)
Backed out changeset 3bab93803617 (bug 1712557)
2021-06-09 23:07:51 +03:00
Eitan Isaacson 9869f145e1 Bug 1715151 - Check if we have a frame for HTMLLIAccessible when getting bounds. r=morgan
I'm not sure in what markup/style scenario a list item accessible
wouldn't have a frame, but would have a bullet. Apparently that can
happen in the wild. Added an assertion, hopefully we can trip it on
something reproducable in the future.

Differential Revision: https://phabricator.services.mozilla.com/D117347
2021-06-09 19:33:26 +00:00
Neil Deakin 8bcca30093 Bug 1713714, relabel bookmarks menu item as Manage Bookmarks, r=mconley,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D117193
2021-06-09 19:27:07 +00:00
Luca Greco 00d5ea766f Bug 1682632 - part3: Restrict Extension API webidl bindings to nightly builds. r=baku,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D104707
2021-06-09 19:20:45 +00:00
Luca Greco 4fe3388358 Bug 1682632 - part2.8: WebExtensions API request handling unit tests. r=baku,mixedpuppy
- Added a new set of xpcshell-tests in toolkit/components/extensions/test/xpcshell/webidl-api
  for unit tests related to the WebIDL bindings API request forwarding

Depends on D99886

Differential Revision: https://phabricator.services.mozilla.com/D99887
2021-06-09 19:20:45 +00:00
Luca Greco faadcf8b2b Bug 1682632 - part2.7: ExtensionMockAPI. r=baku
ExtensionMockAPI is a fake WebExtensions API, locked behind a pref and
used in unit tests related to the API requests handling and WebExtensionStub
methods without relying on a specific WebExtension API.

Depends on D84687

Differential Revision: https://phabricator.services.mozilla.com/D99886
2021-06-09 19:20:44 +00:00
Luca Greco 0f9ad4fefa Bug 1682632 - part2.6: ExtensionEventListener callListener sendResponse callback parameter. r=baku,sfink
Depends on D84686

Differential Revision: https://phabricator.services.mozilla.com/D84687
2021-06-09 19:20:44 +00:00
Luca Greco f41792fffb Bug 1682632 - part2.5: ExtensionPort passed as a ExtensionEventListener callListener parameter. r=baku
Depends on D84685

Differential Revision: https://phabricator.services.mozilla.com/D84686
2021-06-09 19:20:44 +00:00
Luca Greco 27acdbe87d Bug 1682632 - part2.4: ExtensionPort. r=baku
The ExtensionPort represents the webidl definitions of the runtime.Port WebExtensions API object.

A webidl dictionary will represent the serializable definition of the port properties, sent from
the API request handler to provide all the internal properties needed to create an instance
of the ExtensionPort webidl interface on the worker thread (which will be returned to the
extension code as the return value of the runtime.connect/connectNative methods and as a
parameter of the calls to the runtime.onConnect API event listeners).

Depends on D84684

Differential Revision: https://phabricator.services.mozilla.com/D84685
2021-06-09 19:20:43 +00:00
Luca Greco 1fe5785725 Bug 1682632 - part2.3: ExtensionEventListener callListener promised return value. r=baku
Depends on D80610

Differential Revision: https://phabricator.services.mozilla.com/D84684
2021-06-09 19:20:43 +00:00
Luca Greco 5176871f2b Bug 1682632 - part2.2: ExtensionEventListener xpcom interface base implementation. r=baku,sfink
Depends on D80609

Differential Revision: https://phabricator.services.mozilla.com/D80610
2021-06-09 19:20:42 +00:00