Commit Graph

51 Commits

Author SHA1 Message Date
Mark Banner
b2267b3bdd Bug 1579420 - Fix ESLint no-async-promise-executor issues in extensions code. r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D45009
2019-09-17 13:03:24 +00:00
Victor Porof
5d695e0b7f Bug 1561435 - Format toolkit/components/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D36052
2019-07-05 11:14:05 +02:00
Rob Wu
8a66e04ac7 Bug 1534969 - Ensure that extension.id/uuid is set in browser tests r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D23311
2019-03-13 18:48:53 +00:00
Shane Caraveo
ddba318067 Bug 1529394 fix tests for pref'ing on incognito not_allowed r=rpl
This patch addresses remaining test issues when pref'ing on.  These are tests that
previously ran some tests in private contexts that now require the use of incognitoOverride.
This also fixes an xpcshell test wrapper to set the permission when overridden.

Differential Revision: https://phabricator.services.mozilla.com/D21300
2019-03-05 14:17:36 +00:00
Andreea Pavel
6abd33d328 Backed out 2 changesets (bug 1529394) for bc failures at automation.py on a CLOSED TREE
Backed out changeset 7f3e254c982c (bug 1529394)
Backed out changeset 3a8c338af709 (bug 1529394)
2019-03-05 01:34:50 +02:00
Shane Caraveo
b4a71ecc49 Bug 1529394 fix tests for pref'ing on incognito not_allowed r=rpl
This patch addresses remaining test issues when pref'ing on.  These are tests that
previously ran some tests in private contexts that now require the use of incognitoOverride.
This also fixes an xpcshell test wrapper to set the permission when overridden.

Differential Revision: https://phabricator.services.mozilla.com/D21300
2019-03-01 17:55:38 +00:00
Cosmin Sabou
bf63534551 Merge mozilla-inbound to mozilla-central. a=merge 2019-01-29 12:01:56 +02:00
Shane Caraveo
49f496bdbc 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
2019-01-28 18:10:47 +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
0cf35e1dd8 Bug 1345474 - Add policy flags to support incognito settings r=rpl,kmag
Differential Revision: https://phabricator.services.mozilla.com/D4100
2018-12-10 21:27:22 +00:00
Andrew Swan
6ad055e3b0 Bug 1451532 Remove unneeded bootstrapped extensions in addon manager xpcshell tests r=kmag
In most case this involves switching to webextensions.  Some old or
redundant tests are removed, other tets are cleaned up and modernized
along the way.
2018-11-18 16:35:51 -08:00
Andrew Swan
ac3fee9a03 Bug 1500265: Remove support for hybrid WebExtensions. r=kmag 2018-11-14 15:47:21 -08:00
Kris Maglione
bb663b9c15 Bug 1471102: Move more code out of ExtensionUtils.jsm. r=aswan
MozReview-Commit-ID: Fqlv5BRuuW8
2018-06-25 19:30:21 -07:00
Kris Maglione
1bd73e3079 Bug 1463635: Part 2 - Update test_temporary to use mostly WebExtensions. r=aswan
MozReview-Commit-ID: 1tK3FiNXgAV
2018-05-22 20:24:12 -07:00
Kris Maglione
0847e8227e Bug 1464548: Part 3 - Update callers to use defineLazyGlobalGetters. r=mccr8
MozReview-Commit-ID: 9APGewiDDYB
2018-05-25 17:02:29 -07:00
Kris Maglione
669dbbed5a Bug 1461145: Follow-up: Fix more racy tests. r=bustage CLOSED TREE
MozReview-Commit-ID: 7uep5FCvVwC
2018-05-27 17:53:01 -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
Andrew Swan
ec3ff5b7af Bug 1457224 Clean up extension testing helpers r=zombie
- Remove outdated appChanged logic from test helper function to start
  the AddonManager
- Avoid calling to the AddonManager in webextension tests that don't
  otherwise require the AddonManager

