Commit Graph

136 Commits

Author SHA1 Message Date
Emma Malysz
a2b7ee8d11 Bug 1636994, ensure panel is created before showing addon install notification r=Gijs,robwu
Differential Revision: https://phabricator.services.mozilla.com/D76166
2020-05-22 17:00:44 +00:00
William Durand
4575ff9534 Bug 1613796 - Make the permission popup queue browser-specific. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D70445
2020-04-16 19:38:17 +00:00
Narcis Beleuzu
6a406d8d46 Backed out changeset a315e85c5376 (bug 1613796) for bc failures on browser_file_xpi_no_process_switch.js . CLOSED TREE 2020-04-04 05:38:34 +03:00
William Durand
e8684f1fce Bug 1613796 - Return false when browser.permissions.request isn't called on the active tab. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D69226
2020-04-03 12:36:01 +00:00
mirefly
b0b687ae89 Bug 1579734 - Add-ons manager extension Permissions tab always shows all domains. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D66510
2020-03-13 01:04:41 +00:00
Manvel Saroyan
cf503b259e Bug 1432083 - Fixed browser.permissions.request doesn't work in WebExtension popup r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D61411
2020-02-11 16:08:59 +00:00
Cosmin Sabou
d0339636d5 Backed out changeset c196f0d65eab (bug 1432083) for browser chrome failures on browser_extension_sideloading.js.
CLOSED TREE
2020-02-09 08:11:27 +02:00
Manvel Saroyan
7baa80373f Bug 1432083 - Fixed browser.permissions.request doesn't work in WebExtension popup r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D61411
2020-02-09 04:10:49 +00:00
Shane Caraveo
d8954b0e4d Bug 1544975 remove private window extension change notification r=robwu,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D57716
2020-01-03 23:01:54 +00:00
Shane Caraveo
bccfb5f4a3 Bug 1581852 handle incognito checkbox for consecutive installs r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D49669
2019-10-23 21:38:56 +00:00
monikamaheshwari
edb30ffaec Bug 1578683 Turn on ESLint rule prefer-boolean-length-check for toolkit and browser r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D45629
2019-09-14 09:39:26 +00:00
Victor Porof
9a78b195ab Bug 1561435 - Format browser/modules/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D36046
2019-07-05 09:55:19 +02:00
Boris Zbarsky
95de682140 Bug 1557793 part 2. Stop using [array] in nsIStringBundle. r=Pike
Differential Revision: https://phabricator.services.mozilla.com/D34196
2019-06-11 15:51:51 +00:00
Luca Greco
6b3a652409 Bug 1538546 - Check AddonManager PERM_CAN_CHANGE_PRIVATEBROWSING_ACCESS permission instead of the incognito manifest property. r=kmag,mixedpuppy
Depends on D24719

Differential Revision: https://phabricator.services.mozilla.com/D24720
2019-03-26 19:04:01 +00:00
Luca Greco
1fbc5265f5 Bug 1538546 - Hide incognito checkbox in addon-installed notification for not_allowed extensions. r=mixedpuppy,kmag
Differential Revision: https://phabricator.services.mozilla.com/D24719
2019-03-26 18:31:57 +00:00
Luca Greco
a5fc6ba66b Bug 1533172 - Show post install notification when enabling sideload extensions. r=mixedpuppy,kmag
Differential Revision: https://phabricator.services.mozilla.com/D22700
2019-03-22 19:19:35 +00:00
Shane Caraveo
85cfdb3344 Bug 1534714 handle checkbox state when appmenu refreshed across windows r=Gijs
This adds an onRefresh option for app menus so we can update custom controls
in any opened window.  In this case, we need to refresh the checkbox state in the
addon-installed panel.  We test this using the theme install test and verify both
windows do not have the checkbox.

Differential Revision: https://phabricator.services.mozilla.com/D23224
2019-03-14 18:31:07 +00:00
Andrew Swan
3753935bea Bug 1534796 Tweak default search prompts r=mkaply
Differential Revision: https://phabricator.services.mozilla.com/D23227
2019-03-12 14:32:24 -07:00
Shane Caraveo
6e0592b273 Bug 1533519 hide private checkbox for non-extension addons r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D22591
2019-03-08 13:51:52 +00:00
Luca Greco
1595c6f4ff Bug 1529347 - Record telemetry event on extensions enabled on private windows from the post install notification doorhanger. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D21931
2019-03-06 13:59:31 +00:00
Shane Caraveo
e51e0314a6 Bug 1531974 revert automatic extension permission in permanent private browsing r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D21937
2019-03-04 19:00:21 +00:00
Shane Caraveo
af2e0877db Bug 1527127 update addon panel text for private windows r=flod,Gijs,mstriemer,rpl
Differential Revision: https://phabricator.services.mozilla.com/D19845
2019-02-27 20:05:38 +00:00
Trishul
aa9cc40f55 Bug 1527660 - Adding learn more link to permissions popup r=mstriemer,johannh
Adding learn more link to permissions popup

