Commit Graph
67 Commits
Author SHA1 Message Date
Nicolas Chevobbe fee723d060 Bug 1403895 - Remove devtools/shared/client/main.js; r=ochameau.
Remove the main file that we don't need anymore and modify all
the imports to target the specific file they now need.

MozReview-Commit-ID: 2uWjTnAMAU0
2017-09-29 15:24:14 +02:00
Tom Tromey 2c4ab81b95 Bug 1395262 - use plain console.error in devtools promise catches; r=bgrins
MozReview-Commit-ID: C8IhVPckQJ7
2017-08-30 12:05:41 -06:00
Alexandre Poirot 946ab8adea 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.

PART3: Manual fixes
- Go manually fix: http://searchfox.org/mozilla-central/source/devtools/client/dom/dom-panel.js
  which has duplicated import of defer symbol (it already used to import it)
- execute eslint, see all the places where we import of 'promise' is no longer use it
  (there may be leftovers not covered by eslint that will be covered in bug 1387128)
  devtools/server/tests/mochitest/inspector-helpers.js needs to keep importing promise as it is a shared test script.
- fix devtools/client/performance/panel.js and devtools/client/webconsole/console-output.js
  which use loader.lazyRequireGetter(this, "promise") and miss the defer import
- fix devtools/server/worker.js to use 'worker.require(devtools/shared/defer")'

MozReview-Commit-ID: HIOB5Et87Wc
2017-08-08 15:19:56 +02: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
Jan Odvarko 1b66e0ee95 Bug 1378850 - Stop using sdk/core/heritage in DevTools webconsole hudservice; r=sole,zer0
MozReview-Commit-ID: GWH1hYt3pUr
2017-07-07 13:37:56 +02:00
Ryan VanderMeulen 96dea1ec83 Backed out changeset 68c5012ba344 (bug 1378850) for ESlint no-unused-vars failures on a CLOSED TREE. 2017-07-19 12:26:25 -04:00
Jan Odvarko fd16f0afe1 Bug 1378850 - Stop using sdk/core/heritage in DevTools webconsole hudservice; r=sole,zer0
MozReview-Commit-ID: GWH1hYt3pUr
2017-07-07 13:37:56 +02:00
Paolo Amadini 7afba17088 Bug 1362970 - Part 2 - Script-generated patch to convert .then(null, ...) to .catch(...). r=florian
Changes to Promise tests designed to test .then(null) have been reverted, and the browser/extensions directory was excluded because the projects it contains have a separate process for accepting changes.

MozReview-Commit-ID: 1buqgX1EP4P
2017-06-19 11:32:37 +01:00
Jan Odvarko adb9d95cec Bug 1370172 - Remove sdk/core/heritage from Console panel; r=zer0
MozReview-Commit-ID: GYH3p2spgZT
2017-06-14 12:18:48 +02:00
Michael Kohler 5093337f98 Bug 1256768 - Fix ESLint errors/warnings in devtools/client/webconsole/console-output.js r=nchevobbe
MozReview-Commit-ID: 76jPTnoqWq7
2017-05-20 22:54:41 +02:00
Oriol 3649ea47ca Bug 1297466 - Do not attempt to open Function.prototype in Debugger. r=bgrins 2017-05-15 16:47:00 -04:00
Brian Grinstead 206adbd95f Bug 1364047 - Pull WebConsoleUtils.l10n into its own module;r=Honza
MozReview-Commit-ID: LI5Hrs33CVS
2017-05-17 14:07:03 -07: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
J. Ryan Stinnett 47d40079e2 Bug 1326100 - Restore notable inline comments in DevTools. r=tromey
MozReview-Commit-ID: 6cLDkoCt0al
2017-03-20 16:22:55 -05:00
Florian Quèze 91f7a2ef3a Bug 1331599 - script-generated patch to replace removeEventListener calls with the once option when possible, r=jaws. 2017-01-25 07:01:52 +01:00
Florian Quèze 63de711857 Bug 1331081 - script generated patch to omit addEventListener/removeEventListener's third parameter when it's false, r=jaws. 2017-01-17 11:50:25 +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
Jarda Snajdr 7a2aa514b1 Bug 1298225 - Format clipboard text of console stack traces into multiple lines r=bgrins
MozReview-Commit-ID: HkCFEwjhCwx
2016-08-30 12:34:22 +02:00
Wes Kocher c0a0dae991 Backed out changeset 2c986272197f (bug 1298225) for mochitest-c1 failures a=backout 2016-08-31 13:07:21 -07:00
Jarda Snajdr 2adde33880 Bug 1298225 - Format clipboard text of console stack traces into multiple lines r=bgrins
MozReview-Commit-ID: HkCFEwjhCwx
2016-08-30 12:34:22 +02:00
Julian Descottes 2283f05cf3 Bug 1265887 - migrate devtools/ from PluralForm.jsm to plural-form.js;r=tromey
MozReview-Commit-ID: 7I7djgqcrnr
2016-08-27 18:42:33 +02: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
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
Julian Descottes 156ceb6e2f Bug 1294220 - part1: Move ellipsis character to a localized string in properties file;r=bgrins
The ellipsis character displayed by devtools is now relying on a localized string
in devtools/client/shared.properties instead of a complex preference.

The lazy loading of the ellipsis string has been removed, the ellipsis is retrieved
once when the client/shared/l10n.js file is loaded.

