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

1552 Коммитов

Автор SHA1 Сообщение Дата
Harry Twyford 8b8efc8503 Bug 1731146 - Manage built-in themes from BuiltInThemes.jsm and use it to defer installing colorway themes. r=dao,mixedpuppy
This creates a centralized place to manage built in themes. The main motivation for this is that we want to defer intalling built-in themes until after UI startup, but we need to ensure those themes are installed when about:addons is visited. This module is called from both BrowserGlue (for installation) and aboutaddons.js (to ensure installation). Also, built in themes handing is all over the place right now, and this centralizes it, which is nice.

This also creates a more-permanent pref for colorway themes. The rationale is that I could see Product wanting a ripcord on this project and I want to build that in from the start.

This approach has serious performance improvements over the baseline. Here is perfherder for the current approach of installing before UI startup: https://treeherder.mozilla.org/perfherder/compare?originalProject=try&originalRevision=82baacf0b728add88c7e262ecb68d3fbcd1bda5e&newProject=try&newRevision=169edd7e48e5a051e5d3cbfbd6caaab4c496cd98&framework=1&page=1&showOnlyImportant=1 and again for an early version of the approach in this patch (installation after UI startup, but before I moved things to LightweightThemeConsumer): https://treeherder.mozilla.org/perfherder/compare?originalProject=try&originalRevision=82baacf0b728add88c7e262ecb68d3fbcd1bda5e&newProject=try&newRevision=6c200f35430a6af87401bd21c8db95e28a568964&framework=1&page=1&showOnlyImportant=1.

Differential Revision: https://phabricator.services.mozilla.com/D126549
2021-09-29 23:08:45 +00:00
amy churchwell aa8d583f1c Bug 1729535 - Add monochromatic themes to about:addons#themes. r=harry,fluent-reviewers,mixedpuppy,flod
Differential Revision: https://phabricator.services.mozilla.com/D126401
2021-09-29 18:44:46 +00:00
Harry Twyford cbf8835783 Bug 1732957 - Update monochromatic theme ids to color-variant-colorway@mozilla.org. r=mixedpuppy,amy
This patch allows D126401 to add a test theme with ID test-colorway@mozilla.org to test the Colorways section in about:addons.

Differential Revision: https://phabricator.services.mozilla.com/D126820
2021-09-29 15:43:22 +00:00
Harry Twyford cee0305a2a Bug 1726437 - Add new monochromatic themes. r=dao,mixedpuppy
This is pretty much impossible to review as-is, so it may be more useful to review the script that made them. The repo is at https://github.com/htwyford/create-theme-script. parse-themes-script.js is the main script. It reads input.json. input.json is pulled from https://github.com/FirefoxUX/themes/blob/main/tokens/color/base.json, with some light edits to fix inconsistencies. The file in the FirefoxUX repo is an export of the colors in the Figma file: https://www.figma.com/file/xaRff6432QsirRftX8NZgb/MR2-Themes?node-id=86%3A17747.

The themes aren't perfect yet. For example, the text color in the Urlbar chiclet is sometimes wrong. They also don't consider the UX spec on badge colors, since UX is still actively updating that part of the spec. Since these themes are behind a pref, I think we should land it and fix the issues in followups. It will make it more clear what is changing when they're not being added en masse like this. Getting them in the tree ASAP also lets UX and QA get a head start on testing them.