Differential Revision: https://phabricator.services.mozilla.com/D19711
2019-02-21 10:36:33 +00:00
Luca Greco
4fd1213f54 Bug 1513344 - Record addonsManager.action telemetry event on interaction with private browsing doorhanger. r=mstriemer,janerik
Depends on D19664

Differential Revision: https://phabricator.services.mozilla.com/D19665
2019-02-15 14:32:31 +00:00
Luca Greco
12379ff784 Bug 1515697 - Replace addonsManager telemetry events num_origin and num_perms extras with num_strings. r=aswan
This patch includes the following changes:

- added a new "num_strings" extra key to the "addonsManager install" and "addonsManager manage"
  telemetry events, where "num_strings" represents the "number of permissions actually visible
  in the extension permission doorhanger"

- do not record a telemetry event for the "permission_prompt" (or "sideload_prompt") if the
  permissions_prompt is not going to be shown

- add num_strings and removed "num_perms" and "num_origins" extras from the test assertions in the existing tests

- added some additional assertions to test in automation that we don't record the telemetry
  event for "permission_prompt" when no permission prompt is being shown for an
  extension update (as part of the browser_extension_update_background_noprompt.js test)

Differential Revision: https://phabricator.services.mozilla.com/D16992
2019-01-29 17:32:51 +00:00
Cosmin Sabou
bf63534551 Merge mozilla-inbound to mozilla-central. a=merge 2019-01-29 12:01:56 +02:00
Shane Caraveo
80465b08c2 Bug 1515701 show addons disabled doorhanger in private browsing, r=Gijs,flod
Differential Revision: https://phabricator.services.mozilla.com/D15445
2019-01-29 01:39:37 +00:00
Kris Maglione
856fa07b17 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
2019-01-17 10:18:31 -08:00
Shane Caraveo
01ea08fe98 Bug 1508853 make the search default panel persistent, r=aswan
This is a quick fix to ensure that the search install panel is shown when an extension uses is_default.  The intention is to uplift for 64.

Differential Revision: https://phabricator.services.mozilla.com/D13078
2018-11-27 18:05:59 +00:00
Shane Caraveo
3ad0efa480 Bug 1497702 remove app-installed notification upon dismissal, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D8159
2018-10-10 23:40:32 +00:00
Shane Caraveo
70d9cdaf3f Bug 1491438 move addon-installed notification to the appMenu, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D7949
2018-10-08 14:56:39 +00:00
Luca Greco
a9ea6dcf9f Bug 1433335 - Send telemetry events for each AddonManager action on an extension. r=aswan
- Added definitions for the new telemetry events
- Send telemetry events for each AddonManager action on an extension.
- Ensure that telemetry events are sent also for the extension prompts.

Differential Revision: https://phabricator.services.mozilla.com/D4448
2018-09-19 16:43:11 +00:00
Mark Banner
462116b7f9 Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop
Automatic changes by ESLint, except for manual corrections for .xml files.

Differential Revision: https://phabricator.services.mozilla.com/D4439
2018-08-31 05:59:17 +00:00
Kris Maglione
e97c582e3f Bug 1463291: Move docShell getter from Document to Window. r=bz
DocShells are associated with outer DOM Windows, rather than Documents, so
having the getter on the document is a bit odd to begin with. But it's also
considerably less convenient, since most of the times when we want a docShell
from JS, we're dealing most directly with a window, and have to detour through
the document to get it.

