Commit graph

59 commits

Author SHA1 Message Date
Mark Banner
2ffde1e92f Bug 1792341 - Migrate more toolkit/modules consumers to use direct ES module import. r=Gijs,webdriver-reviewers,perftest-reviewers,necko-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,sgalich,owlish,bytesized,AlexandruIonescu,whimboo,mconley,mixedpuppy
Mainly automated changes. Some manual ESLint fixes and whitespace cleanup.

Differential Revision: https://phabricator.services.mozilla.com/D158452
2022-10-18 11:21:26 +00:00
Tomislav Jovanovic
28b6c5c09f Bug 1777343 - Implement simple origin controls attention indicator, r=willdurand,desktop-theme-reviewers,Itiel
Differential Revision: https://phabricator.services.mozilla.com/D158476
2022-10-13 22:04:52 +00:00
Shane Caraveo
41e03a66c8 Bug 1783972 make browser actions pop out of overflow r=zombie,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D154179
2022-08-22 18:55:59 +00:00
William Durand
183b3ef354 Bug 1777483 - Part 4 - Add extension actions to the unified extensions context menu. r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D153096
2022-07-29 20:32:16 +00:00
kernp25
52565ac870 Bug 1654355 - Fix activeTab with middle click. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D143876
2022-04-28 08:35:41 +00:00
Luca Greco
a8452b1a7b Bug 1748546 - Add support for persistent events to ext-browserAction.js. r=mixedpuppy
Depends on D141663

Differential Revision: https://phabricator.services.mozilla.com/D139786
2022-03-25 20:38:36 +00:00
Rob Wu
d6767c7c9e Bug 1714846 - Really hide panels on hide, r=robwu,emilio
Differential Revision: https://phabricator.services.mozilla.com/D132574
2021-12-07 11:50:19 +00:00
Butkovits Atila
da4e10d9f4 Backed out changeset 6e298bdd0dd8 (bug 1714846) for causing assertion failures at CompositorBridgeParent.cpp. CLOSED TREE 2021-12-03 23:30:10 +02:00
Rob Wu
c30c452a2e Bug 1714846 - Really hide panels on hide, r=robwu,emilio
Differential Revision: https://phabricator.services.mozilla.com/D132574
2021-12-03 19:16:51 +00:00
Shane Caraveo
f2dce17402 Bug 1706398 support action context type for context menus r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D116858
2021-06-15 14:51:13 +00:00
Shane Caraveo
957cb7e5e2 Bug 1706398 implement action support and alias browser_action to action. r=robwu,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D113461
2021-06-15 14:51:12 +00:00
Agi Sferro
1abeebbf81 Bug 1625593 - Move activeTab functionality to toolkit. r=robwu,esawin
Differential Revision: https://phabricator.services.mozilla.com/D95420
2021-02-04 02:19:18 +00:00
Dorel Luca
9d50e72c4a Backed out changeset 100bc29bbb72 (bug 1625593) for Browser-chrome failures in gfx/layers/apz/test/mochitest/browser_test_scrollbar_in_extension_popup_window.js. CLOSED TREE 2021-01-30 01:13:18 +02:00
Agi Sferro
fce977af88 Bug 1625593 - Move activeTab functionality to toolkit. r=robwu,esawin
Differential Revision: https://phabricator.services.mozilla.com/D95420
2021-01-29 19:07:55 +00:00
Dave Townsend
e07f989e6c Bug 1620358: Gather telemetry on toolbar state. r=Gijs,zombie
Differential Revision: https://phabricator.services.mozilla.com/D78393
2020-06-16 21:06:15 +00:00
Agi Sferro
46ba797423 Bug 1530402 - Refactor desktop's ext-{page,browser}Action. r=mixedpuppy
This patch refactors Desktop's implementation of Page and Browser actions to
decouple the logic inside a common Action object that can be used to implement
actions on other platforms, like mobile, without re-implementing it.

A follow-up commit will use this common logic on the mobile implementation.

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

