Commit Graph
36 Commits
Author SHA1 Message Date
Nicolas Chevobbe 1dacfa3c68 Bug 1568193 - Remove devtools/client/shared/webpack/shims/jsterm-stub.js. r=ochameau.
The file isn't used anywhere, so we can probably
remove it safely.

Differential Revision: https://phabricator.services.mozilla.com/D39026
2019-07-23 19:26:53 +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
Victor Porof 84b7635dee Bug 1558517 - Pre 3.0: Remove conflicting eslint rules, and turn on "curly: all" everywhere, r=standard8
Differential Revision: https://phabricator.services.mozilla.com/D34535
2019-06-28 17:14:01 +02:00
Joel Maher 41ecc30f4a Bug 1546459 - remove subsuite=clipboard from manifests. r=ahal
remove subsuite=clipboard from manifests

Differential Revision: https://phabricator.services.mozilla.com/D28521
2019-05-01 08:16:44 +00:00
Brian Grinstead 6bf5cf3d2a Bug 1544322 - Part 2.1 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in everything except for dom/ r=bzbarsky
This excludes dom/, otherwise the file size is too large for phabricator to handle.

This is an autogenerated commit to handle scripts loading mochitest harness files, in
the simple case where the script src is on the same line as the tag.

This was generated with https://bug1544322.bmoattachments.org/attachment.cgi?id=9058170
using the `--part 2` argument.

Differential Revision: https://phabricator.services.mozilla.com/D27456
2019-04-16 03:50:44 +00:00
Nicolas Chevobbe 8a8d018dff Bug 1463128 - Expose setInputValue and getInputValue at hud level; r=Honza.
Now that the JsTerm is a React component, we shouldn't
let external consumers have to get the instance in order
to perform some actions on the console input.
We start with the most used actions, setInputValue and getInputValue,
and might extend that in the future.

Differential Revision: https://phabricator.services.mozilla.com/D20685
2019-02-27 10:09:35 +00:00
Gurzau Raul 3ee8fd7ce9 Backed out 5 changesets (bug 1463128) for failing at webconsole/autocomplete.js on a CLOSED TREE.
Backed out changeset 31a85e2ed53e (bug 1463128)
Backed out changeset fcd93f64c934 (bug 1463128)
Backed out changeset ae460b3a30c2 (bug 1463128)
Backed out changeset 97a1eeb8db65 (bug 1463128)
Backed out changeset c504e9730eac (bug 1463128)
2019-02-27 00:19:15 +02:00
Nicolas Chevobbe 6ac4e9955c Bug 1463128 - Expose setInputValue and getInputValue at hud level; r=Honza.
Now that the JsTerm is a React component, we shouldn't
let external consumers have to get the instance in order
to perform some actions on the console input.
We start with the most used actions, setInputValue and getInputValue,
and might extend that in the future.

Differential Revision: https://phabricator.services.mozilla.com/D20685
2019-02-26 14:42:13 +00:00
Nicolas Chevobbe c3ec87944a 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
2019-02-15 08:17:43 +00:00
Nicolas Chevobbe 8f4e7fdfd0 Bug 1526247 - Rename webconsole-output-wrapper; r=bgrins.
This file used to only manage the output, but
this is not true anymore, and the name could
be misleading.
We take this as an opportunity to cleanup
some property names and CSS classes.

Differential Revision: https://phabricator.services.mozilla.com/D19135
2019-02-11 06:42:28 +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
yulia efdd4b6d57 Bug 1519107 - make evaluateJS calls use promise pattern rather than callbacks; r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D16194
2019-01-21 13:45:03 +00:00
Alexandre Poirot 4de8dbcb83 Bug 1502910 - Remove TimelineActor. r=Honza
MozReview-Commit-ID: DtmS18EYw12

Depends on D10186

Differential Revision: https://phabricator.services.mozilla.com/D10187
2018-10-30 10:49:19 +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
Brian Grinstead 75d3793526 Bug 1425552 - Move clearOutput and clearPrivateMessages from the jsterm and onto the WebConsoleFrame;r=nchevobbe
MozReview-Commit-ID: 9lJW7qt64DT
2018-06-02 16:44:08 -07: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 5618abeaa4 Bug 1460841 - Console clean up: rename internal modules; r=nchevobbe
MozReview-Commit-ID: 7rDoXy8ROAe
2018-05-24 18:11:14 +02:00
Zhang Junzhi 90e65cc4ee Bug 1454910 - Replaces the unicode-url stub with an actual unicode-url shim in the Developer Tools r=nchevobbe
MozReview-Commit-ID: vWJPYgc4uw
2018-05-03 13:33:47 +08:00
Zhang Junzhi 9470148fb1 Bug 1448553 - Part 2: Decodeds Punycode-encoded international domain names and URI-encoded filenames in the Web Console so that they are displayed as human-readable Unicode text. r=nchevobbe
The Punycode-encoded international domain names and URI-encoded filenames are
human-unreadable, so they should be displayed as human-readable Unicode text.
This commit decodes this kind of names in the Web Console.

