Commit Graph
212 Commits
Author SHA1 Message Date
Kris Maglione 4302579aad Bug 1596918: Part 4d - Fix callers which try to return non-clonable values. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D53745
2019-12-13 20:36:37 +00:00
Kris Maglione 7b2657b231 Bug 1596918: Part 3b - Run code formatters on files changed by previous patch. r=mccr8,remote-protocol-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D53741
2019-12-13 20:36:24 +00:00
Kris Maglione 8c0d38f33d Bug 1596918: Part 3a - Scripted rewrite of most ContentTask.spawn calls to SpecialPowers.spawn calls. r=mccr8,remote-protocol-reviewers,ato
This is generally pretty straightforward, and rewrites nearly all calls. It
skips the ones that it can detect using frame script globals like
`sendAsyncMessage`, though.

Differential Revision: https://phabricator.services.mozilla.com/D53740
2019-12-13 20:36:16 +00:00
shindli 0aa47af90e Backed out 9 changesets (bug 1596918) for causing mochitest permafailures in toolkit/content/tests/chrome/test_findbar_events.xhtml CLOSED TREE
Backed out changeset 45a1c42118f2 (bug 1596918)
Backed out changeset db09910ffa56 (bug 1596918)
Backed out changeset 5c9d9f141c10 (bug 1596918)
Backed out changeset 6a135670d603 (bug 1596918)
Backed out changeset 3a0184e0df72 (bug 1596918)
Backed out changeset 2f0036486823 (bug 1596918)
Backed out changeset a770c6d08d52 (bug 1596918)
Backed out changeset ef062eb7a6ee (bug 1596918)
Backed out changeset a6ea596e98db (bug 1596918)
2019-12-11 03:09:26 +02:00
Kris Maglione 40ceb887f2 Bug 1596918: Part 4d - Fix callers which try to return non-clonable values. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D53745
2019-12-10 23:07:34 +00:00
Kris Maglione eb68f8b548 Bug 1596918: Part 3b - Run code formatters on files changed by previous patch. r=mccr8,remote-protocol-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D53741
2019-12-10 23:07:21 +00:00
Kris Maglione ad3537fc50 Bug 1596918: Part 3a - Scripted rewrite of most ContentTask.spawn calls to SpecialPowers.spawn calls. r=mccr8,remote-protocol-reviewers,ato
This is generally pretty straightforward, and rewrites nearly all calls. It
skips the ones that it can detect using frame script globals like
`sendAsyncMessage`, though.

Differential Revision: https://phabricator.services.mozilla.com/D53740
2019-12-10 23:07:13 +00:00
Noemi Erli 21eec8658f Backed out 9 changesets (bug 1596918) for causing multiple browser-chrome failures
Backed out changeset 415007efd8c9 (bug 1596918)
Backed out changeset 011eb5ce927b (bug 1596918)
Backed out changeset e5fd3ee22ea1 (bug 1596918)
Backed out changeset 0bca4de31d40 (bug 1596918)
Backed out changeset 11ec4393f23d (bug 1596918)
Backed out changeset c5404a7c286d (bug 1596918)
Backed out changeset 7e9304405a46 (bug 1596918)
Backed out changeset fa0f0aeabf99 (bug 1596918)
Backed out changeset de196b077000 (bug 1596918)
2019-12-07 22:26:43 +02:00
Kris Maglione f1231dcf6a Bug 1596918: Part 4d - Fix callers which try to return non-clonable values. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D53745
2019-12-07 18:44:35 +00:00
Kris Maglione 6fb2c35351 Bug 1596918: Part 3b - Run code formatters on files changed by previous patch. r=mccr8,remote-protocol-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D53741
2019-12-07 18:44:34 +00:00
Kris Maglione 88fbf261f8 Bug 1596918: Part 3a - Scripted rewrite of most ContentTask.spawn calls to SpecialPowers.spawn calls. r=mccr8,remote-protocol-reviewers,ato
This is generally pretty straightforward, and rewrites nearly all calls. It
skips the ones that it can detect using frame script globals like
`sendAsyncMessage`, though.