MozReview-Commit-ID: Fx4o1TzXTCd
2018-04-30 13:01:10 -07:00
Jonathan Kingston
c285bde064 Bug 1454820 - Add support for system addon signing for web extension bundling. r=johannh,kmag
MozReview-Commit-ID: 3dpQKGHOgLa
2018-04-18 00:43:39 +01:00
Cosmin Sabou
50d85b561e Backed out changeset 5e8342edb62d (bug 1454820) mochitest e-10s failures on test_bug386782.html. CLOSED TREE 2018-04-27 19:50:26 +03:00
Jonathan Kingston
131c049368 Bug 1454820 - Add support for system addon signing for web extension bundling. r=johannh,kmag
MozReview-Commit-ID: 3dpQKGHOgLa
2018-04-18 00:43:39 +01:00
Cosmin Sabou
dc16ce0787 Backed out changeset 7e3aa63ae752 (bug 1454820) for ESlint failure on extensions/Extension.jsm:509:22. CLOSED TREE 2018-04-27 14:46:19 +03:00
Jonathan Kingston
6243245712 Bug 1454820 - Add support for system addon signing for web extension bundling. r=johannh,kmag
MozReview-Commit-ID: 3dpQKGHOgLa
2018-04-18 00:43:39 +01:00
Cosmin Sabou
9f0c6460a5 Backed out changeset 8141b60030b9 (bug 1454820) for browser chrome failures on browser_901207_searchbar_in_panel.js on Linux debug. CLOSED TREE 2018-04-27 09:20:20 +03:00
Jonathan Kingston
fcf8743ad0 Bug 1454820 - Add support for system addon signing for web extension bundling. r=johannh,kmag
MozReview-Commit-ID: 3dpQKGHOgLa
2018-04-18 00:43:39 +01:00
Kris Maglione
d3bbf87c83 Bug 1454202: Part 1 - Update legacy callers to use Promise-based AddonManager APIs. r=aswan
***
Bug 1454202: Part 1a - Auto-replace uses of callback-based AddonManager APIs with Promise-based versions. r=aswan

This was done using the following script:

4cd5ae9597/processors/aom-api-generators.jsm

MozReview-Commit-ID: 8hobLz15a66
***
Bug 1454202: Part 1b - Manually fix eslint errors after auto-rewrite. r=aswan

This also deletes an obsolete test whose xpcshell variant was already deleted.

MozReview-Commit-ID: DM9W9Q2SVIE
***
Bug 1454202: Part 1c - Manually fix non-eslint issues after auto-rewrite. r=aswan

MozReview-Commit-ID: DtMscWZuExc
2018-04-14 19:38:18 -07:00
Kris Maglione
f2946d70f7 Bug 1444758: Part 5 - Migrate test_ext_contentscript_api_injection to xpcshell. r=aswan
MozReview-Commit-ID: Htot0aRcFXK
2018-03-11 13:19:27 -07: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
Andrew McCreight
272cee1e65 Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian
This patch was autogenerated by my decomponents.py

It covers almost every file with the extension js, jsm, html, py,
xhtml, or xul.

It removes blank lines after removed lines, when the removed lines are
preceded by either blank lines or the start of a new block. The "start
of a new block" is defined fairly hackily: either the line starts with
//, ends with */, ends with {, <![CDATA[, """ or '''. The first two
cover comments, the third one covers JS, the fourth covers JS embedded
in XUL, and the final two cover JS embedded in Python. This also
applies if the removed line was the first line of the file.

It covers the pattern matching cases like "var {classes: Cc,
interfaces: Ci, utils: Cu, results: Cr} = Components;". It'll remove
the entire thing if they are all either Ci, Cr, Cc or Cu, or it will
remove the appropriate ones and leave the residue behind. If there's
only one behind, then it will turn it into a normal, non-pattern
matching variable definition. (For instance, "const { classes: Cc,
Constructor: CC, interfaces: Ci, utils: Cu } = Components" becomes
"const CC = Components.Constructor".)