MozReview-Commit-ID: LUj1H9nG3QL
2018-05-21 16:58:23 -07:00
Narcis Beleuzu
749f83cc65 Backed out 2 changesets (bug 1463016, bug 1463291) for geckoview failures
Backed out changeset fcfb99baa0f0 (bug 1463291)
Backed out changeset 0d69b4fb1ed4 (bug 1463016)
2018-07-29 03:55:23 +03:00
Kris Maglione
6dcf46ad68 Bug 1463291: Move docShell getter from Document to Window. r=bz
DocShells are associated with outer DOM Windows, rather than Documents, so
having the getter on the document is a bit odd to begin with. But it's also
considerably less convenient, since most of the times when we want a docShell
from JS, we're dealing most directly with a window, and have to detour through
the document to get it.

MozReview-Commit-ID: LUj1H9nG3QL
2018-05-21 16:58:23 -07:00
Oriol Brufau
ff639f7950 Bug 1474132 - Choose right add-on icon size in about:addons and install popup r=rpl
MozReview-Commit-ID: L5O2OwlK879
2018-07-13 13:51:28 +02:00
Kris Maglione
ee84f51cd4 Bug 1456243: Remove dead prompt-for-distribution-add-ons code. r=aswan
MozReview-Commit-ID: B4HPk0ho7Cz
2018-05-17 18:56:50 -07:00
Kris Maglione
e2dad07746 Bug 1461145: Support async startup/shutdown bootstrap methods. r=aswan
MozReview-Commit-ID: L0G4DA0KJ87
2018-05-12 18:51:32 -07:00
Tomislav Jovanovic
22033f0467 bug 1455269 - Cancel instalation on notification dismissal r=aswan
MozReview-Commit-ID: DqbgdVTarQ8
2018-05-17 20:46:21 +02:00
Kris Maglione
b3990a2d91 Bug 1456686: Part 1 - Fix unused and shadowed explicit imports. r=standard8
These issues were previously ignored due to the nature of our global import
rules. They need to be fixed before that rule can be updated.

MozReview-Commit-ID: DCChktTc5TW
2018-04-24 20:18:09 -07:00
Mike de Boer
2271d50b55 Bug 1034036 - Part 1: Merge RecentWindow.jsm and UpdateTopLevelContentWindowIDHelper.jsm into one module called 'BrowserWindowTracker.jsm'. r=dao
MozReview-Commit-ID: 9qzq1aGvjDu
2018-04-11 12:05:56 +02:00
Andrew Swan
0f502c3e2d Bug 1331521 Remove about:newaddon r=kmag
MozReview-Commit-ID: 6OFXGYEmSmy
2018-04-16 14:11:10 -07:00
Kris Maglione
d73519000f Bug 1382953: Fix permission prompts in about:addons options browsers. r=aswan
MozReview-Commit-ID: At5F5cqGSWu
2018-04-07 20:38:21 -07:00
Jonathan Kingston
9b880fdc20 Bug 1374741 - Within browser/ make openUILinkIn() provide the correct triggeringPrincipal. r=gijs
MozReview-Commit-ID: 1NQrlWzIBja
2018-02-21 14:28:48 +00:00
Kris Maglione
b219a17325 Bug 1446686: Follow-up: Fix pending permission prompts when prompt is dismissed. r=bustage
MozReview-Commit-ID: 35tW39omECd
2018-03-26 19:06:00 -07:00
Kris Maglione
985347f2e4 Bug 1446686: Part 3 - Fix discovery pane and drag-and-drop tests which rely on legacy extensions. r=aswan
This removes some discovery pane tests which are obsolete. The discovery pane
page that it tests uses InstallTrigger, rather than mozAddonManager as we use
in production, and fails when used with WebExtensions.

The other tests have been updated to use WebExtensions, and some relevant
PopupNotifications bugs have been fixed so that they actually pass.

MozReview-Commit-ID: 1g0n73vhncp
2018-03-17 17:42:51 -07:00
Prathiksha
872d37cca3 Bug 1435160 - Format notification popup description message in a helper function. r=johannh
MozReview-Commit-ID: Bwy2WrbXjUf
2018-02-28 02:01:55 +05:30
Andrew Swan
523021e1d8 Bug 1441271 Show permissions notifications for distribution addons r=kmag
As described in the bug, this is intended as a temporary solution to
enable some experiments.  If this becomes a real feature, UX will
put some thought into a better startup experience.

MozReview-Commit-ID: 4DGMHj29M3e
2018-02-28 18:36:36 -08:00
Florian Quèze
f1a55f73f8 Bug 1440284 - change this.EXPORTED_SYMBOLS back to var EXPORTED_SYMBOLS in JS modules, r=mccr8. 2018-02-23 20:50:01 +01:00