Commit Graph
46 Commits
Author SHA1 Message Date
Dan Epstein c958bdf812 Bug 1402394 CamelCase all React component files in \devtools\client\shared\components\. r=pbro
MozReview-Commit-ID: HH4mbqB6RTK
2017-09-27 01:12:13 -04:00
Alexandre Poirot 3d76320218 Bug 1387123 - Replace all usages of require(promise).defer by require(devtools/shared/defer).defer. r=tromey
In prevision of Promise.jsm removal, use defer helper module instead of Promise.jsm
as that's the only one feature that DOM Promise don't support.

PART2: Substitutes promise.defer usages with defer
$ sed -i 's/promise.defer/defer/gI' $(egrep -lir "promise.defer\(\)" devtools)
  Reset modification to the following files as they are using deprecated syncable promises as we don't want to touch them.
  http://searchfox.org/mozilla-central/search?q=deprecated-sync-thenables&case=true&regexp=false&path=
$ git checkout devtools/client/debugger/test/mochitest/
$ git checkout devtools/shared/client/main.js
$ git checkout devtools/client/debugger/
$ git checkout devtools/server/main.js

MozReview-Commit-ID: DGN5ae68wtn
2017-08-08 15:24:04 +02:00
Alexandre Poirot 1f1a801a56 Bug 1387123 - Replace all usages of require(promise).defer by require(devtools/shared/defer).defer. r=tromey
In prevision of Promise.jsm removal, use defer helper module instead of Promise.jsm
as that's the only one feature that DOM Promise don't support.

PART1: Import devtools/shared/defer
$ sed -i '/require("promise")/a const defer = require("devtools/shared/defer");' $(egrep -lir "promise.defer\(\)" $(egrep -rl "require\(\"promise\"\)" devtools))
But ignore debugger as it still uses sync promises and would better be handled manually
$ git checkout devtools/client/debugger/
MozReview-Commit-ID: 7FvhNxULB2x
2017-08-08 15:33:56 +02:00
Julian Descottes 539b9c3a03 Bug 1387495 - dt-addon: use window object in webconsole/net/main to load stylesheets;r=jryans
From console/net/main.js we are calling loadSheet from sdk/stylesheet/utils.
This API needs a real window object to work, but now that devtools are loaded
as a system addon, by default the global object is a sandbox wrapper.

Use the window object which points to the actual Window instead.

MozReview-Commit-ID: LxDNfDiOso3
2017-07-12 19:26:33 +02:00
Sebastian Hengst 48a3ab21ca merge mozilla-central to mozilla-inbound. r=merge a=merge on a CLOSED TREE 2017-07-27 18:20:18 +02:00
Sebastian Hengst 32ea619857 Backed out changeset 192d517219c1 (bug 1369801)
MozReview-Commit-ID: KeLy0a8hjVF
2017-07-27 18:14:38 +02:00
Sebastian Hengst d66790bf1e Backed out changeset 3ab3a5481b90 (bug 1369801)
MozReview-Commit-ID: KOBAIPo7laO
2017-07-27 18:14:13 +02:00
Junior Hsu f3a99c30c7 Bug 1373198 - Part 12: Disable RCWN for the devtools mochitest. r=rickychien 2017-07-26 04:18:00 -04:00
Julian Descottes 5554fc2ba6 Bug 1369801 - dt-addon: use window object in webconsole/net/main to load stylesheets;r=jryans
From console/net/main.js we are calling loadSheet from sdk/stylesheet/utils.
This API needs a real window object to work, but now that devtools are loaded
as a system addon, by default the global object is a sandbox wrapper.

Use the window object which points to the actual Window instead.