Differential Revision: https://phabricator.services.mozilla.com/D125755
2021-09-21 13:32:58 +00:00
Harry Twyford 31b58b8bf6 Bug 1730262 - Add first monochromatic theme. r=desktop-theme-reviewers,dao,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D125283
2021-09-21 13:32:57 +00:00
Butkovits Atila 4b46b9b45b Backed out 3 changesets (bug 1719939, bug 1726437, bug 1730262) for causing failures on test_browserGlue_migration_ctrltab_recently_used_order.js.
Backed out changeset ea1653e9644f (bug 1719939)
Backed out changeset 01f90db715a7 (bug 1726437)
Backed out changeset c0e23b2acfbb (bug 1730262)
2021-09-21 05:15:31 +03:00
Junjie Ying 9b3839d3ba Bug 1719939 - Remove last fragments of code manually checking the browser.proton.enabled pref. r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D125345
2021-09-21 00:03:49 +00:00
Harry Twyford 393eadce50 Bug 1726437 - Add new monochromatic themes. r=dao,mixedpuppy
This is pretty much impossible to review as-is, so it may be more useful to review the script that made them. The repo is at https://github.com/htwyford/create-theme-script. parse-themes-script.js is the main script. It reads input.json. input.json is pulled from https://github.com/FirefoxUX/themes/blob/main/tokens/color/base.json, with some light edits to fix inconsistencies. The file in the FirefoxUX repo is an export of the colors in the Figma file: https://www.figma.com/file/xaRff6432QsirRftX8NZgb/MR2-Themes?node-id=86%3A17747.

The themes aren't perfect yet. For example, the text color in the Urlbar chiclet is sometimes wrong. They also don't consider the UX spec on badge colors, since UX is still actively updating that part of the spec. Since these themes are behind a pref, I think we should land it and fix the issues in followups. It will make it more clear what is changing when they're not being added en masse like this. Getting them in the tree ASAP also lets UX and QA get a head start on testing them.

Differential Revision: https://phabricator.services.mozilla.com/D125755
2021-09-20 19:27:52 +00:00
Harry Twyford 42b741a2fd Bug 1730262 - Add first monochromatic theme. r=desktop-theme-reviewers,dao,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D125283
2021-09-20 18:30:49 +00:00
Harry Twyford e84c71c45a Bug 1725468 - Add prototype monochromatic theme for UX iteration. r=Gijs,amy
Differential Revision: https://phabricator.services.mozilla.com/D122515
2021-08-18 13:13:38 +00:00
Narcis Beleuzu 4cccfbcb1f Backed out changeset 7546da95431a (bug 1725468) for screenshot failures on browser_controlCenter.js 2021-08-18 04:44:25 +03:00
Harry Twyford d74f421d6e Bug 1725468 - Add prototype monochromatic theme for UX iteration. r=Gijs,amy
Differential Revision: https://phabricator.services.mozilla.com/D122515
2021-08-17 23:28:31 +00:00
Luca Greco 3e16d1a31d Bug 1724718 - Abuse Report panel should fallback to extensionGeneric.svg on addons without an iconURL. r=Gijs
Some addons may not include an icon (e.g. static themes addons) and so the abuse report panel should
fallback to the extensionGeneric.svg.

Falling back to the extensionGeneric.svg is also needed to prevent a diagnostic crash triggered by
loading non existing resources while running the abuse report mochitests.

Differential Revision: https://phabricator.services.mozilla.com/D122207
2021-08-10 11:24:07 +00:00
William Durand b1c4ce35a8 Bug 1720845 - Remove the `extensions.webextPermissionPrompts` pref. r=rpl,robwu,asuth
This patch removes the `extensions.webextPermissionPrompts` pref as well as
`permissionPromptsEnabled` prop on `mozAddonManager`.

While working on this patch, we noticed that some of the `browser_webapi.js`
weren't testing anything for a while now. That has been fixed. In addition,
the `test_blocklistchange.js` file has been updated to handle the permissions
prompt.

Differential Revision: https://phabricator.services.mozilla.com/D121114
2021-07-30 14:25:24 +00:00
Michelle Goossens fc09f27525 Bug 1714462 - Part 2: Remove CSS rules using "not (-moz-proton)" in miscellaneous files r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D118594
2021-06-24 15:42:03 +00:00
Bernard Igiri 142c430968 Bug 1704669 - Deduplicate and consolidate checkmark icons across the tree r=mconley,desktop-theme-reviewers,Itiel
Replaced instances of success.svg with check.svg and removed success.svg.

