Commit Graph
107 Commits
Author SHA1 Message Date
Alexandre Poirot 50cc9ad5c6 Bug 1566457 - Only export require, loader and DevToolsLoader from Loader.jsm r=jdescottes
The rest was legacy code to support old xul add-ons.
All mozilla-central code used to be refactored, but a few places
were still using the old codepaths.

Differential Revision: https://phabricator.services.mozilla.com/D38283
2019-07-18 12:25:03 +00:00
Alexandre Poirot 9678619dce Bug 1566457 - Remove unused codepath in the base loader for non-shared globals. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D38281
2019-07-18 12:24:54 +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
Belén Albeza 5de27e666a Bug 1554133 - Part 1: move about:debugging's l10n module to a shared folder r=jdescottes,Ola
Differential Revision: https://phabricator.services.mozilla.com/D32735
2019-06-04 14:08:50 +00:00
Bogdan Tara a59a03377d Backed out 2 changesets (bug 1554133) for package related build bustages CLOSED TREE
Backed out changeset 72ae1ac933ac (bug 1554133)
Backed out changeset c48321582c78 (bug 1554133)
2019-06-04 17:05:53 +03:00
Belén Albeza 536b8c8e3a Bug 1554133 - Part 1: move about:debugging's l10n module to a shared folder r=jdescottes,Ola
Differential Revision: https://phabricator.services.mozilla.com/D32735
2019-06-03 12:15:17 +00:00
Gabriel Luong 56c023d16c Bug 1555114 - Convert the TextEditor markup into a React component. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D32882
2019-05-28 15:42:28 -04:00
Julian Descottes f7fdec6e6f Bug 1500072 - Add browserLoader reference on window when flags.testing is true;r=ochameau
Depends on D19582

Differential Revision: https://phabricator.services.mozilla.com/D19638
2019-02-13 15:44:05 +00:00
Cosmin Sabou 4cd2e64b04 Backed out 4 changesets (bug 1500074, bug 1500072) for devtools failures on browser_require_raw.js. CLOSED TREE
Backed out changeset 81a368ce3847 (bug 1500074)
Backed out changeset 7e6a4063398d (bug 1500072)
Backed out changeset 4003039a82c0 (bug 1500072)
Backed out changeset accf4033d8cc (bug 1500072)
2019-02-13 17:00:13 +02:00
Julian Descottes bf3f3783f5 Bug 1500072 - Add browserLoader reference on window when flags.testing is true;r=ochameau
Depends on D19582

Differential Revision: https://phabricator.services.mozilla.com/D19638
2019-02-13 13:47:01 +00:00
Noemi Erli 7e0bb8fb97 Backed out 4 changesets (bug 1500074, bug 1500072) for devtools failures in browser_browserloader_mocks.js CLOSED TREE
Backed out changeset e381b765ee73 (bug 1500074)
Backed out changeset 7cb353ea123d (bug 1500072)
Backed out changeset 9d792d03c36b (bug 1500072)
Backed out changeset a11b90e9e698 (bug 1500072)
2019-02-13 15:32:27 +02:00
Julian Descottes 99783ae39d Bug 1500072 - Add browserLoader reference on window when flags.testing is true;r=ochameau
Depends on D19582

Differential Revision: https://phabricator.services.mozilla.com/D19638
2019-02-13 10:04:01 +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 9ba310f81c Bug 1510545 - Move mock support to browser-loader and shared test helper;r=ochameau,ladybenko
Differential Revision: https://phabricator.services.mozilla.com/D13751
2018-12-13 18:02:09 +00: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
Michael Ratcliffe 34e6287300 Bug 1440609 - Uncouple DEBUG_JS_MODULES and DEBUG in devtools code r=jryans
MozReview-Commit-ID: 6qiu3D5eYyn
2018-03-13 12:49:39 +00: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 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
Mike Ratcliffe a4aea540c6 Bug 1416824 - Patch 1: React 16 Require statements and paths r=nchevobbe
MozReview-Commit-ID: 7BDgpYfLZLH
2018-02-07 16:31:57 +00:00
Alexandre Poirot 13e5d4f0f5 Bug 1434374 - Auto-rewrite Cu.import into ChromeUtils.import or require calls. r=jdescottes
MozReview-Commit-ID: 7YyLu5q23Hs
2018-02-07 01:37:36 -08:00
Andreea Pavel 7ff759117e Backed out 3 changesets (bug 1416824) for mochitest chrome failures at devtools/client/shared/components/test/mochitest/test_notification_box_01.html on a CLOSED TREE
Backed out changeset dc4675fd3257 (bug 1416824)
Backed out changeset b2aebf1d7ee7 (bug 1416824)
Backed out changeset f52006e2a1dc (bug 1416824)
2018-02-07 21:06:58 +02:00
Mike Ratcliffe ea3eba7c8e Bug 1416824 - Patch 1: React 16 Require statements and paths r=nchevobbe
MozReview-Commit-ID: 7BDgpYfLZLH
2018-02-07 16:31:57 +00: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
Michael Ratcliffe fdb9244b1b Bug 1413860 - Shared components to use prop-types and react-dom-factories r=nchevobbe
@nchevobbe: Please wait for a green try before reviewing this.