MozReview-Commit-ID: LxDNfDiOso3
2017-07-12 19:26:33 +02:00
Julian Descottes 8c0c562ada Bug 1369801 - dt-addon-xpcshell: load devtools addon for xpcshell tests;r=bgrins
MozReview-Commit-ID: 4EyclGKca0t
2017-07-11 12:30:22 +02:00
Jan Odvarko f842b59be1 Bug 1378825 - Stop using sdk/stylesheet/utils in DevTools; r=zer0
MozReview-Commit-ID: F26gvdnTbhT
2017-07-10 11:10:55 +02:00
Tom Tromey 97e45c1b8b Bug 1317962 - use source maps in stack traces in the console; r=jryans
MozReview-Commit-ID: 9SPZDi50XZv
2017-05-02 12:51:51 -06:00
Dragana Damjanovic 7103eb740f Bug 1334776 - ResponseHeader Visitor will get original header casing. We need to fix it at some places in devtools. 2017-04-27 16:48:43 +02:00
nchevobbe d8840a78b0 Bug 1358103 - Remove createFactory call on Reps; r=jdescottes
The new Reps bundle from Bug 1357341 is all about functions now,
so we should remove all unnecessary `createFactory` calls
we used to do when creating Reps.

MozReview-Commit-ID: 4KvCThhwphv
2017-04-21 08:50:24 +02:00
nchevobbe e6b2727561 Bug 1355454 - Move "createFactories" function from Reps to a shared util. r=jdescottes
MozReview-Commit-ID: LmGBg2HSzOC
2017-04-12 08:33:37 +02:00
Julian Descottes ffa358a329 Bug 1340806 - stop using load-reps wrapper;r=nchevobbe
MozReview-Commit-ID: GL9Sm6W2JCM
2017-02-18 22:43:22 +01:00
Florian Quèze c32c931bc9 Bug 1334831 - script-generated patch to use .remove() instead of .parentNode.removeChild, r=jaws. 2017-01-30 08:10:22 +01:00
Mark Banner 55868dde7c Bug 503613 - Remove old 'tail =' lines from xpcshell.ini files; r=gps
MozReview-Commit-ID: 62Hp5ISxowJ
2017-01-18 10:30:39 +00:00
Julian Descottes f79f7d5fef Bug 1325401 - Add a reps bundle, disabled by default;r=jlast
MozReview-Commit-ID: IJL8wevR0wo
2017-01-18 14:38:10 +01:00
Florian Quèze f412bc04ab Bug 1330464 - script-generated removal of additional parameters that don't exist in the interface, r=jaws. 2017-01-13 20:21:53 +01:00
Nicolas Chevobbe 3f9b359e8f Bug 1312178 - Make Reps modes constants; r=Honza
Edit tests and component creation accordingly.

MozReview-Commit-ID: Gsj6QwNTjL0
2016-11-20 19:53:16 +01:00
Jared Wein 2dfc7371c2 Bug 1316096 - Change eslint configuration to use string values for rules instead of integers, making it easier for others who are reading the rules to know if a rule is set to off, warn, or error. r=mossop
MozReview-Commit-ID: 2Xuj5nxuQdO
2016-11-08 15:14:19 -05:00
Sebastian Hengst 2fecbac0d0 Bug 1310297 - Remove test annotations using b2g, mulet or gonk: devtools. r=RyanVM
MozReview-Commit-ID: DZit0XSS1yk
2016-11-05 11:29:14 +01:00
Tom Tromey 1976c3df85 Bug 1312041 - remove requireRawId rewriting in favor of Loader paths; r=jryans
MozReview-Commit-ID: 6OSszbKpp74
2016-10-25 21:30:18 -06:00
Wes Kocher 20d9f9713d Backed out 2 changesets (bug 1312041) for mass failures a=backout
Backed out changeset c4f42d7d5453 (bug 1312041)
Backed out changeset 9bfbc8480d43 (bug 1312041)
2016-11-01 10:30:45 -07:00
Tom Tromey d1b2d82846 Bug 1312041 - remove requireRawId rewriting in favor of Loader paths; r=jryans
MozReview-Commit-ID: 6OSszbKpp74
2016-10-25 21:30:18 -06:00
Phil Ringnalda 5359f7fbb2 Merge m-i to m-c, a=merge
MozReview-Commit-ID: FA9OZyjP59N
2016-10-18 19:36:18 -07:00
Mark Banner 233309fbe2 Bug 1251003 - Change .eslintrc files to .eslintrc.js to avoid obsolete config file format. r=mossop
MozReview-Commit-ID: JrbFxQ5rj6I
2016-10-18 08:38:10 +01:00
Jan Odvarko fc216c34ed Bug 1309243 - Use unique key property; r=nchevobbe 2016-10-17 18:11:40 +02:00
Brian Grinstead c2fe846abb Bug 1306124 - Getting tests outside of webconsole/ to work when the new output area is on by default;r=linclark
MozReview-Commit-ID: Gva7BnXw9PL
2016-09-28 14:29:16 -07:00
Brian Grinstead ef7e7f9d9a Bug 1304804 - Don't set a default cropLimit for reps;r=Honza
MozReview-Commit-ID: HVHqkomVrLW
2016-09-26 11:49:54 -07:00
Alexandre Poirot e689948770 Bug 1303288 - Pass the window object instead of current scope to prevent wrapper issues when using the devtools reload addon. r=jlongster
If we happen to pass the current scope (`this`), the browser-loader codebase fails
when passing it as sandboxPrototype. It only works when passing an xray wrapper.
The document scope happen to not be an xray when using the addon, whereas `window`
always is no matter if we are using the addon or not.