Differential Revision: https://phabricator.services.mozilla.com/D53740
2019-12-07 19:11:58 +00:00
Daniel Varga 85f263a4c2 Backed out 17 changesets (bug 1596918) for multiple browser-chrome and dev-tools failures. On a CLOSED TREE
Backed out changeset ab87d2c1afae (bug 1596918)
Backed out changeset 775f3b06a687 (bug 1596918)
Backed out changeset 67cc63ef5d7f (bug 1596918)
Backed out changeset 7d290bcd2067 (bug 1596918)
Backed out changeset 048db9f4db7c (bug 1596918)
Backed out changeset 96a79d2ba614 (bug 1596918)
Backed out changeset be770d112dd8 (bug 1596918)
Backed out changeset 302c8ab8391c (bug 1596918)
Backed out changeset 44ef8f20732e (bug 1596918)
Backed out changeset 38c11ebfb8ff (bug 1596918)
Backed out changeset b586fc081374 (bug 1596918)
Backed out changeset 12283166716f (bug 1596918)
Backed out changeset 99b0421015d8 (bug 1596918)
Backed out changeset 97ec49dbbbf3 (bug 1596918)
Backed out changeset ec79478f58f1 (bug 1596918)
Backed out changeset c6d356833bb8 (bug 1596918)
Backed out changeset 5ef6026806c8 (bug 1596918)
2019-12-07 03:12:07 +02:00
Kris Maglione 1353082784 Bug 1596918: Part 4d - Fix callers which try to return non-clonable values. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D53745
2019-12-06 22:15:27 +00:00
Kris Maglione 487c4fe9c7 Bug 1596918: Part 3b - Run code formatters on files changed by previous patch. r=mccr8,remote-protocol-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D53741
2019-12-06 22:14:22 +00:00
Kris Maglione e59706f08a Bug 1596918: Part 3a - Scripted rewrite of most ContentTask.spawn calls to SpecialPowers.spawn calls. r=mccr8,remote-protocol-reviewers,ato
This is generally pretty straightforward, and rewrites nearly all calls. It
skips the ones that it can detect using frame script globals like
`sendAsyncMessage`, though.

Differential Revision: https://phabricator.services.mozilla.com/D53740
2019-12-06 22:14:14 +00:00
Julian Descottes 4c129d1a87 Bug 1534871 - Request longer timeout in browser_aboutdebugging_devtoolstoolbox_tooltip_markupview.js r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D55433
2019-12-03 08:27:23 +00:00
Julian Descottes a9e541b638 Bug 1600072 - Remove outdated migration comments in aboutdebugging tests r=ladybenko
Differential Revision: https://phabricator.services.mozilla.com/D55123
2019-11-29 12:51:48 +00:00
Julian Descottes 2ada16da45 Bug 1598259 - Remove support for MOZ_TOOLBOX_TEST_SCRIPT in ToolboxProcess.jsm r=ochameau
Depends on D54118

Differential Revision: https://phabricator.services.mozilla.com/D54119
2019-11-22 18:32:02 +00:00
Razvan Maries fd1c12749e Backed out 2 changesets (bug 1598259) for dt perma fails. CLOSED TREE
Backed out changeset 38140fd01a52 (bug 1598259)
Backed out changeset 70b22c90ea2e (bug 1598259)
2019-11-22 19:36:38 +02:00
Julian Descottes 8319ad0424 Bug 1598259 - Remove support for MOZ_TOOLBOX_TEST_SCRIPT in ToolboxProcess.jsm r=ochameau
Depends on D54118

Differential Revision: https://phabricator.services.mozilla.com/D54119
2019-11-22 07:54:10 +00:00
Alexandre Poirot 6f07ebeae6 Bug 1590401 - Refactor Front.onFront+onFrontDestroyed into Front.watchFronts. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D53881
2019-11-20 17:13:01 +00:00
Julian Descottes 0358a8f570 Bug 1526153 - Request longer timeout for browser_aboutdebugging_serviceworker_not_compatible r=ladybenko
Also removed the outdated comment referring to the tests of the old aboutdebugging which are no longer in the source control.
Seems like this was the only leftover comment of the sort.