--HG--
extra : moz-landing-system : lando
2019-11-18 16:48:48 +00:00
Noemi Erli
9548dd980a Backed out 13 changesets (bug 1530402, bug 1533156) for causing raptor failures CLOSED TREE
Backed out changeset 6d7b7d22b0c6 (bug 1530402)
Backed out changeset acea32ec5975 (bug 1530402)
Backed out changeset 597e32ad2f5b (bug 1530402)
Backed out changeset 352068fe68bc (bug 1530402)
Backed out changeset e0ae4f16f7ed (bug 1530402)
Backed out changeset 282b033c7daa (bug 1530402)
Backed out changeset 72274a5a821b (bug 1530402)
Backed out changeset 3d3366fe476f (bug 1530402)
Backed out changeset 7400c3fd2b5f (bug 1530402)
Backed out changeset 23d43a425641 (bug 1530402)
Backed out changeset 83b9603f5fa1 (bug 1530402)
Backed out changeset 50c50a80e881 (bug 1533156)
Backed out changeset 5975264fd34b (bug 1530402)

--HG--
rename : toolkit/components/extensions/schemas/browser_action.json => browser/components/extensions/schemas/browser_action.json
rename : toolkit/components/extensions/schemas/page_action.json => browser/components/extensions/schemas/page_action.json
extra : rebase_source : 551e88b6719692756499387e93f797454a336180
2019-11-15 18:57:20 +02:00
Agi Sferro
f300e5291b Bug 1530402 - Refactor desktop's ext-{page,browser}Action. r=mixedpuppy
This patch refactors Desktop's implementation of Page and Browser actions to
decouple the logic inside a common Action object that can be used to implement
actions on other platforms, like mobile, without re-implementing it.

A follow-up commit will use this common logic on the mobile implementation.

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

--HG--
extra : moz-landing-system : lando
2019-11-15 16:33:39 +00:00
Andreea Pavel
30f5e9486a Backed out 13 changesets (bug 1530402, bug 1533156) for failing test_ext_tabs_query.html on a CLOSED TREE
Backed out changeset aa9499a196e3 (bug 1530402)
Backed out changeset ce12e494a189 (bug 1530402)
Backed out changeset 1b053a203af9 (bug 1530402)
Backed out changeset f57bc0ee284b (bug 1530402)
Backed out changeset 701de7bcb484 (bug 1530402)
Backed out changeset ab7b21969769 (bug 1530402)
Backed out changeset c7b8cc91f245 (bug 1530402)
Backed out changeset e2be10dbad5e (bug 1530402)
Backed out changeset f52a8fedcded (bug 1530402)
Backed out changeset 4fcca36d5b3e (bug 1530402)
Backed out changeset 82b28001164b (bug 1530402)
Backed out changeset 1dc6a4ebc9e1 (bug 1533156)
Backed out changeset ae5ead19921d (bug 1530402)

--HG--
rename : toolkit/components/extensions/schemas/browser_action.json => browser/components/extensions/schemas/browser_action.json
rename : toolkit/components/extensions/schemas/page_action.json => browser/components/extensions/schemas/page_action.json
2019-11-15 05:48:23 +02:00
Agi Sferro
13a7622d26 Bug 1530402 - Refactor desktop's ext-{page,browser}Action. r=mixedpuppy
This patch refactors Desktop's implementation of Page and Browser actions to
decouple the logic inside a common Action object that can be used to implement
actions on other platforms, like mobile, without re-implementing it.

A follow-up commit will use this common logic on the mobile implementation.

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

--HG--
extra : moz-landing-system : lando
2019-11-14 19:08:33 +00:00
Csoregi Natalia
4cf34e2666 Backed out 13 changesets (bug 1530402, bug 1533156) for multiple failures e.g columnrule-linestyles.html and test_composite.html. CLOSED TREE
Backed out changeset 9e55fee783ff (bug 1530402)
Backed out changeset f6af9d6a5482 (bug 1530402)
Backed out changeset bf09025d6f98 (bug 1530402)
Backed out changeset 9717ba255826 (bug 1530402)
Backed out changeset e34768ee01db (bug 1530402)
Backed out changeset b540d7b34ef6 (bug 1530402)
Backed out changeset 126af041394b (bug 1530402)
Backed out changeset cf16e02e62cd (bug 1530402)
Backed out changeset 3638fcff5bed (bug 1530402)
Backed out changeset 9630bed0ca2c (bug 1530402)
Backed out changeset 1aa5898efa5f (bug 1530402)
Backed out changeset 7462bbe4e676 (bug 1533156)
Backed out changeset 536a4cac3ffe (bug 1530402)

