Commit graph

1451 commits

Author SHA1 Message Date
Neil Deakin
1a628e76c2 Bug 1519952, replace calls to boxobject screenX and screenY with the equivalent on XULElement, r=paolo 2019-02-15 15:26:17 -05:00
Cosmin Sabou
fab429586f Merge autoland to mozilla-central. a=merge 2019-02-15 20:36:32 +02:00
Razvan Maries
00ff5fa61a Backed out changeset 10528ad0d7a1 (bug 1525125) for frequently failing bug 1528134. a=backout 2019-02-15 18:23:14 +02:00
Shane Caraveo
75718b91a4 Bug 1525125 block newtab and homepage overrides in private windows r=rpl,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D18730

--HG--
extra : moz-landing-system : lando
2019-02-14 19:46:00 +00:00
Bogdan Tara
55264a1e43 Backed out changeset 14f7c02566c2 (bug 1525125) for browser_ext_windows_create_tabId.js failures CLOSED TREE 2019-02-14 17:29:40 +02:00
Nicolas Chevobbe
e8099d4018 Bug 1527834 - Rename WebConsoleWrapper:hud to WebConsoleWrapper:webConsoleUI; r=bgrins.
This better reflects what the property is (i.e. a
WebConsoleUI instance), and avoid confusion with
the panel's hud (created in webconsole.js).
We take that as an opportunity to clean things up
a bit (e.g. don't access the webConsoleUI through
JsTerm).

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

--HG--
extra : moz-landing-system : lando
2019-02-15 08:17:43 +00:00
Shane Caraveo
5b5b01194d Bug 1524001 update manifest to validate manifest.icons, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D18105

--HG--
rename : toolkit/components/extensions/test/xpcshell/test_ext_manifest.js => browser/components/extensions/test/xpcshell/test_ext_manifest.js
extra : moz-landing-system : lando
2019-02-14 01:32:31 +00:00
Shane Caraveo
40e0ac9225 Bug 1525125 block newtab and homepage overrides in private windows r=rpl,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D18730

--HG--
extra : moz-landing-system : lando
2019-02-14 12:44:07 +00:00
Gurzau Raul
372cd785ae Bug 1349892 Disable browser_ext_sidebarAction_context.js on all platforms. r=aryx
Differential Revision: https://phabricator.services.mozilla.com/D19769

--HG--
extra : moz-landing-system : lando
2019-02-14 12:12:39 +00:00
Joel Maher
2d1cf6ee1f Bug 1527369 - re-enable many tests on windows 1803 due to invalid screen resolution whilst testing. r=gbrown
re-enable many tests on windows 1803 due to invalid screen resolution whilst testing

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

--HG--
extra : moz-landing-system : lando
2019-02-12 17:47:39 +00:00
Joel Maher
bdd8e3ce31 Bug 1522900 - adjust manifests to allow tests to pass on windows10 1803 release. r=gbrown CLOSED TREE
--HG--
extra : rebase_source : 1350412a9925eea526bda708011086c4e8e19170
extra : amend_source : 548af67b37ba2207f380c509a1b213c323fcd1cb
2019-02-11 10:02:51 +01:00
Mark Striemer
911fb7280f Bug 1500147 - Part 3: Record add-on manager telemetry for page/browser actions r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D18003

--HG--
extra : moz-landing-system : lando
2019-02-07 16:43:02 +00:00
Brian Grinstead
04c18529e4 Bug 1487065 - Implement popup-notification as a Custom Element r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D17699

--HG--
rename : toolkit/content/widgets/notification.xml => toolkit/content/widgets/popupnotification.js
extra : moz-landing-system : lando
2019-02-07 22:16:26 +00:00
Bogdan Tara
9cbf5ced1f Backed out changeset 2e087a053898 (bug 1524001) for test_ext_management.js failures CLOSED TREE 2019-02-04 19:09:13 +02:00
Shane Caraveo
941140a5da Bug 1524001 update manifest to validate manifest.icons, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D18105

--HG--
rename : toolkit/components/extensions/test/xpcshell/test_ext_manifest.js => browser/components/extensions/test/xpcshell/test_ext_manifest.js
extra : moz-landing-system : lando
2019-02-04 14:26:34 +00:00
Mike de Boer
481ae95c00 Bug 1524593 - nsISearchService (aka nsIBrowserSearchService, previously) refactor to be mostly an asynchronous, in preparation of WebExtension engines. r=daleharvey
This is a rollup of all the patches that have landed on the cedar project branch:

891252fdd0
Bug 1492475 - Part 1: Migrate most, if not all nsSearchService consumers to use async APIs. r=florian

79b2eb2367
Bug 1492475 - Part 2: Move nsIBrowserSearchService.idl to toolkit/components/search/nsISearchService.idl and update references. r=florian