Differential Revision: https://phabricator.services.mozilla.com/D118031
2021-06-22 17:19:40 +00:00
julianwels 4183efc71d Bug 1708717 - Updated about:addons default theme previews. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D118227
2021-06-22 09:47:52 +00:00
Shane Caraveo 5d0fc14d5e Bug 1706398 support internal command _execute_action r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D114028
2021-06-15 14:51:12 +00:00
Silke Hofmann a31f787c6c Bug 1481470 - Stop using xlink:href in SVG in toolkit/. r=nhnt11,desktop-theme-reviewers,harry
Differential Revision: https://phabricator.services.mozilla.com/D117207
2021-06-13 19:01:20 +00:00
Sonia Singla c2ffd0413b Bug 1661517 - Removed extensions.allowPrivateBrowsingByDefault preference. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D97094
2021-06-02 21:48:05 +00:00
Shane Caraveo 1b1c62b498 Bug 1658768 check permission before uninstalling an addon from about:addons r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D115304
2021-05-19 20:10:46 +00:00
Luca Greco db92ebb531 Bug 1709655 - Update other about:addons category icons and remove extensionGeneric.svg chrome url overrides. r=sfoster
Apparently the icon we use for the category-extensions.svg and for extensionGeneric.svg is using a custom mapping
configured in mozapps.inc.mn

This was a bit confusing because I was initially changing the svg content but without having the result that
I was expecting.

With the mapping before this change, the sidebar icon for the extension category and the addon cards for
extension without an icon were both mapped to the same icon (which was the filled one before this patch,
and we would have changed both to the outline icon if we do change the icon content without changing the
mapping as well).

In this patch:
- category-discover.svg content is changed to match the new highlight-20.svg icon
- category-themes.svg content is changed to match the new themes-20.svg icon
- category-extensions.svg content is changed to mach the new extension-20.svg icon
- a new category-plugins.svg file is added and its content set to match the new plugin-20.svg icon
- extensionGeneric.svg and extensions.svg content stays the same as they are on mozilla-central before this change
  but we do not map extensionGeneric.svg to category-extensions.svg anymore

It does seem also worth a mention that category-dictionaries.svg is still an svg icon with
viewBox and width/height set to 16, but it doesn't seem we do have yet a new 20x20 optimized icon
to replace this one.

Differential Revision: https://phabricator.services.mozilla.com/D114884
2021-05-13 14:31:10 +00:00
Luca Greco fe72ca1830 Bug 1709655 - Tweak 'Available Updates' badged dot position to be places on the top-end corner of the icon. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D114782
2021-05-13 14:31:10 +00:00
Luca Greco d004f27719 Bug 1709655 - Replaced --blue-50 with --in-content-accent-color to ensure about:addons badge color matches the expected Proton colors. r=sfoster
This patch does change the color of the "Available Updates" category button badged count and the badge dot
added to the addon card options button when the addon has a pending update in the list of addons to
`var(--in-content-accent-color)` to make sure it does match the accent color used elsewhere in the same page.

It is particularly easy to notice the colors mismatch when the active theme is dark and there are pending
updates, e.g. see the screenshot attached in the bug comments here:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1709655#c2

Depends on D114780

Differential Revision: https://phabricator.services.mozilla.com/D114781
2021-05-13 14:31:10 +00:00
Tomislav Jovanovic c5fa3a1d8d Bug 1708238 - Stop relying on messagemanager in ExtensionPolicyService r=robwu,geckoview-reviewers,agi
Patch mostly by Nika Layzell; test, some tweaks (and all bugs) by me.

Differential Revision: https://phabricator.services.mozilla.com/D114060
2021-05-10 16:55:09 +00:00
Mark Striemer 3110ac3ec8 Bug 1706155 - Set hover states for HCM common.css r=desktop-theme-reviewers,dao,morgan,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D113872
2021-05-10 16:31:27 +00:00
Andreea Pavel ea6620b07c Backed out changeset 8757d112fc04 (bug 1706155) for bc failures at browser_parsable_css.js on a CLOSED TREE 2021-05-08 03:19:31 +03:00
Mark Striemer 0480fc9ec0 Bug 1706155 - Set hover states for HCM common.css r=desktop-theme-reviewers,dao,morgan,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D113872
2021-05-07 23:24:59 +00:00
Andreea Pavel d27a810ad2 Backed out changeset 8a02c8fa7821 (bug 1706155) for failing browser_parsable_css.js on a CLOSED TREE 2021-05-08 00:50:40 +03:00
Mark Striemer 8ee31eee8c Bug 1706155 - Set hover states for HCM common.css r=desktop-theme-reviewers,dao,morgan,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D113872
2021-05-07 20:46:03 +00:00
William Durand e6e8559ef0 Bug 1709464 - Remove plus sign on install buttons in `about:addons`. r=robwu
This is how it looks with this patch applied:

{F2841569}

{F2841568}

Differential Revision: https://phabricator.services.mozilla.com/D114620
2021-05-07 19:33:28 +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
Samuel Grasse-Haroldsen a37ece54d8 Bug 1561538 - Render message when there are no addons. r=robwu,flod
Differential Revision: https://phabricator.services.mozilla.com/D106697
2021-04-20 13:03:01 +00:00
Emilio Cobos Álvarez b42ccb7de0 Bug 1705509 - Hide -moz-outline-radius behind a pref. r=mstange
This property does nothing since bug 315209 got implemented.

Every single user that I checked was doing the same math by hand, so
hooray for good defaults :-)

Differential Revision: https://phabricator.services.mozilla.com/D112253
2021-04-16 01:01:45 +00:00
Luca Greco d4f4d3269b Bug 1699225 - Add taar_enabled/taar_based extra vars to addonsManager telemetry. r=willdurand,robwu
- Added a new `taar_enabled` extra var to the `addonsManager.view` telemetry events
  (determine if the taar based recommendation were enabled when the view was being loaded)
- Added a new `taar_based` extra var to the `addonsManager.install_stats` and to the
  `addonsManager.action` "installFromRecommended" telemetry events
  (determine if the addon installed was manually curated or recommended by the taar
  system)
- Added a new test (browser_disco_taar_telemetry.js) to cover the values expected
  for the new extra vars under the related scenarios
  (taar recommendations enabled/disabled, installed taar recommended and manually
  curated addons).

Differential Revision: https://phabricator.services.mozilla.com/D108840
2021-04-14 10:48:08 +00:00
Tim Nguyen f2ed67fc70 Bug 1703487 - Bad alignment of about:addons menu in small window. r=extension-reviewers,rpl
Differential Revision: https://phabricator.services.mozilla.com/D111068
2021-04-07 10:51:11 +00:00
Tim Nguyen 99e31abc67 Bug 1703458 - Fix some theme issues after bug 1701448. r=desktop-theme-reviewers,Itiel
* Actions menu icons can be too large (on Windows for instance)
* panel list font on Windows is inconsistent in add-ons manager and about:logins
* Fix RTL background-position for about:addons menu icons

Differential Revision: https://phabricator.services.mozilla.com/D111054
2021-04-07 09:15:30 +00:00
David Parks c303331063 Bug 1682030 - Remove CTP option from about:addons r=mixedpuppy
As part of removing all NPAPI plugin support, CTP is no longer relevant (it does not apply to GMP plugins) so we remove the option from about:addons.

Differential Revision: https://phabricator.services.mozilla.com/D107154
2021-04-06 19:28:17 +00:00
David Parks 271e591cdf Bug 1682030 - Remove NPAPI blocklisting r=Gijs,jmathies,mixedpuppy
Removes the PluginProvider and NPAPI plugin blocklist handling as part of removing all NPAPI support.  This allows us to remove nsIPluginHost.