MozReview-Commit-ID: GjYHkaCGBDd
2016-09-21 08:07:02 -07:00
Julian Descottes 3479010529 Bug 1298012 - update references to devtools/client/shared/l10n -> devtools/shared/l10n;r=bgrins
MozReview-Commit-ID: 6p5ADjlbsHu
2016-08-25 17:02:50 +02:00
Ricky Chien e040d42ac5 Bug 1290437 - Fix and land the console netlogging tests r=jsnajdr
MozReview-Commit-ID: 9HRfcfn8g6b
2016-08-17 16:24:56 +08:00
Julian Descottes 9bd9cb2ea3 Bug 1295609 - Migrate devtools/client/webconsole to use l10n.js instead of Services.string;r=bgrins
MozReview-Commit-ID: 65AyxZ68GHt
2016-08-19 20:31:50 +02:00
Jarda Snajdr 5e378f6dc2 Bug 1287172 - Console netlogging: sanitize POST body data when it's a longString. r=bgrins 2016-07-28 02:49:00 -04:00
Tom Tromey 1b5a2bdb96 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx
2016-07-14 10:16:42 -06:00
gasolin e9be1adc41 Bug 1264701 - combine url utils to rep-utils.js; r=linclark
MozReview-Commit-ID: Gdtg6Nf1Spj
2016-07-12 11:53:24 +08:00
Jarda Snajdr 251f929cf9 Bug 1281732 - Part 5: Style cleanup for HTTP console log messages r=Honza 2016-06-24 09:15:00 +02:00
Jarda Snajdr ffd7df06c0 Bug 1281732 - Part 4: Add stack trace tab to HTTP console log message r=Honza 2016-06-28 09:29:00 +02:00
Jan Odvarko f4c2f1dcd1 Bug 1279215 - Move Tabs component to shared/components; r=pbro 2016-06-09 16:19:49 +02:00
J. Ryan Stinnett 169c44d5f6 Bug 1193390 - Remove single arg Cu.import from /devtools. r=tromey
A few miscellaneous linting issues also addressed near the lines involved.

MozReview-Commit-ID: 9t1RwxdSS2X
2016-06-09 14:10:07 -05:00
J. Ryan Stinnett 530b903fcf Bug 1271084 - Apply ESLint autofixes to ignored /devtools files. r=tromey
For simple rules like function spacing, we can auto-fix these across the code
base so they are followed in a consistent way.

To generate this patch, I ran:

./mach eslint devtools --no-ignore --fix

After this, I reverted any changes to third party files that we really do want
to ignore.

MozReview-Commit-ID: 6Q8BApkAW20
2016-05-18 12:49:23 -05:00
James Long ece81a7a77 Bug 1265775 - replace Cu.reportError with console.error in devtools client code r=tromey 2016-05-06 11:29:10 -04:00
Jan Odvarko 1c10da8595 Bug 1266021 - Remove bottom border for HTTP details tab. r=helenvholmes 2016-04-20 12:22:11 +02:00
Jan Odvarko b45550fc24 Bug 1211525 - HTTP log inspection in the Console panel; r=jlongster,helenvholmes,bgrins,linclark a=kwierso
MozReview-Commit-ID: AA1xxjJtCPQ
2016-02-12 18:25:09 +01:00