a947d3cdf0
Bug 1492475 - Part 3: The search service init() method should simply return a Promise. r=florian

c1e172dfac
Bug 1492475 - Part 4: Remove the synchronous initialization flow. r=florian

cd41189eac
Bug 1492475 - Part 5: Since async initialization of the search service now is implicit behavior, remove the distinctive verbiage used internally. r=florian

2ae7189dfa
Bug 1492475 - Part 6: Update the cache build task to work with an actual Promise and re-initialize only once at the same time - all to fix race conditions here. r=florian

c8ee92973f
Bug 1492475 - Part 7: Make the region fetch not block the init flow, to ensure it's as fast as possible. r=florian

c44e674e16
Bug 1492475 - Part 8: Introduce an init flag, which can only be used privately, that allows to explicitly skip waiting for the region check process to complete. r=florian

6c79eaf1d3
Bug 1492475 - Part 9: Update unit tests to stop using 'currentEngine', in favor of 'defaultEngine'. r=Standard8

21b3aa17ee
Bug 1492475 - Part 10: Update unit tests to be fully aware of the new, async signatures of the search service API and remove sync init flow tests. r=mkaply,florian

ce5ba69019
Bug 1492475 - Part 11: Repair incorrect usage of the `identifier` property of nsISearchEngine instances. r=florian

fd177a7994
Bug 1518543 - Fix up the Android (Fennec) nsISearchService shim to work with the new asynchronous API. r=florian

3653d8ee22
Bug 1523708 - Change the search service interaction in the show-heartbeat action to use the new async API. r=florian

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

--HG--
rename : netwerk/base/nsIBrowserSearchService.idl => toolkit/components/search/nsISearchService.idl
extra : moz-landing-system : lando
2019-02-02 11:27:21 +00:00
Oriol Brufau
d2be6ed36e Bug 1488095 - Test that webext tabs.move preserves tab laziness. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D17282

--HG--
extra : moz-landing-system : lando
2019-01-24 15:23:03 +00:00
Luca Greco
1f5a8a1faa Bug 1518486 - Reuse shared loadTestSubscript test helper in other extensions mochitest-browser test files. r=mixedpuppy
Depends on D15949

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

--HG--
extra : moz-landing-system : lando
2019-01-31 17:45:28 +00:00
Luca Greco
0bc32af010 Bug 1518486 - Disable extension devtools_page for private tabs when not allowed by users. r=mixedpuppy
This patch applies the following changes:

- make sure that the WebExtensions internals do not create any devtools_page related to a private tabs' toolbox
  if the extension is not allowed to access the private browsing windows

- define a new mochitest to verify the expended behaviors on the private windows when the extension is
  allowed and not allowed

Depends on D15948

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

--HG--
extra : moz-landing-system : lando
2019-01-31 19:43:44 +00:00
Luca Greco
e048fc8ac0 Bug 1518486 - Move extension "devtools related" test helpers into a shared head_devtools.js support file. r=mixedpuppy
This patch moves some "devtools related" test helpers into a shared support file,
and updates all the existing devtools API mochitests to use the new shared test helpers.

This change has also the following nice side-effects:

- remove any usage of the custom devtools module loader from the webextensions mochitests.

- use a custom "test blank toolbox panel" in all the devtools API tests that doesn't need a specific
  panel to be selected (which should help to make the test able to run a bit faster because none of
  the more expensive devtools panels is going to be loaded during the tests if not actually needed).

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

--HG--
extra : moz-landing-system : lando
2019-01-31 17:21:26 +00:00
Shane Caraveo
2e6a96527f Bug 1516710 find api support for incognito r=zombie,rpl
Differential Revision: https://phabricator.services.mozilla.com/D17417

--HG--
extra : moz-landing-system : lando
2019-01-31 14:45:08 +00:00
Shane Caraveo
8df2a38756 Bug 1516707 support incognito permission in menus api r=robwu,zombie
Differential Revision: https://phabricator.services.mozilla.com/D17293

--HG--
extra : moz-landing-system : lando
2019-01-30 19:51:43 +00:00
Shane Caraveo
5c8682b0c0 Bug 1516708 commands api incognito support r=mstriemer,zombie
Prevent adding commands to private windows when extensions do not have permission.

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

--HG--
extra : moz-landing-system : lando
2019-01-30 19:24:43 +00:00
Shane Caraveo
2deab03293 Bug 1516704 incognito support in session api, r=rpl,mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D16921

--HG--
extra : moz-landing-system : lando
2019-01-29 20:18:36 +00:00
Cosmin Sabou
599a15d354 Merge mozilla-inbound to mozilla-central. a=merge 2019-01-29 12:01:56 +02:00
Razvan Maries
093addce5e Backed out changeset 64d26b5a25b8 (bug 1516704) for bc failures at browser_ext_sessions_incognito.js. CLOSED TREE 2019-01-29 05:30:25 +02:00
Shane Caraveo
e55c1dd0b9 Bug 1516680 sidebar incognito support, r=rpl,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D15485

