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

755873 Коммитов

Автор SHA1 Сообщение Дата
Harry Twyford d2fa31b615 Bug 1708799 - Set action text to title color on mouse hover. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D114026
2021-04-30 23:00:38 +00:00
emcminn 6c545cc8fb Bug 1705825 - Update proton onboarding background image and caption r=fluent-reviewers,Mardak,flod
Differential Revision: https://phabricator.services.mozilla.com/D113886
2021-04-30 22:37:29 +00:00
emcminn c247c53437 Bug 1708335 - Remove outline-L and yellow circle from welcome page of onboarding" r=pdahiya
Removes the outline-L and the yellow dot from the first page of onboarding.

Differential Revision: https://phabricator.services.mozilla.com/D113824
2021-04-30 22:11:40 +00:00
Mike Hommey 6aa8681545 Bug 1705324 - Enable CARGO_INCREMENTAL on local builds. r=firefox-build-system-reviewers,mhentges
irrespective of the optimization level. The code was previously using
the optimization level as a proxy for whether --enable-release is
enabled or not, which was invalidated by bug 1689284.

Differential Revision: https://phabricator.services.mozilla.com/D113730
2021-04-30 21:33:27 +00:00
Toshihito Kikuchi 643e02bdb1 Bug 1708822 - Handle a case where processMap did not have a corresponding entry. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D114020
2021-04-30 21:23:38 +00:00
Emma Malysz e0e495464b Bug 1707177, introduce notification icon for app menu button badge and apply it when update available r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D114022
2021-04-30 21:20:29 +00:00
Jared Wein d3e13d3fee Bug 1708781 - Update 'Error' and 'Delete' icons. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D114003
2021-04-30 21:16:36 +00:00
Mike Hommey fb2daa993e Bug 1708592 - Install clang-format via a toolchain artifact. r=sylvestre
(Drive-by) Similar to what we just did for rustfmt and clippy.

Differential Revision: https://phabricator.services.mozilla.com/D113906
2021-04-30 21:09:12 +00:00
Mike Hommey dc5646ba96 Bug 1708592 - Install rustfmt and clippy via a toolchain artifact. r=sylvestre
This will tie the version used for CI lints to the version of rust used
for builds on CI.

Bonus point: we can now have rustfmt and clippy on Windows and mac,
which allows to run the corresponding mozlint unit tests on those
platforms.

Differential Revision: https://phabricator.services.mozilla.com/D113905
2021-04-30 21:09:12 +00:00
Mike Hommey c2a87c9b07 Bug 1708592 - Normalize paths when filtering in clippy and rustfmt lints. r=sylvestre
Without normalization, the paths don't match the filters on Windows.

Differential Revision: https://phabricator.services.mozilla.com/D113904
2021-04-30 21:09:12 +00:00
Mike Hommey 2badf48dc0 Bug 1708592 - Package clippy in the rust toolchain artifact. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D113903
2021-04-30 21:09:11 +00:00
Mike Hommey f2dcdd5390 Bug 1708592 - Get tools from MOZ_FETCHES_DIR on automation. r=firefox-build-system-reviewers,mhentges
While here, remove the unused clippyProcess.config. And because we need
to manipulate `$PATH` before running `cargo`, use the same wrapping
function in `get_clippy_version`.

Differential Revision: https://phabricator.services.mozilla.com/D113902
2021-04-30 21:09:11 +00:00
Ting-Yu Lin 1f9c1bdc99 Bug 1703304 - Compute transferred size suggestion only if a flex item is a replaced element. r=dholbert
If the flex item is a non-replaced element and its min-width/min-height
is 'auto', the spec has changed so that it has no transferred size
suggestion now. https://drafts.csswg.org/css-flexbox-1/#min-size-auto

This patch also updates WPT tests to fix
https://github.com/web-platform-tests/wpt/issues/27878

Differential Revision: https://phabricator.services.mozilla.com/D112830
2021-04-30 20:49:19 +00:00
Agi Sferro fec841bfe8 Bug 1698968 - Always send marionette-startup-requested r=whimboo,aklotz,webdriver-reviewers
Marionette enables itself only when --marionette is passed in. Given that
command line arguments can only be passed in using the debug configuration, it
is safe to send this event all the time.

Differential Revision: https://phabricator.services.mozilla.com/D113829
2021-04-30 20:48:37 +00:00
Matthew Gaudet 1051bc4658 Bug 1708236 - Remove --enable-private-methods and replace with --disable-private-methods r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D113708
2021-04-30 20:42:11 +00:00
Matthew Gaudet 69dbc2001b Bug 1708236 - Enable Private Methods Preference by default r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D113706
2021-04-30 20:42:11 +00:00
Matthew Gaudet 2bd9ba6041 Bug 1708235 - Remove shell flag requirement for private field tests r=yulia
As well, convert --enable-private-fields to --disable-private-fields