--HG--
rename : toolkit/components/extensions/schemas/browser_action.json => browser/components/extensions/schemas/browser_action.json
rename : toolkit/components/extensions/schemas/page_action.json => browser/components/extensions/schemas/page_action.json
2019-11-14 03:46:37 +02:00
Agi Sferro
ae10f88165 Bug 1530402 - Refactor desktop's ext-{page,browser}Action. r=mixedpuppy
This patch refactors Desktop's implementation of Page and Browser actions to
decouple the logic inside a common Action object that can be used to implement
actions on other platforms, like mobile, without re-implementing it.

A follow-up commit will use this common logic on the mobile implementation.

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

--HG--
extra : moz-landing-system : lando
2019-11-13 20:28:56 +00:00
gfmcknight
79bcb52abe Bug 1405031 - Add middle-click and click modifiers to browserAction r=robwu,Gijs
and pageActions.

Before this change, browserActions and pageActions did not trigger
onClick events when middle-clicked, and no information on the button or
any modifiers were passed in the onClick event. With this change, middle
clicking triggers an event, and a clickData object is passed in the
onClick event, with the button and a list of modifiers.

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

--HG--
extra : moz-landing-system : lando
2019-10-28 15:33:11 +00:00
Bogdan Tara
ecffbb2d40 Backed out changeset 6c464eede88a (bug 1405031) for browser_ext_pageAction_click_types.js failures CLOSED TREE 2019-09-20 01:03:17 +03:00
gfmcknight
38ae518715 Bug 1405031 - Add middle-click and click modifiers to browserAction r=robwu
and pageActions.

Before this change, browserActions and pageActions did not trigger
onClick events when middle-clicked, and no information on the button or
any modifiers were passed in the onClick event. With this change, middle
clicking triggers an event, and a clickData object is passed in the
onClick event, with the button and a list of modifiers.

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

--HG--
extra : moz-landing-system : lando
2019-09-19 17:06:22 +00:00
Coroiu Cristina
0a7189187c Backed out changeset 74f522fc33ae (bug 1405031) for browser-chrome failures at browser/components/extensions/test/browser/browser_ext_browserAction_click_types.js 2019-09-13 03:59:58 +03:00
gfmcknight
db38004fa2 Bug 1405031 - Add middle-click and click modifiers to browserAction r=robwu
and pageActions.

Before this change, browserActions and pageActions did not trigger
onClick events when middle-clicked, and no information on the button or
any modifiers were passed in the onClick event. With this change, middle
clicking triggers an event, and a clickData object is passed in the
onClick event, with the button and a list of modifiers.

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

--HG--
extra : moz-landing-system : lando
2019-09-12 20:41:24 +00:00
Tim Nguyen
b6d8cc41ad Bug 1569375 - Refactor browser panel CSS to reduce shadow DOM traversal after CE conversion. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D39594

--HG--
extra : moz-landing-system : lando
2019-07-31 15:22:08 +00:00
Sylvestre Ledru
90fac8fa22 Bug 1562642 - Part 3 - Add missing MPL2 headers in browser & toolkit r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D37217

--HG--
extra : moz-landing-system : lando
2019-07-10 12:03:37 +00:00
Andreea Pavel
b698eeec56 Backed out changeset 3d59cb02b6ff (bug 1562642) for eslint failure on a CLOSED TREE 2019-07-10 14:44:29 +03:00
Sylvestre Ledru
fd95abf361 Bug 1562642 - Part 3 - Add missing MPL2 headers in browser & toolkit r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D37217

--HG--
extra : moz-landing-system : lando
2019-07-10 11:15:25 +00:00
Victor Porof
ad522e3aae Bug 1561435 - Fix linting errors for browser/, r=standard8
# ignore-this-changeset

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