--HG--
extra : moz-landing-system : lando
2019-01-18 14:16:33 +00:00
Shane Caraveo
c3f223e9bd Bug 1516704 incognito support in session api, r=rpl,mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D16921

--HG--
extra : moz-landing-system : lando
2019-01-28 12:39:39 +00:00
Luca Greco
97d53a0f4a Bug 1483701 - Split and re-enable browser_ext_browserAction_popup_resize.js. r=mixedpuppy
This patch applies the following changes:

- Reduce the chances of retrieving the initial popup panel size while it is resizing, by comparing the
  content dimensions retrieved before and after the delay (which is already set to a value comparable
  to the time used by the resize debouncing timer), and wait until both the dimensions collected are the same

- split browser_ext_browserAction_popup_resize.js into two test files (as it seems, based on the investigations
  I did by reproducing this intermittent locally, that the part that can still fail intermittently from time
  to time with the change describe above is related to the testBrowserActionMenuResizeBottomArrow test case)

- move the test helpers shared between the two test files into a new head_browserAction.js support file

- re-enabled browser_ext_browserAction_popup_resize.js

- mark the new browser_ext_browserAction_popup_resize_bottom.js as disabled on debug build,
  because it is consistently triggering a "shutdown leak" failure when running locally

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

--HG--
rename : browser/components/extensions/test/browser/browser_ext_browserAction_popup_resize.js => browser/components/extensions/test/browser/browser_ext_browserAction_popup_resize_bottom.js
rename : browser/components/extensions/test/browser/browser_ext_browserAction_popup_resize.js => browser/components/extensions/test/browser/head_browserAction.js
extra : moz-landing-system : lando
2019-01-28 20:43:35 +00:00
Shane Caraveo
050ca2e7d4 Bug 1511636: update incognito support to use pref and permissions r=rpl,aswan,kmag
This changes the policy to use the pref and permissions rather than a boolean flag.  Using permissions gets us proper settings on startup without introducing any new overhead.  Going this way flips our tests around so rather than testing an override to turn off private browsing support, we test overrides to enable private browsing support.

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

--HG--
extra : moz-landing-system : lando
2019-01-28 18:10:47 +00:00
Shane Caraveo
6b86edb199 Bug 1511636 update ExtensionPermissions to take id instead of extension instance, r=aswan,rpl
Differential Revision: https://phabricator.services.mozilla.com/D14800

--HG--
extra : moz-landing-system : lando
2019-01-28 18:10:16 +00:00
Dorel Luca
19405e9ba6 Backed out changeset 49b9a79baf65 (bug 1483701) for brwoser-chrome failures in browser/components/extensions/test/browser/browser_ext_browserAction_popup_resize.js. CLOSED TREE 2019-01-25 23:25:05 +02:00
Luca Greco
b73f5349af Bug 1483701 - Split and re-enable browser_ext_browserAction_popup_resize.js. r=mixedpuppy
This patch applies the following changes:

- Reduce the chances of retrieving the initial popup panel size while it is resizing, by comparing the
  content dimensions retrieved before and after the delay (which is already set to a value comparable
  to the time used by the resize debouncing timer), and wait until both the dimensions collected are the same

- split browser_ext_browserAction_popup_resize.js into two test files (as it seems, based on the investigations
  I did by reproducing this intermittent locally, that the part that can still fail intermittently from time
  to time with the change describe above is related to the testBrowserActionMenuResizeBottomArrow test case)

- move the test helpers shared between the two test files into a new head_browserAction.js support file

- re-enabled browser_ext_browserAction_popup_resize.js

- mark the new browser_ext_browserAction_popup_resize_bottom.js as disabled on debug build,
  because it is consistently triggering a "shutdown leak" failure when running locally

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

--HG--
rename : browser/components/extensions/test/browser/browser_ext_browserAction_popup_resize.js => browser/components/extensions/test/browser/browser_ext_browserAction_popup_resize_bottom.js
rename : browser/components/extensions/test/browser/browser_ext_browserAction_popup_resize.js => browser/components/extensions/test/browser/head_browserAction.js
extra : moz-landing-system : lando
2019-01-25 19:54:57 +00:00
Rob Wu
a0497b48d7 Bug 1377641 - Re-enable browser_ext_sessions_getRecentlyClosed.js r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D17569

--HG--
extra : moz-landing-system : lando
2019-01-25 00:10:55 +00:00
shindli
54c1c54288 Backed out changeset 5852bd6e33d2 (bug 1483701) for bc failures in browser/components/extensions/test/browser/browser_ext_browserAction_popup_resize.js CLOSED TREE 2019-01-24 22:23:58 +02:00
Luca Greco
8310b45c89 Bug 1483701 - Split and re-enable browser_ext_browserAction_popup_resize.js. r=mixedpuppy
This patch applies the following changes:

- Reduce the chances of retrieving the initial popup panel size while it is resizing, by comparing the
  content dimensions retrieved before and after the delay (which is already set to a value comparable
  to the time used by the resize debouncing timer), and wait until both the dimensions collected are the same

- split browser_ext_browserAction_popup_resize.js into two test files (as it seems, based on the investigations
  I did by reproducing this intermittent locally, that the part that can still fail intermittently from time
  to time with the change describe above is related to the testBrowserActionMenuResizeBottomArrow test case)

- move the test helpers shared between the two test files into a new head_browserAction.js support file

- re-enabled browser_ext_browserAction_popup_resize.js

- mark the new browser_ext_browserAction_popup_resize_bottom.js as disabled on debug build,
  because it is consistently triggering a "shutdown leak" failure when running locally

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

--HG--
rename : browser/components/extensions/test/browser/browser_ext_browserAction_popup_resize.js => browser/components/extensions/test/browser/browser_ext_browserAction_popup_resize_bottom.js
rename : browser/components/extensions/test/browser/browser_ext_browserAction_popup_resize.js => browser/components/extensions/test/browser/head_browserAction.js
extra : moz-landing-system : lando
2019-01-23 17:24:07 +00:00
Luca Greco
8bb370504e Bug 1464711 - Fix typo in ExtensionContent script.requiresCleanup getter. r=zombie
This patch fixes the typo in the requiresCleanup getter and adds an additional step
in the automated tests to verify that the scripts created by browser.tabs.removeCSS
are not being added to the content scripts that requires cleanup.

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

--HG--
extra : moz-landing-system : lando
2019-01-24 17:18:22 +00: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
5ce0100dcc Bug 1520047 - Fix memory leak in places trees r=mak
The places-tree destructor lacks a `result.removeObserver(this.view);`
call before the assignment to `result.root.containerOpen`, which is
causing a memory leak.

This patch fixes the leak by removing the `result.root.containerOpen`
assignment, since the correct logic already exists in the `setTree`
method of `PlacesTreeView`, which is called upon `this.view = null;`
(XULTreeElement::SetView -> nsTreeBodyFrame::SetView -> setTree).

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

--HG--
extra : moz-landing-system : lando
2019-01-23 09:54:36 +00: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
Rob Wu
1ec6adbe00 Bug 1515810 - Fix intermittent issue in bookmark menu tests r=mixedpuppy
Depends on D16414

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

--HG--
extra : moz-landing-system : lando
2019-01-17 09:53:07 +00:00
Peter Simonyi
566e6142f7 Bug 1419195: Show items from WebExtensions in Places Library context menu r=mixedpuppy
Depends on D16413

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

--HG--
extra : moz-landing-system : lando
2019-01-17 09:49:38 +00:00
Peter Simonyi
176ee29b8e Bug 1419195: Show items from WebExtensions in bookmarks sidebar context menu r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D16413

--HG--
extra : moz-landing-system : lando
2019-01-17 09:49:36 +00:00
Gurzau Raul
50e42b691d Backed out 3 changesets (bug 1515810, bug 1419195) for failing at /browser/browser_ext_contextMenus.js on a CLOSED TREE
Backed out changeset 437003de9fff (bug 1515810)
Backed out changeset c04c2376a213 (bug 1419195)
Backed out changeset d9a81de35ac3 (bug 1419195)
2019-01-15 17:07:06 +02:00
Rob Wu
20e8af8757 Bug 1515810 - Fix intermittent issue in bookmark menu tests r=mixedpuppy
Depends on D16414

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

--HG--
extra : moz-landing-system : lando
2019-01-15 14:05:31 +00:00
Peter Simonyi
beef78d6c8 Bug 1419195: Show items from WebExtensions in Places Library context menu r=mixedpuppy
Depends on D16413

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

--HG--
extra : moz-landing-system : lando
2019-01-15 14:05:44 +00:00
Peter Simonyi
7005fd08d0 Bug 1419195: Show items from WebExtensions in bookmarks sidebar context menu r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D16413

--HG--
extra : moz-landing-system : lando
2019-01-15 14:06:03 +00:00
Noemi Erli
2e2a998fde Backed out changeset ee53bdc5b1d4 (bug 1419195) for failing in browser_ext_contextMenus.js 2019-01-14 18:59:02 +02:00
Noemi Erli
220d6a0fd2 Backed out changeset 732184f122e3 (bug 1419195) for failing in browser_ext_contextMenus.js 2019-01-14 18:58:48 +02:00
Noemi Erli
e2736e7ab2 Backed out changeset 5f9ccc7b6039 (bug 1515810) for failing in browser_ext_contextMenus.js 2019-01-14 18:58:15 +02:00