Commit Graph
34 Commits
Author SHA1 Message Date
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
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
Mark Banner 3d6aaad3f5 Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D8389
2018-10-19 12:55:39 +00:00
Julian Descottes 82711b9a8f Bug 1454696 - Run eslint --fix for prefer-const;r=yulia
MozReview-Commit-ID: F6xUXCgdRE4
2018-06-01 12:36:09 +02:00
Jan Odvarko 27240cd3d4 Bug 1436665 - Do not fire events on window, update tests; r=ochameau
MozReview-Commit-ID: BbZJQiipg3K
2018-04-17 14:38:25 +02:00
Jan Odvarko aa172b6afb Bug 1436665 - Expose Net panel API without the UI; r=ochameau
MozReview-Commit-ID: 31ceGL3zWzl
2018-04-17 14:09:34 +02:00
Narcis Beleuzu 5aae1271ef Backed out 3 changesets (bug 1436665) for talos damp failures on toolbox/panels-in-background.js. CLOSED TREE
Backed out changeset 2120b4c84746 (bug 1436665)
Backed out changeset b3702a775b16 (bug 1436665)
Backed out changeset 3ddbbd0330a1 (bug 1436665)
2018-04-17 15:09:29 +03:00
Jan Odvarko 7c40353dad Bug 1436665 - Do not fire events on window, update tests; r=ochameau
MozReview-Commit-ID: 2iwybUcHOri
2018-04-17 13:14:31 +02:00
Jan Odvarko 2a12f04e40 Bug 1436665 - Expose Net panel API without the UI; r=ochameau
MozReview-Commit-ID: 7oJMjsC8K9x
2018-04-17 12:59:06 +02:00
Cosmin Sabou 0c76926324 Backed out 3 changesets (bug 1436665) for talos damp failures on netmonitor/simple.js. CLOSED TREE
Backed out changeset 09030f59fbea (bug 1436665)
Backed out changeset 513c72b05382 (bug 1436665)
Backed out changeset 4b8fe40857db (bug 1436665)
2018-04-17 13:05:42 +03:00
Jan Odvarko fee14176d0 Bug 1436665 - Do not fire events on window, update tests; r=ochameau
MozReview-Commit-ID: K5xd0UmyKb
2018-04-13 15:51:03 +02:00
Jan Odvarko a4baf75f72 Bug 1436665 - Expose Net panel API without the UI; r=ochameau
MozReview-Commit-ID: 2Nuk6OZVk4Z
2018-04-13 15:49:08 +02:00
Jonathan Kingston 01b84d1382 Bug 1374741 - Within devtools/ make openUILinkIn() provide the correct triggeringPrincipal. r=jryans
MozReview-Commit-ID: KecQcZWeU6a
2018-02-21 16:01:03 +00:00
Jan Odvarko ee647fc677 Bug 1448288 - Make devtools.network.getHAR API compatible with Chrome; r=rpl
MozReview-Commit-ID: 7woAf8iVC3B
2018-03-23 14:38:32 +01:00
yulia 5ada4523c8 Bug 1382602 - update devtools/client/netmonitor to use new event emitter. r=Honza,nchevobbe
MozReview-Commit-ID: 6cEqHUGaMlM
2018-03-14 14:58:24 +01:00
J. Ryan Stinnett 8d1c817851 Bug 1443081 - Apply spacing via eslint --fix for DevTools. r=jdescottes
MozReview-Commit-ID: 2RVNt140Zte
2018-03-12 13:44:41 -05:00
Jan Odvarko bc4033db7e Bug 1434855 - Refactor HAR builder options; r=ochameau
MozReview-Commit-ID: FRcxp4XPFdf
2018-03-08 10:07:45 +01:00
Sebastian Hengst 2b9d95d380 Backed out 2 changesets (bug 1434855) for failing browser-chrome's browser/components/extensions/test/browser/browser_ext_devtools_network.js. CLOSED TREE
Backed out changeset ceea3f9776b1 (bug 1434855)
Backed out changeset a87683b49741 (bug 1434855)
2018-03-07 20:21:55 +02:00
Jan Odvarko b9ac26fa82 Bug 1434855 - Refactor HAR builder options; r=ochameau
MozReview-Commit-ID: A6wd5LvD19J
2018-03-07 13:33:19 +01:00
Jan Odvarko a4594dffd0 Bug 1419350 - Stop doing React updates while netmonitor is in background; r=ochameau
MozReview-Commit-ID: FvKFDiM8xNB
2018-03-01 10:48:26 +01:00
Narcis Beleuzu 70d4b21f98 Backed out 2 changesets (bug 1419350) for devtools failures on browser_webconsole_network_messages_expand.js. CLOSED TREE
Backed out changeset 0fc7db6c6c56 (bug 1419350)
Backed out changeset b0d6b6657a6e (bug 1419350)
2018-03-01 03:49:49 +02:00
Jan Odvarko 1fb3793d1e Bug 1419350 - Stop doing React updates while netmonitor is in background; r=ochameau
MozReview-Commit-ID: J0z0ALxQqC0
2018-02-28 17:29:45 +01:00
Jan Odvarko 8def340c04 Bug 1434333 - Import an existing HAR file; r=ochameau
MozReview-Commit-ID: Gmzy25yOfAc
2018-02-07 15:05:43 +01:00
Jan Odvarko 66dc3cbede Bug 1311171 - Implement the devtools.network.onRequestFinished API event; r=jdescottes,rpl
MozReview-Commit-ID: IymuzcUg0VN
2018-02-14 11:32:10 +01:00
Jan Odvarko fd5c7d0350 Bug 1174091 - Output 'load' and 'DOMContentLoaded' event to HAR; r=ochameau
MozReview-Commit-ID: 9bWXf9At2DC
2018-02-01 16:37:06 +01: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:
https://bitbucket.org/kmaglione/m-c-rewrites/src/37e3803c7a23385bab5ea077ba8692bcfe1608fc/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:
https://bitbucket.org/kmaglione/m-c-rewrites/src/37e3803c7a23385bab5ea077ba8692bcfe1608fc/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:
https://bitbucket.org/kmaglione/m-c-rewrites/src/37e3803c7a23385bab5ea077ba8692bcfe1608fc/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Jan Odvarko 0461788e8d Bug 1311177 - Implement the devtools.network.getHAR API method; r=jdescottes,rickychien,rpl
MozReview-Commit-ID: gUtGjbr0FQ
2018-01-22 18:30:46 +01:00
Margareta Eliza Balazs b3373e3395 Backed out changeset 32daec7fd5b6 (bug 1311177) for bc5 failures in browser/components/extensions/test/browser/test-oop-extensions/browser_ext_devtools_network.js on a CLOSED TREE 2018-01-19 11:54:43 +02:00
Jan Odvarko 36b111ba95 Bug 1311177 - Implement the devtools.network.getHAR API method; r=jdescottes,rickychien,rpl
MozReview-Commit-ID: I9F4tGSwBrt
2018-01-17 13:32:42 +01:00
Jan Odvarko 3aa7a78e17 Bug 1428777 - Rename index files; r=gasolin
MozReview-Commit-ID: EI18B77FKJL
2018-01-10 17:16:37 +01:00