--HG--
extra : source : ff6aa88097df9836d93d6aa5554ffcd160f07167
extra : intermediate-source : 2130a9484ece03d835939359c4a07966aa8d790c
2019-06-28 20:02:37 +02:00
Victor Porof
1f830c96da Bug 1561435 - Format browser/components/, a=automatic-formatting
# ignore-this-changeset

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

--HG--
extra : source : d3afcafdce650a6f36cebbc126ee93b17f13cf52
2019-07-05 09:53:32 +02:00
Andrew Swan
a745ec6099 Bug 1519577 Convert toolbarbutton to a custom element r=surkov
Differential Revision: https://phabricator.services.mozilla.com/D31941

--HG--
extra : rebase_source : 3709ef713f1a7dc9fbc2d0ac97f16bea757fcd2b
2019-05-20 10:01:02 -07:00
Andrew Swan
a2a47acbcd Bug 1549192 Remove extension shutdownReason footgun r=kmag
Checking extension.shutdownReason for any purpose other than detecting
app shutdown is unreliable, since actions such as disabing, uninstalling,
etc. may happen ito an extension after it has shut down.  Remove the
temptation for api authors to write incorrect code by removing
extension.shutdownReason and replacing it with an isAppShutdown boolean
passed to shutdown handlers.

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

--HG--
extra : rebase_source : 07ff7710757150d011fec6bc3ed134c6509e9a12
2019-05-09 19:46:38 -07:00
Kris Maglione
e930b89c34 Bug 1514594: Part 3 - Change ChromeUtils.import API.
***
Bug 1514594: Part 3a - Change ChromeUtils.import to return an exports object; not pollute global. r=mccr8

This changes the behavior of ChromeUtils.import() to return an exports object,
rather than a module global, in all cases except when `null` is passed as a
second argument, and changes the default behavior not to pollute the global
scope with the module's exports. Thus, the following code written for the old
model:

  ChromeUtils.import("resource://gre/modules/Services.jsm");