MozReview-Commit-ID: 8AVLkdaQOh6
2018-04-02 15:23:22 +08:00
Mike Ratcliffe 87cde2de5f Bug 1448287 - Fix devtools.dump.emit when using new event emitter r=jdescottes
components.stack is not always available, throw new Error() to obtain a stack instead.

MozReview-Commit-ID: BZq7zLKgA9H
2018-03-23 15:34:22 +00:00
Nicolas Chevobbe e1aae8e4ed Bug 1451821 - Move new-console-output content one folder up; r=jdescottes.
Now that the old frontend is in a dedicated folder, we can
remove the new-console-output folder and move its content
to devtools/client/webconsole, which will prevent confusion
while the old frontend is still around.

MozReview-Commit-ID: 57yM7IZhmAK
2018-04-06 15:03:20 +02:00
Julian Descottes 0a049a8375 Bug 1447154 - Use AppConstants.jsm instead of devtools/shared/system to get constants;r=jryans,nchevobbe
devtools/shared/system is a complex module retrieving details device/platform
information. Modules that only need to get AppConstants should not pull down
such a complex dependency.

MozReview-Commit-ID: 2FmCO8nBSpP
2018-03-19 22:18:20 +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
yulia bd093feca1 Bug 1382605 - Fix 6 tests failures on devtools/client/shared due the EventEmitter refactoring r=nchevobbe
MozReview-Commit-ID: EaFYqaY2M79
2018-03-07 10:17:03 +01:00
Masayuki Nakano efaea0aaa7 Bug 1438157 - part 2: Remove unnecessary second argument of EventUtils.synthesizeKey() r=smaug
Note that this patch also replaces legacy VK_* with KEY_*, and replaces
synthesizeKey() for inputting some characters with sendString() because
it's better and clearer what it does and it sets shiftKey state properly.

MozReview-Commit-ID: De4enbjux3T
2018-02-15 04:15:39 +09: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
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
pd4d10 768aac0c40 Bug 1427077 - Make devtools/client/netmonitor work correctly at browser r=rickychien
Replace `loader.lazyGetter` pattern with normal variable assignment

MozReview-Commit-ID: JJTXKgXRgBZ
2018-01-03 21:33:57 +08:00
Noemi Erli 93cd0a8ef0 Backed out changeset 591cf97d4777 (bug 1427077) for ES failures in /builds/worker/checkouts/gecko/devtools/client/shared/webpack/rewrite-lazy-getter.js r=backout on a CLOSED TREE 2018-01-04 10:42:44 +02:00
pd4d10 33c84eb0be Bug 1427077 - Make devtools/client/netmonitor work correctly at browser r=rickychien
Replace `loader.lazyGetter` pattern with normal variable assignment

MozReview-Commit-ID: I08f8hnQ0nN
2018-01-03 21:33:57 +08:00
Nicolas Chevobbe 05bd351afa Bug 1403106 - Fix rewrite-lazy require for non-named modules; r=Honza
MozReview-Commit-ID: 3vGooT3G450
2017-10-04 12:22:15 +02:00
Julian Descottes 5ff5c03294 Bug 1403489 - remove special loader rule for devtools/shared/platform;r=tromey
MozReview-Commit-ID: HwhAXHm8ipq
2017-09-27 12:38:23 +02:00
Julian Descottes e5f2f489c6 Bug 1403175 - move webpack shims to dedicated folder;r=Honza
MozReview-Commit-ID: 5oDee2Pb9ly
2017-09-27 12:07:39 +02:00
Jan Odvarko fc93a9f92b Bug 1399390 - Use lazy-require in Netmonitor's webpack.config; r=jdescottes
MozReview-Commit-ID: Lt07vlWXLeg
2017-09-14 10:53:27 +02:00
Jan Odvarko 043de7eb4d Bug 1395834 - Implement theme loader; r=nchevobbe
MozReview-Commit-ID: 5AR0AX5tTnB
2017-09-14 10:03:26 +02:00
Jan Odvarko 3a4dcd4a86 Bug 1395834 - Launchpad is broken; r=nchevobbe
MozReview-Commit-ID: CdeEvvE6ExB
2017-09-14 09:50:54 +02:00