MozReview-Commit-ID: DeSHcClQ7cG
2018-02-06 09:36:57 -08:00
Kris Maglione
0bb74efdf1 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Cosmin Sabou
f09d6d985d Backed out 3 changesets (bug 1431533) for Android mochitest failures on testEventDispatcher on a CLOSED TREE
Backed out changeset a1eca62826a1 (bug 1431533)
Backed out changeset 34c999fa006b (bug 1431533)
Backed out changeset e2674287e57f (bug 1431533)
2018-01-30 07:17:48 +02:00
Kris Maglione
fd67f090b2 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Brindusan Cristian
483ba301cb Backed out 2 changesets (bug 1431533) for ESlint failures on a CLOSED TREE
Backed out changeset 6e56f4c8843e (bug 1431533)
Backed out changeset 12fc4dee861c (bug 1431533)
2018-01-30 02:32:43 +02:00
Kris Maglione
683a97d172 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Kris Maglione
4fb2fb4403 Bug 1323845: Part 6b - Test WebExtension-style experiments API providers. r=aswan
MozReview-Commit-ID: 5guKmx77RQm
2018-01-09 17:21:25 -08:00
Kris Maglione
a182138185 Bug 1323845: Part 5b - Add tests for bundled experiments APIs. r=aswan
MozReview-Commit-ID: C0gAmW2QfNr
2018-01-09 17:01:29 -08:00
Kris Maglione
c8ea1d4273 Bug 1421459: Update to ESLint 4 "indent" rule. r=aswan
MozReview-Commit-ID: LxLDWlsIlSk
2017-11-28 14:13:59 -08:00
Kris Maglione
5620aa14ff Remove unused imports. r=trivial (no bug)
MozReview-Commit-ID: EEVSPkAgORY
2017-11-09 16:39:57 -08:00
Kris Maglione
e4301a9402 Bug 1255894: Part 8 - Add tests for response stream filtering. r=mixedpuppy
MozReview-Commit-ID: 9C2QnNsm1W1
2017-03-23 12:09:26 -07:00
Robert Helmer
9754487bff Bug 1372750 - allow generated embedded extensions to work in xpcshell tests r=kmag
MozReview-Commit-ID: AkCnoUTldhI
2017-06-21 12:46:57 -07:00
L. David Baron
ffe0c00454 Backed out changeset 90ae2fcd089a (bug 1378727) for numerous xpcshell test failures on Windows, starting with test_ext_browsingData_downloads.js. 2017-07-12 22:23:42 -07:00
Kris Maglione
1004383022 Bug 1378727: Use the zip reader cache when reading extension locales. r=aswan
MozReview-Commit-ID: BOoVcyypdRN
2017-07-08 16:48:54 -07:00
Tomislav Jovanovic
09bffff571 Bug 1343583 - Adapt test framework to function toString revision r=aswan
MozReview-Commit-ID: LHABSIrgpBi
2017-03-02 20:38:25 +01:00
Wes Kocher
cd6ff174c9 Backed out 2 changesets (bug 1343583) at developer's request a=backout
Backed out changeset 10fccfc11db1 (bug 1343583)
Backed out changeset 3b9e06e3d9b8 (bug 1343583)

MozReview-Commit-ID: FKEYDU9MZIa
2017-03-02 10:44:07 -08:00
Tomislav Jovanovic
7e509610d6 Bug 1343583 - Adapt test framework to function toString revision r=aswan
MozReview-Commit-ID: LHABSIrgpBi
2017-03-02 18:32:33 +01:00
Florian Quèze
13cfe1d3f3 Bug 1329182 - remove trailing newURI null parameters in toolkit/, r=jaws. 2017-01-09 20:27:25 +01:00
Kris Maglione
8758dd16e8 Bug 1318371: Flush jar caches by path rather than creating a nsIFile in the content process. r=billm
MozReview-Commit-ID: 4J88w5lxEsP
2016-11-17 20:00:30 -08:00
Kris Maglione
e458853e4d Bug 1317101 - Part 8b: Run browser mochitests in both parent-process and remote configurations. r=billm
MozReview-Commit-ID: 6IGGnpgZLce
2016-11-17 14:00:32 -08:00
Wes Kocher
2876e6bba5 Backed out 15 changesets (bug 1317101) for e10s jsreftest failures a=backout CLOSED TREE
Backed out changeset 17757ba4c0e8 (bug 1317101)
Backed out changeset 61f8a4084bbd (bug 1317101)
Backed out changeset a8cdc81cdcce (bug 1317101)
Backed out changeset e06d269a5d4f (bug 1317101)
Backed out changeset 1e1bfb578dcd (bug 1317101)
Backed out changeset 0f8144296a9d (bug 1317101)
Backed out changeset b7892d3fb0ca (bug 1317101)
Backed out changeset 039d63d5fef7 (bug 1317101)
Backed out changeset ef7e061b37bf (bug 1317101)
Backed out changeset af7b81d7a5cc (bug 1317101)
Backed out changeset 225ad2535585 (bug 1317101)
Backed out changeset b0521588011d (bug 1317101)
Backed out changeset 07321664430a (bug 1317101)
Backed out changeset 47d283897283 (bug 1317101)
Backed out changeset ffc63be3557c (bug 1317101)
2016-11-16 16:44:30 -08:00
Kris Maglione
b4f0443e7f Bug 1317101 - Part 8b: Run browser mochitests in both parent-process and remote configurations. r=billm
MozReview-Commit-ID: 6IGGnpgZLce
2016-11-16 13:14:37 -08:00