is approximately the same as the following, in the new model:

  var {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");

Since the two behaviors are mutually incompatible, this patch will land with a
scripted rewrite to update all existing callers to use the new model rather
than the old.
***
Bug 1514594: Part 3b - Mass rewrite all JS code to use the new ChromeUtils.import API. rs=Gijs

This was done using the followng script:

https://bitbucket.org/kmaglione/m-c-rewrites/src/tip/processors/cu-import-exports.jsm
***
Bug 1514594: Part 3c - Update ESLint plugin for ChromeUtils.import API changes. r=Standard8

Differential Revision: https://phabricator.services.mozilla.com/D16747
***
Bug 1514594: Part 3d - Remove/fix hundreds of duplicate imports from sync tests. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16748
***
Bug 1514594: Part 3e - Remove no-op ChromeUtils.import() calls. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16749
***
Bug 1514594: Part 3f.1 - Cleanup various test corner cases after mass rewrite. r=Gijs
***
Bug 1514594: Part 3f.2 - Cleanup various non-test corner cases after mass rewrite. r=Gijs

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

--HG--
extra : rebase_source : 359574ee3064c90f33bf36c2ebe3159a24cc8895
extra : histedit_source : b93c8f42808b1599f9122d7842d2c0b3e656a594%2C64a3a4e3359dc889e2ab2b49461bab9e27fc10a7
2019-01-17 10:18:31 -08:00
Rob Wu
9ee0822242 Bug 1518598 - Return early if popup has already been closed r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D16033

--HG--
extra : moz-landing-system : lando
2019-01-15 18:50:49 +00:00
Shane Caraveo
73932f96a1 Bug 1516655 fix widget.node checks in browserAction code, r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D15475

--HG--
extra : moz-landing-system : lando
2019-01-07 19:38:49 +00:00
Shane Caraveo
dccda62965 Bug 1345474 - support showInPrivateBrowsing in browserAction, r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D11670

--HG--
extra : moz-landing-system : lando
2018-12-10 21:32:04 +00:00
Nicklas Boman
a9556eefe3 Bug 1370224 - Fallback to extension icon for browser/page action r=mstriemer,mixedpuppy
--HG--
extra : rebase_source : 5c443503c9918b4ed9b0cbf79a2263c4b290ef7b
extra : amend_source : b0e2068e77cde6003a5159d189b6f88027472896
2018-11-04 20:03:15 +01:00
Luca Greco
bc6ccc75fd Bug 1489315 - Move ExtensionTelemetry into its own JSM module. r=mixedpuppy
This patch moves the ExtensionTelemetry helpers (added into ExtensionUtils.jsm by Bug 1483002)
into a new ExtensionTelemetry.jsm and makes the ExtensionTelemetry a lazy getter on every one
of the JSM and API modules that are going to use it, so that we don't have to load these helpers
until they are actually used and we can reduce their impact on the base content memory usage.

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

--HG--
extra : moz-landing-system : lando
2018-09-07 16:27:44 +00:00
Luca Greco
88b7be38f8 Bug 1483002 - Added WEBEXT probes keyed by addon id. r=janerik,mixedpuppy
This patch contains a set of changes needed to add WEBEXT telemetry probes keyed by addon id.

The telemetry probes keyed by addon id has been added as separate telemetry histograms
named after the related generic WEBEXT probe with the additional "_BY_ADDONID" suffix.

A set of small helper methods have been defined in a new ExtensionTelemetry object, exported
by the ExtensionUtils.jsm.

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

--HG--
extra : moz-landing-system : lando
2018-09-05 20:16:35 +00:00
Oriol Brufau
c656258c84 Bug 1483684 - Fix browserAction ignoring tab-specific or window-specific popups and showing global one instead. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D3465

--HG--
extra : moz-landing-system : lando
2018-08-16 13:14:44 +00:00
Brian Grinstead
829d7647d3 Bug 1479538 - Rewrite non-test callers of document.createElementNS(XUL_NS, ...) to use document.createXULElement(...);r=paolo
Differential Revision: https://phabricator.services.mozilla.com/D3275

--HG--
extra : moz-landing-system : lando
2018-08-14 16:22:44 +00:00
Oriol Brufau
45dbd64d99 Bug 1474110 - Choose browserAction text color among white and black, maximizing contrast r=mixedpuppy
MozReview-Commit-ID: CykmiUc0BsO

--HG--
extra : rebase_source : 23f74ba575d7f6c2ed6e379ea762080331540399
2018-07-08 02:15:27 +02:00
Oriol Brufau
80cbb0d4a9 Bug 1476818 - Choose right add-on icon size for browserAction in the Overflow Menu r=mixedpuppy
MozReview-Commit-ID: J8J4g1jYPfQ

--HG--
extra : rebase_source : 310e8cd60ba06e62e103e659cff54b0f1500d996
2018-07-19 01:39:42 +02:00
Oriol Brufau
48e892f643 Bug 1475714 - Remove webextension code for legacy 18x18 icons r=mixedpuppy
MozReview-Commit-ID: CNU1c7IA3Hn

--HG--
extra : rebase_source : 6dfb48b079415601113c69d923dfb73a8425fb45
2018-07-15 18:00:26 +02:00
Oriol Brufau
6d0124af85 Bug 1424620 - Add setBadgeTextColor and getBadgeTextColor methods to browserAction r=mixedpuppy
MozReview-Commit-ID: ALYerCv3YJ7

--HG--
extra : rebase_source : 8288ef3e60517abb02d2d139df71242744940ad4
2018-07-05 19:37:08 +02:00
Kris Maglione
7b7264f453 Bug 1464548: Part 3 - Update callers to use defineLazyGlobalGetters. r=mccr8
MozReview-Commit-ID: 9APGewiDDYB

--HG--
extra : rebase_source : 2931dd0eec0e4206414b698a9700fc20d922eb3a
2018-05-25 17:02:29 -07:00
Shane Caraveo
6bfb283891 Bug 1404724 - remove browser_style warning, fix default values, r=aswan
MozReview-Commit-ID: Akdhrm4leIQ

--HG--
extra : rebase_source : a59bdae5c2ea9d725062b2bf53ba659360966377
2018-05-29 16:55:43 -04:00