Differential Revision: https://phabricator.services.mozilla.com/D113705
2021-04-30 20:42:10 +00:00
Matthew Gaudet a945eb31d9 Bug 1708235 - Enable Private Fields Preference by default r=yulia,robwu
Differential Revision: https://phabricator.services.mozilla.com/D113704
2021-04-30 20:42:10 +00:00
Matthew Gaudet b58d822874 Bug 1708235 - Remove broken console-instant-eval test r=evilpie
This test was added in Bug 1651420, and then broken silently, due to an error
in the activation of the test by Bug 1653567. This edge case behaviour
shouldn't block us from landing private fields and methods

Tracking fixing this I have opened Bug 1708812.

Differential Revision: https://phabricator.services.mozilla.com/D114016
2021-04-30 20:42:09 +00:00
Henrik Skupin c0e2fc047e Bug 1708494 - [marionette] Make test_no_abort_by_user_prompt_in_other_tab a Mozilla only test. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D113979
2021-04-30 20:34:46 +00:00
Bas Schouten 075f140641 Bug 1708480: Move InitializeVirtualDesktopManagerTask outside of #ifdef ACCESSIBILITY. r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D113816
2021-04-30 20:33:23 +00:00
Shane Caraveo 8b91be585f Bug 1697059 require favicon to be in the extension xpi r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D108270
2021-04-30 20:31:41 +00:00
Shane Caraveo 7d11b0aa66 Bug 1687762 fix deprecated extension api use r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D111966
2021-04-30 20:31:40 +00:00
Shane Caraveo ee5b607262 Bug 1687762 version a few APIs removed in MV3 r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D108265
2021-04-30 20:31:40 +00:00
Shane Caraveo 5c4375a6f1 Bug 1696043 convert schema format for MV3 content_security_policy r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D105846
2021-04-30 20:31:39 +00:00
Shane Caraveo df8da18523 Bug 1693403 support manifest versioning in schema r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D105821
2021-04-30 20:31:39 +00:00
Punam Dahiya f37b5a80e0 Bug 1707749 - New user onboarding Import primary button label to use download source r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D113749
2021-04-30 20:27:48 +00:00
Harry Twyford 7e9451d277 Bug 1707756 - Part 2 - Update lightbulb icon. r=sfoster,webcompat-reviewers,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D113531
2021-04-30 20:24:33 +00:00
Harry Twyford 34d1433b5c Bug 1707756 - Part 1 - Update Urlbar tips to Proton styles. r=mak,dao
Differential Revision: https://phabricator.services.mozilla.com/D113530
2021-04-30 20:24:32 +00:00
Emma Malysz c3bf48b36d Bug 1706379: improve site identity css rules for smooth animation r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D113888
2021-04-30 20:23:17 +00:00
Alexandre Lissy 32332226a9 Bug 1683288 - Directly query OOMAllocationSize value and enable tests on linux/macOS r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D114009
2021-04-30 20:10:58 +00:00
Chris Martin 46297bb820 Bug 1708545 - Only disable GfxInfo::Init() with Win32k lockdown enabled r=bobowen
It looks like it was too hopeful that we would be able to get rid of all usage
of GfxInfo::Init() from content process. Since it looks like there may be
some rare cases where the browser asserts, we should preface the assertions
to only happen with Win32k lockdown enabled to allow the user to continue
to use their browser while foxfooding this feature.

Differential Revision: https://phabricator.services.mozilla.com/D113984
2021-04-30 19:54:39 +00:00
Luca Greco 166d68dc58 Bug 1707214 - Ensure we don't cache dataTransfer.files when accessed by expanded principals. r=mixedpuppy,nika
This doesn't seem a recent regression, the underlying issue is that we don't account for
the Extensions content scripts (and user scripts) as other principals that may be able
to intercept a drop event and then try to access the dataTransfer.files property before
the webpage does.