Differential Revision: https://phabricator.services.mozilla.com/D107148
2021-04-06 19:28:14 +00:00
Emilio Cobos Álvarez f2e8448ec4 Bug 1703229 - And fix a couple more in toolkit. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D110935
2021-04-06 14:11:58 +00:00
Csoregi Natalia d68661e2cc Backed out 24 changesets (bug 1682030) for bustage on ProcessHangMonitor.cpp and nsCOMPtr.h. CLOSED TREE
Backed out changeset 5b1644096477 (bug 1682030)
Backed out changeset 35ae60eea3c7 (bug 1682030)
Backed out changeset 3eca76a6d639 (bug 1682030)
Backed out changeset 259c45447ad9 (bug 1682030)
Backed out changeset de9222dc8c31 (bug 1682030)
Backed out changeset 2986c7e14349 (bug 1682030)
Backed out changeset 6af3410bdb93 (bug 1682030)
Backed out changeset 42b0621c2927 (bug 1682030)
Backed out changeset 366e3e371858 (bug 1682030)
Backed out changeset 9adb2865adea (bug 1682030)
Backed out changeset 6af6af3bc03a (bug 1682030)
Backed out changeset da94a91b35ae (bug 1682030)
Backed out changeset 9143da258d0e (bug 1682030)
Backed out changeset 5e20d06952ba (bug 1682030)
Backed out changeset 6253d7e1ce7d (bug 1682030)
Backed out changeset 0e06ddeea3e2 (bug 1682030)
Backed out changeset 9c58d57c9e44 (bug 1682030)
Backed out changeset e90edd89430e (bug 1682030)
Backed out changeset 5861b8166b10 (bug 1682030)
Backed out changeset b4b88cdc7993 (bug 1682030)
Backed out changeset b80054e9805c (bug 1682030)
Backed out changeset 580d857674c0 (bug 1682030)
Backed out changeset a9cdf93c2662 (bug 1682030)
Backed out changeset 9c9c8b4998e2 (bug 1682030)
2021-04-06 03:54:12 +03:00
David Parks c98afdb2a8 Bug 1682030 - Remove CTP option from about:addons r=mixedpuppy
As part of removing all NPAPI plugin support, CTP is no longer relevant (it does not apply to GMP plugins) so we remove the option from about:addons.

Differential Revision: https://phabricator.services.mozilla.com/D107154
2021-04-05 23:48:40 +00:00
David Parks 0e34d4d48b Bug 1682030 - Remove NPAPI blocklisting r=Gijs,jmathies,mixedpuppy
Removes the PluginProvider and NPAPI plugin blocklist handling as part of removing all NPAPI support.  This allows us to remove nsIPluginHost.

Differential Revision: https://phabricator.services.mozilla.com/D107148
2021-04-05 23:48:38 +00:00
Tim Nguyen 8a016c64aa Bug 1701448 - Tweak in-content page styling further for Proton. r=desktop-theme-reviewers,dao
* Update green color used for success
* Fix actions menulist alignment
* Make various elements use new accent colors
* Fix lack of border on HTML checkboxes
* Update various colors to proton colors
* Update input border-radius to 4px
* Update border colors

Differential Revision: https://phabricator.services.mozilla.com/D110033
2021-04-05 19:42:47 +00:00
Tim Nguyen 7a8b29607e Bug 1699917 - Make menu styles consistent & remove --panel-border-radius common.css variable. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D110742
2021-04-05 19:21:16 +00:00
Csoregi Natalia a359b4f2f6 Backed out 2 changesets (bug 1701448, bug 1699917) for failures on browser_parsable_css.js. CLOSED TREE
Backed out changeset 3693f90f395d (bug 1701448)
Backed out changeset 99ce41916bb2 (bug 1699917)
2021-04-05 22:08:42 +03:00
Tim Nguyen 7772ba544e Bug 1701448 - Tweak in-content page styling further for Proton. r=desktop-theme-reviewers,dao
* Update green color used for success
* Fix actions menulist alignment
* Make various elements use new accent colors
* Fix lack of border on HTML checkboxes
* Update various colors to proton colors
* Update input border-radius to 2px
* Update border colors

Differential Revision: https://phabricator.services.mozilla.com/D110033
2021-04-05 16:29:18 +00:00
Tim Nguyen da45497e72 Bug 1699917 - Make menu styles consistent & remove --panel-border-radius common.css variable. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D110742
2021-04-05 16:29:17 +00:00
Mark Striemer 355b6522d8 Bug 1690333 - Proton infobar styles r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D104585
2021-03-29 02:38:56 +00:00
Butkovits Atila e3f13578b0 Backed out changeset 1890d2ac5a43 (bug 1690333) for causing failures on test_bug509732.xhtml. CLOSED TREE 2021-03-29 02:56:02 +03:00