Differential Revision: https://phabricator.services.mozilla.com/D52528
2019-11-11 14:29:12 +00:00
Cosmin Sabou d2f8947908 Bug 1529824 - Disable browser_aboutdebugging_serviceworker_fetch_flag.js on mac, win debug and linux 64 for frequent failures. r=egao
Differential Revision: https://phabricator.services.mozilla.com/D50748
2019-10-27 20:39:59 +00:00
Rob Wu 037fa3af78 Bug 1591102 - Let some SpecialPowers.pushPermissions callers use promises r=jdm
Some callers of SpecialPowers.pushPermissions wrapped the call in a
promise. That is not needed; directly use the returned promise instead.

Differential Revision: https://phabricator.services.mozilla.com/D50487
2019-10-27 15:28:41 +00:00
Julian Descottes 1a587dfc20 Bug 1589597 - Remove outdated header in aboutdebugging jest test r=ladybenko
Depends on D49711

I was a bit confused but we just forgot to remove this in Bug 1548465

Differential Revision: https://phabricator.services.mozilla.com/D49716
2019-10-18 15:12:10 +00:00
Julian Descottes eacfdd5e59 Bug 1589597 - Rename aboutdebugging jest test folder to node r=ladybenko
Following the naming convention decided in RFC Bug 1564431

Differential Revision: https://phabricator.services.mozilla.com/D49707
2019-10-18 13:42:50 +00:00
Alexandre Poirot 41bd6c1989 Bug 1583252 - Assert that there is no pending client at end of each test. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D46805
2019-10-02 16:24:29 +00:00
Julian Descottes 79b7a273c7 Bug 1565858 - aboutdebugging sidebar test should use longer timings in debug builds r=daisuke
When running in debug builds, the test will use the default timings instead of the faster ones.

Differential Revision: https://phabricator.services.mozilla.com/D46476
2019-09-20 01:06:51 +00:00
Mark Banner b082cd5a99 Bug 1579452 - Enable ESLint rule no-async-promise-executor on disabled locations for devtools. r=jlast
Depends on D45010

Differential Revision: https://phabricator.services.mozilla.com/D45999
2019-09-17 17:50:23 +00:00
Rob Wu ba5caba6b4 Bug 1570715 - Treat (deprecation) warnings as errors r=rpl
Add new preference `extensions.webextensions.warnings-as-errors` that
defaults to `true` in tests. Tests that expect warnings are modified
to briefly flip the pref for the specific part of the test that needs
an exception.

As part of the refactor, log entries for schema entries that contain
`"onError": "warn"` will now be prefixed by "Warning" instead of
"Error", to be consistent with the change from bug 1495908.

Differential Revision: https://phabricator.services.mozilla.com/D40548
2019-09-16 16:35:59 +00:00
Narcis Beleuzu 03798647d0 Backed out 2 changesets (bug 1570715) for causing tp6m raptor failures
Backed out changeset e7364a10a663 (bug 1570715)
Backed out changeset 51824b1dda97 (bug 1570715)
2019-09-14 16:00:00 +03:00
Rob Wu 5b549126d7 Bug 1570715 - Treat (deprecation) warnings as errors r=rpl
Add new preference `extensions.webextensions.warnings-as-errors` that
defaults to `true` in tests. Tests that expect warnings are modified
to briefly flip the pref for the specific part of the test that needs
an exception.

As part of the refactor, log entries forschema entries that contain
`"onError": "warn"` will now be prefixed by "Warning" instead of
"Error", to be consistent with the change from bug 1495908.

Differential Revision: https://phabricator.services.mozilla.com/D40548
2019-09-12 21:39:51 +00:00
Gabriel Luong 20052248e9 Bug 1568157 - Part 3: Replace toolbox.highlighter with the contextual HighlighterFront. r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D40316
2019-08-27 19:13:45 +00:00
Alexandre Poirot a0e1458f3f Bug 1576586 - Enable all about:debugging tests with fission. r=jdescottes,kmag
All these tests seem to work fine with Fission.