The ellipsis property on the LocalizationHelper instances has been removed in favor
of an ELLIPSIS export on the l10n.js module.

All the previous callers using either LocalizationHelper::ellipsis or retrieving the
intl.ellipsis preference have been migrated to rely on the ELLIPSIS export of l10n.js

MozReview-Commit-ID: 4JG0qbJGCw9
2016-08-20 22:09:03 +02:00
Jarda Snajdr 189a63b8bb Bug 1294355 - Pass correct arguments to openLocationInDebugger in console stack trace r=bgrins
MozReview-Commit-ID: KvSZ3fi5Kne
2016-08-18 09:36:45 +02:00
Brian Grinstead 4e42260d3e Bug 1288475 - Split webconsole utils.js into separate client and server parts;r=MattN,tromey
MozReview-Commit-ID: HlpiRvuMF1H
2016-08-05 10:44:38 -07:00
Jennifer Fong dc28b6dd00 Bug 1113825 - Nowrap content in console.table(). r=bgrins 2016-07-20 15:19:11 -04:00
Tom Tromey 8f71ef973c Bug 1276349 - Fix DAMP regression by speeding up _isURL. r=bgrins
MozReview-Commit-ID: C7khVe46Vjk
2016-07-05 11:33:01 -06:00
Jarda Snajdr a0307dca19 Bug 1281732 - Part 7: Clean up and simplify markup of webconsole messages r=bgrins 2016-06-24 09:28:00 +02:00
Jarda Snajdr 4fca977051 Bug 1281732 - Part 6: Use StackTrace React component in webconsole, cleanup message-location r=linclark 2016-06-29 04:06:00 +02:00
James Long d86f63cef0 Bug 1265854 - replace uses of nsiDOMNode constants in devtools frontend r=tromey 2016-06-03 09:47:58 -04:00
Tom Tromey c7b9386344 Bug 1265813 - Replace nsIIOService with URL in devtools. r=ochameau
MozReview-Commit-ID: GyoP6ApQXVc
2016-05-13 14:27:28 -06:00
J. Ryan Stinnett 12f23985ca Bug 1193747 - Remove link to inspector error in Browser Console. r=pbro
MozReview-Commit-ID: 1ek1pIFeKg2
2016-05-23 15:32:32 -05:00
J. Ryan Stinnett bb4fcbaa89 Bug 1274333 - Fix indentation of Heritage.extend. r=tromey
ESLint's auto-fix got confused by cases that passed an object literal to
Heritage.extend() but placed the opening brace on the next line.

MozReview-Commit-ID: 60NIZHYpwv3
2016-05-19 20:48:43 -05:00
Tom Tromey 86974842a1 Bug 1265869 - Add task.js and use in devtools. r=jryans
MozReview-Commit-ID: G5UuAh2RiZZ
2016-05-17 13:07:55 -06: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
Brian Grinstead 4666047c2a Bug 1271841 - Make DOM Node preview in console match syntax highlighting colors used in the markup view. r=jryans
MozReview-Commit-ID: FduYtfVMp8Q
2016-05-10 17:30:02 -07:00
Greg Tatum f6e1e9aaf7 Bug 1214754 - Clear hovered element's highlight when console is cleared. r=bgrins 2016-05-11 06:16:00 +02: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
"Helen V. Holmes" 50fb25c89e Bug 1246313 - Change the devtools syntax highlighting colors to be higher contrast;r=bgrins
MozReview-Commit-ID: FEYhP6Oq5Sn
2016-03-17 08:58:32 -04:00
Julian Descottes 580e3f5d66 Bug 659625 - part2: implement console.clear in devtools webconsole;r=bgrins
When receiving a console clear message, the webconsole should clear
the UI: remove all messages until the clear() message and close
the variables view sidebar if opened.

Add one integration tests to test console.clear calls from the content page.

MozReview-Commit-ID: GnBCBSmN1rk
2016-04-12 08:09:41 +02:00
Carsten "Tomcat" Book 63b8764de7 Backed out changeset 671011b82100 (bug 659625) 2016-04-13 12:30:24 +02:00
Julian Descottes 76732b44f4 Bug 659625 - part2: implement console.clear in devtools webconsole;r=bgrins
When receiving a console clear message, the webconsole should clear
the UI: remove all messages until the clear() message and close
the variables view sidebar if opened.

Add one integration tests to test console.clear calls from the content page.

MozReview-Commit-ID: GnBCBSmN1rk
2016-04-12 08:09:41 +02:00
Morgan Phillips 4329bce57f Bug 1259563 - Display links to error message documentation alongside relevant errors (2/2); r=bgrins 2016-04-11 10:27:50 -07:00
Brian Grinstead f85635c394 Bug 1258154 - Open functions in variables view if they were returned from console evaluation. r=jlongster
MozReview-Commit-ID: Cv9srKvAWdg
2016-03-30 18:30:05 -07:00
Jordan Santell c51cb55adc Bug 1251033 - Part 4 - Integrate Frame component in webconsole. r=linclark 2016-03-11 08:33:44 -08:00
Ryan VanderMeulen 9dee204d4e Backed out changeset b2e8a5b5b256 (bug 1251033) for browser_scratchpad_wrong_window_focus.js permafail.
CLOSED TREE
2016-03-10 20:22:44 -05:00
Jordan Santell eb400146a6 Bug 1251033 - Part 4 - Integrate Frame component in webconsole. r=linclark 2016-03-10 15:43:56 -08:00