As the big inline comment inside DataTransferItemList::Files does explain, keeping a copy
of the FileList when accessed from a webpage principal is necessary for spec compliance,
while we don't cache it when it is being accessed by system principal code.
(see https://searchfox.org/mozilla-central/rev/6cbe34b441f7c7c29cd1e5f0e19c7000142f1423/dom/events/DataTransferItemList.cpp#200-242)

The changes in this patch are preventing us from caching the file list also when accessed
by expanded principals (which are never going to be used for any web page, but they are used
by both Extensions content scripts and Extensions user scripts), along with adding a new.
regression test to prevent it from regressing without being noticed.

Without this patch, when an extension content script or user script does intercept the
drop event and access the dataTransfer.files property, we cache the FileList created
for the ExpandedPrincipal associated to the Extension script and after that if the page
try to access it we do return null because the webpage principal doesn't subsume the
expanded principal (which is also why the issue isn't triggered if the webpage does
access it first). In debug build we crash because we hit the assertion in
DataTransferItemList::Files right before the earlier nullptr return we hit on release.

Differential Revision: https://phabricator.services.mozilla.com/D113555
2021-04-30 19:48:41 +00:00
Luca Greco ac945e38a7 Bug 1565854 - Abstract out about:addons Manage Shortcut shortcutKeyMap into a specialized DefaultMap subclass. r=mixedpuppy
This patch does prevent about:addons "Manage Extension Shortcuts" view to miss to catch
shortcut conflicts due to the special meaning of "Ctrl" on macOS systems, and its
implicit conversion into "Command":

- As the [documentation on MDN explicitly mention](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/commands#key_combinations):
> On Macs, "Ctrl" is interpreted as "Command", so if you actually need "Ctrl", specify "MacCtrl".

- and so ExtensionShortcuts.buildKeyFromShortcut calls ShortcutUtils.getModifiersAttribute ([1])
  which convert both Ctrl and Command are into the same accel modifier, which is what ends into the key element
  appended into the chrome window document.

- but we still have the original "Ctrl" as part of the shortcut string that
  ExtensionShortcuts keeps into its map of the defined shortcuts loaded from
  the extension manifests and from the one stored on disk (through ExtensionSettingsStore)

- when the about:addons "Manage Extension Shortcuts" view receive a new shortcut
  from the user, it does convert the accelKey property from the dom event received
  into "Command", and then it does check if the shortcut string exists in the
  map of the existing shortcuts.

- when the extension using the same shortcut does use "Ctrl+..." in its commands
  suggested shortcuts, shortcuts.js (the "Manage Extension Shortcuts" view implementation
  script) wouldn't find the "Command+..." shortcut in the map of the existing shortcuts
  and it would assume that it is not used and let the user to set a duplicate shortcut
  without any of the warnings or errors expected.

The approach in this patch does abstract out the shortcutKeyMap used in
the about:addons shortcuts.js script into a specialized DefaultMap subclass,
which does internally does a "platform specific" normalization of the given
shortcutString to make sure that we don't miss duplicated shortcuts on macOS
due to the implicit convertion of the Ctrl modifier key.

[1]: https://searchfox.org/mozilla-central/rev/3aef835f6cb12e607154d56d68726767172571e4/toolkit/modules/ShortcutUtils.jsm#185-212

Differential Revision: https://phabricator.services.mozilla.com/D113698
2021-04-30 19:39:27 +00:00
Shane Caraveo 2a1a938de9 Bug 1707038 update manual rtamo test with recommended addon and correct content format r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D113878
2021-04-30 19:26:59 +00:00
Jared Wein 7fdcbbbab4 Bug 1707076 - Draw the webextension-theme additonal backgrounds on Windows 7 and Windows 8 even if the header image isn't specified. r=desktop-theme-reviewers,Itiel
Differential Revision: https://phabricator.services.mozilla.com/D113169
2021-04-30 19:24:19 +00:00
Steven Michaud cfb3cfdc03 Bug 1577886 - Add support to for macOS __crash_info data to Breakpad. r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D112871
2021-04-30 19:22:33 +00:00
Noemi Erli 6753bd41d6 Backed out changeset d0e9b3b951f8 (bug 1701152) for causing failures in browser_toolbarButtonKeyPress.js CLOSED TREE 2021-04-30 22:05:05 +03:00
Csoregi Natalia 24bec48837 Backed out changeset 58e0c5dca806 (bug 1705484) for failures on test_ioutils_copy_move.html. CLOSED TREE 2021-04-30 21:26:01 +03:00
Harry Twyford c13165d08c Bug 1708530 - Use --urlbar-icon-fill-opacity everywhere in the Urlbar. r=mak,adw
There's a ridealong change here to fix up some rules around the local one-offs. There's a rule to make the bookmark button  when selected. I made that fill use --urlbar-icon-fill-opacity and also removed related rules for the tabs one-offs. Those were holdovers from when the tabs one-off was green.

Differential Revision: https://phabricator.services.mozilla.com/D113986
2021-04-30 18:18:28 +00:00
Barret Rennie 7570f6e94a Bug 1705484 - Remove OS.* from most IOUtils tests r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D113451
2021-04-30 18:00:42 +00:00
Tim D. Smith 872a1c9ae7 Bug 1641713 - Update documentation for default browser telemetry r=agashlin
Differential Revision: https://phabricator.services.mozilla.com/D113849
2021-04-30 17:58:51 +00:00
Jesse Schwartzentruber 24ef473acb Bug 1708409 - Include libFuzzer in xpcshell r=decoder
libFuzzer is already included in the firefox binary, so including it in
libxul is problematic.

Differential Revision: https://phabricator.services.mozilla.com/D113899
2021-04-30 17:46:15 +00:00
Markus Stange 806ce6ffd1 Bug 1707598 - Make sure that command events from activateItem only run once the nested event loop for the NSMenu has been exited. r=harry
This avoids bugs where a menu close request (cancelTrackingWithoutAnimation) would be dropped
if the command event did certain unexpected things. I'm not 100% sure what the exact
circumstances for the bad behavior were (see bug 1707598 comment 7 for details), but
this seems like the right thing to do anyway.

We also need to delay the call to MenuClosedAsync, because MenuClosedAsync flushes any pending
command runnables (so that the command event fires before popuphiding / popuphidden). However, we
can only delay the call to MenuClosedAsync if we know thath the entire menu closes, and not just a
submenu.

Differential Revision: https://phabricator.services.mozilla.com/D113734
2021-04-30 17:45:59 +00:00
Markus Stange 1e542500e5 Bug 1707598 - Let MenuClosed know when it's called after ActivateItem. r=harry
In the next patch, it will make different decisions for how to dispatch the
MenuClosedAsync event based on this flag.

Depends on D113987

Differential Revision: https://phabricator.services.mozilla.com/D113988
2021-04-30 17:45:59 +00:00
Markus Stange 775aafc5ba Bug 1707598 - Rename ActivateItemAndClose and call cancelTrackingWithoutAnimation in NativeMenuMac::ActivateItem. r=harry
This also makes sure we call ActivateItemAfterMenuClosing on the submenu that
immediately contains the activated menu item, and not on the root menu.
This usually doesn't make a difference, except in the case where something
calls FlushMenuClosedRunnable afterwards; in that case, before this patch, we
might accidentally fired the popuphidden event for the submenu before the
command event for the clicked item.

Depends on D113733

Differential Revision: https://phabricator.services.mozilla.com/D113987
2021-04-30 17:45:58 +00:00
Markus Stange 85bc33f0da Bug 1707598 - Add -[MOZMenuOpeningCoordinator runAfterMenuClosed:]. r=harry
This is a robust way to queue runnables which won't run until after the nested
event loop of the open NSMenu has been exited.
NS_DispatchToCurrentThread is not a reliable way to achieve that, because it
puts the runnables into the Gecko event loop, and there's nothing that prevents
us from potentially visiting the Gecko event loop inside the NSMenu's event loop,
even after cancelTracking(WithoutAnimation) has been called.

Differential Revision: https://phabricator.services.mozilla.com/D113733
2021-04-30 17:45:58 +00:00
Markus Stange 83880d0070 Bug 1707598 - Make DoCommandRunnable a regular runnable, not a cancelable runnable. r=harry
It doesn't need to be cancelable - the Run() method already nulls out mMenuItem,
so once Run() has been called once, it won't do anything on subsequent invocations.
This patch also improves safety a bit, by moving the pending command runnables
out of the mPendingCommandRunnables field before running them, so that the Run()
method has no way of invalidating the array that's being iterated over.

Differential Revision: https://phabricator.services.mozilla.com/D113732
2021-04-30 17:45:58 +00:00
Markus Stange a66f2dc703 Bug 1707598 - Release MOZMenuOpeningCoordinator on shutdown. r=harry
Otherwise the singleton would be leaked. It's not a lot of bytes, but a future
patch in this series is going to add an nsDeque member to this class, and
nsDeque has leak detection which would cause test failures in debug builds if
we didn't clean up MOZMenuOpeningCoordinator on shutdown.

Differential Revision: https://phabricator.services.mozilla.com/D113731
2021-04-30 17:45:57 +00:00
Markus Stange 1148a6198f Bug 1707598 - When opening a new menu just after closing an old menu, make sure we exit the nested event loop for the old NSMenu before we ask the new NSMenu to open. r=harry
On CI, where we open and close menu items in quick succession, we sometimes got
into a state where the new menu was opened while we were still in the old menu's
nested event loop. So we had the following sequence of events:

```
 - old menu +[NSMenu popUpContextMenu:withEvent:forView:]
   - nested event loop for old menu
     - old menu -[NSMenu cancelTrackingWithoutAnimation]
     - new menu +[NSMenu popUpContextMenu:withEvent:forView:]
       - nested event loop for new menu
         - new menu -[NSMenu cancelTrackingWithoutAnimation]
     - new menu's event loop is exited, but old menu's event loop remains on the
       stack
     - shutdown hang here
```

MOZMenuOpeningCoordinator makes sure that +[NSMenu popUpContextMenu:withEvent:forView:]
is always called in sequence, never in a nested fashion.

Differential Revision: https://phabricator.services.mozilla.com/D113373
2021-04-30 17:45:57 +00:00