Differential Revision: https://phabricator.services.mozilla.com/D43401
2019-08-27 18:14:39 +00:00
Julian Descottes 52e596219d Bug 1566443 - Rename folder aboutdebugging-new to aboutdebugging r=remote-debugging-reviewers,daisuke
Depends on D43029

Differential Revision: https://phabricator.services.mozilla.com/D43025
2019-08-23 08:52:33 +00:00
Bogdan Tara 565479bb88 Backed out changeset ab25abaafa1b (bug 1566443) for es lint failure on helper-addons.js CLOSED TREE 2019-08-23 11:06:45 +03:00
Julian Descottes a5e0030129 Bug 1566443 - Rename folder aboutdebugging-new to aboutdebugging r=remote-debugging-reviewers,daisuke
Depends on D43029

Differential Revision: https://phabricator.services.mozilla.com/D43025
2019-08-23 06:05:15 +00:00
Julian Descottes 15ae00f4dc Bug 1539461 - Remove the old aboutdebugging codebase r=remote-debugging-reviewers,daisuke
Depends on D37863

Differential Revision: https://phabricator.services.mozilla.com/D37864
2019-07-16 16:24:57 +00:00
Alexandre Poirot 4cc4a20117 Bug 1543023 - Use ChromeUtils.import only with one argument in all /devtools/ r=jdescottes
ChromeUtils.import still support a second argument as it used to do
when it was Components.utils.import. But this is deprecated and we should
instead always use the returned value.

Differential Revision: https://phabricator.services.mozilla.com/D37708
2019-07-11 17:08:20 +00:00
Victor Porof b7732ae890 Bug 1561435 - Format devtools/client/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35884
2019-07-05 11:24:38 +02:00
Julian Descottes d69e99f79b Bug 1544372 - part2: filter out hidden webextensions by default in about:debugging r=daisuke,Ola
Depends on D28629
Follows exactly the same pattern as showSystemAddons. Enabled by default for local builds, disabled otherwise.

Differential Revision: https://phabricator.services.mozilla.com/D28630
2019-04-26 13:58:35 +00:00
Alexandre Poirot f86f76591b Bug 1540694 - Removed scopedCuImport usages. r=jdescottes
ChromeUtils.import no longer pollute the global scope,
so we can switch to it and remove this ancient helper.

Depends on D26078

Differential Revision: https://phabricator.services.mozilla.com/D26079
2019-04-09 08:44:03 +00:00
Julian Descottes 407cc7e97d Bug 1518469 - Enable new about:debugging by default;r=ladybenko
Differential Revision: https://phabricator.services.mozilla.com/D25061
2019-03-29 17:48:19 +00:00
Julian Descottes 3640b8dde1 Bug 1539209 - Skip aboutdebugging tests for sw warning on sw-e10s platforms r=ladybenko
Differential Revision: https://phabricator.services.mozilla.com/D24928
2019-03-27 09:40:08 +00:00
Daisuke Akatsuka d0fd757a28 Bug 1525533: Debug local addon as well via debugger client. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D20786
2019-02-25 13:52:17 +00:00
Julian Descottes e1d1e82125 Bug 1519455 - Fix browser_service_workers_push.js for sw-e10s refactor;r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D19466
2019-02-13 07:54: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
Julian Descottes f26acadfc4 Bug 1500383 - Fix conflicts between bugs 857456 and 1510620;r=daisuke
Depends on D15465

Some leftovers from previous bugs

Differential Revision: https://phabricator.services.mozilla.com/D15466
2019-01-07 10:27:28 +00:00
Julian Descottes b9bb565be0 Bug 1510620 - Migrate aboutdebugging tests using legacy addons to webextensions;r=ochameau
The browser_addons_debug_bootstrapped addon is completely removed because it is already
covered for webextensions with browser_addons_debug_webextensions.js

Other have either been migrated to use webextensions.

Differential Revision: https://phabricator.services.mozilla.com/D13255
2018-11-30 09:12:19 +00:00
Andrew Swan c87a25f6db Bug 857456 Part 0: Clean up remaining tests using legacy extensions r=kmag 2018-11-28 18:45:08 -08:00