MozReview-Commit-ID: 9SLEHAq0IQQ
2017-11-03 13:34:41 +00:00
Narcis Beleuzu 6f6d04c41c Backed out changeset 9029ee56b1ad (bug 1413860) for mochitest clipboard failures on browser_jsterm_selfxss.js. r=backout on a CLOSED TREE 2017-11-13 14:16:40 +02:00
Michael Ratcliffe 658587160e Bug 1413860 - Shared components to use prop-types and react-dom-factories r=nchevobbe
@nchevobbe: Please wait for a green try before reviewing this.

MozReview-Commit-ID: 9SLEHAq0IQQ
2017-11-03 13:34:41 +00:00
Gabriel Luong ed5da7f515 Bug 1411161 - Adds an initial react/redux template for loading an Events View in the inspector sidebar. r=pbro 2017-10-26 12:38:09 -04:00
Gabriel Luong 7cf818ce85 Bug 1411160 - Adds an initial react/redux template for loading a Changes View in the inspector sidebar. r=pbro 2017-10-26 11:32:46 -04:00
Sebastian Hengst 748467607f Backed out changeset 8e4cadda2d01 (bug 1411160) for build bustage due to duplicate files. r=backout 2017-10-26 22:31:00 +02:00
Sebastian Hengst c0d609a3b6 Backed out changeset 2db16a02d6d1 (bug 1411161) 2017-10-26 22:30:55 +02:00
Gabriel Luong 3b6e299fba Bug 1411161 - Adds an initial react/redux template for loading an Events View in the inspector sidebar. r=pbro 2017-10-26 12:38:09 -04:00
Gabriel Luong 31909d2750 Bug 1411160 - Adds an initial react/redux template for loading a Changes View in the inspector sidebar. r=pbro 2017-10-26 11:32:46 -04:00
Sebastian Hengst d264a45df0 Backed out changeset b44af7ae9208 (bug 1411160) for build bustage (duplicate files). r=backout on a CLOSED TREE 2017-10-26 19:12:18 +02:00
Sebastian Hengst 80ae632050 Backed out changeset 044aef4aae23 (bug 1411161) for depending on also backed out bug 1411160. r=backout on a CLOSED TREE 2017-10-26 19:10:44 +02:00
Gabriel Luong 7a42c59678 Bug 1411161 - Adds an initial react/redux template for loading an Events View in the inspector sidebar. r=pbro 2017-10-26 12:38:09 -04:00
Gabriel Luong e55b934e3d Bug 1411160 - Adds an initial react/redux template for loading a Changes View in the inspector sidebar. r=pbro 2017-10-26 11:32:46 -04:00
Gabriel Luong d4cf578930 Bug 1409967 - Adds an initial react/redux template for loading a flexbox accordion in the Layout panel. r=pbro 2017-10-25 16:12:28 -04:00
Michael Ratcliffe 99ac6efb0f Bug 1399493 - Upgrade to React 15.6.1 and include dev & prod version r=jdescottes,jlast
- Removed devtools.react.dev pref
- Changed condition that cause react dev files to be loaded (back to what they were before my change):
  - .mozconfig contains `ac_add_options --enable-debug-js-modules`
  - .mozconfig contains ac_add_options --enable-debug
- Successful try run: https://treeherder.mozilla.org/#/jobs?repo=try&revision=6182dd41e4d611b6e32a7d6efd16991acd256a2f

MozReview-Commit-ID: JpvL8cRxPcL
2017-09-14 13:32:06 +01:00
Alexandre Poirot 8572cf8e9b Bug 1392602 - Simplify SDK loader to only match DevTools needs. r=jdescottes
MozReview-Commit-ID: 5MUEmCW6AJM
2017-08-28 14:52:07 +02:00
Alexandre Poirot 4ab9f6f378 Bug 1392602 - Copy SDK Loader to devtools. r=jdescottes
MozReview-Commit-ID: 6INu38Wqvt
2017-08-24 15:17:33 +02:00
Julian Descottes 7efd105220 Bug 1392998 - remove devtools hotreload feature;r=bgrins
MozReview-Commit-ID: 2XC5V0nxaKX
2017-08-23 13:26:58 +02:00
Mike Park 0395cb2eea Bug 1363097 - Convert font inspector to React/Redux. r=gl
MozReview-Commit-ID: Du5ZqnnLaE1
2017-05-10 14:57:05 -04:00
Alexandre Poirot bf66c3a620 Bug 1355994 - Stop flagging DevTools sandboxes with an Addon ID. r=kmag
MozReview-Commit-ID: 5aJ5osJIt5i
2017-04-24 11:38:13 +02:00
Florian Queze 451928e614 Bug 1356569 - Remove notifyObservers' last parameter when it is falsy, r=jaws. 2017-04-14 21:51:39 +02:00
Sebastian Hengst f75839c723 Backed out changeset 55f3df15eaa6 (bug 1356569) 2017-04-14 23:39:17 +02:00
Florian Queze 61aabdf237 Bug 1356569 - Remove notifyObservers' last parameter when it is falsy, r=jaws. 2017-04-14 21:51:39 +02:00
J. Ryan Stinnett ba0f98278b Bug 1349360 - Add source-map to browser-based list. r=ochameau
`devtools-source-map` uses `Worker` which needs a window, so it seems reasonable
to mark it as browser-based.

MozReview-Commit-ID: 93dCLoj0HDu
2017-03-21 16:11:13 -05:00
Gabriel Luong fed5e64dca Bug 1342305 - Refactor grid inspector into its own grids folder. r=jdescottes 2017-02-24 14:14:04 -05:00