Commit Graph

67 Commits

Author SHA1 Message Date
Nicolas Chevobbe
307f01eac7 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

--HG--
extra : rebase_source : ebf75886fac79aaebfab16c03997f402e9f5a278
2017-09-29 15:24:14 +02:00
Tom Tromey
dffd9ec2a9 Bug 1395262 - use plain console.error in devtools promise catches; r=bgrins
MozReview-Commit-ID: C8IhVPckQJ7

--HG--
extra : rebase_source : bd5f46a0bdff992cc0334250a16557eb710af5de
2017-08-30 12:05:41 -06:00
Alexandre Poirot
4d50ab07c7 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

--HG--
extra : rebase_source : fe3bff8599807224fd51898e753589d4c7c1777f
2017-08-08 15:19:56 +02:00
Alexandre Poirot
a8c68f2955 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

--HG--
extra : rebase_source : 57602d89b0bcc1c905bee7723e30f87fa434c6d9
2017-08-08 15:24:04 +02:00
Jan Odvarko
5ca5637750 Bug 1378850 - Stop using sdk/core/heritage in DevTools webconsole hudservice; r=sole,zer0
MozReview-Commit-ID: GWH1hYt3pUr

--HG--
extra : rebase_source : 6a7bb4177977116b699bcd1775622fa81e47677c
2017-07-07 13:37:56 +02:00
Ryan VanderMeulen
83d18df973 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
61b874e65a Bug 1378850 - Stop using sdk/core/heritage in DevTools webconsole hudservice; r=sole,zer0
MozReview-Commit-ID: GWH1hYt3pUr

--HG--
extra : rebase_source : 18c62b347a8c86c3067c280475cc05dfaff7560c
2017-07-07 13:37:56 +02:00
Paolo Amadini
10ee6a5c4e 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

--HG--
extra : rebase_source : 3a9ea310d3e4a8642aabbc10636c04bfe2e77070
2017-06-19 11:32:37 +01:00
Jan Odvarko
9f1098e592 Bug 1370172 - Remove sdk/core/heritage from Console panel; r=zer0
MozReview-Commit-ID: GYH3p2spgZT

--HG--
extra : rebase_source : b93c167782c73a4e252cba1226c61a042c0f7875
2017-06-14 12:18:48 +02:00
Michael Kohler
a08b8034b2 Bug 1256768 - Fix ESLint errors/warnings in devtools/client/webconsole/console-output.js r=nchevobbe
MozReview-Commit-ID: 76jPTnoqWq7

--HG--
extra : rebase_source : 4bb78c07caccfff16796dbbcf5b56092cb9a300a
2017-05-20 22:54:41 +02:00
Oriol
652cfe6316 Bug 1297466 - Do not attempt to open Function.prototype in Debugger. r=bgrins
--HG--
extra : rebase_source : fed13d5c980f853c313d6b62a7812af538bd79cb
2017-05-15 16:47:00 -04:00
Brian Grinstead
4897fac06f Bug 1364047 - Pull WebConsoleUtils.l10n into its own module;r=Honza
MozReview-Commit-ID: LI5Hrs33CVS

--HG--
extra : rebase_source : 5da9d9ac8acf90f2446d1068589f1a4d314c0695
2017-05-17 14:07:03 -07:00
Tom Tromey
9f4ebe5770 Bug 1317962 - use source maps in stack traces in the console; r=jryans
MozReview-Commit-ID: 9SPZDi50XZv

--HG--
extra : rebase_source : e8d9e5eaeb0de0f18b34eae13499d394df696f52
2017-05-02 12:51:51 -06:00
J. Ryan Stinnett
c26a6274cc Bug 1326100 - Restore notable inline comments in DevTools. r=tromey
MozReview-Commit-ID: 6cLDkoCt0al

--HG--
extra : rebase_source : 26e95a9320998085675a1f14bfa4442f4bbc38dc
2017-03-20 16:22:55 -05:00
Florian Quèze
0e0865f4fc 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
85611a7b6d Bug 1331081 - script generated patch to omit addEventListener/removeEventListener's third parameter when it's false, r=jaws.
--HG--
extra : rebase_source : a22344ee1569f58f1f0a01017bfe0d46a6a14602
2017-01-17 11:50:25 +01:00
Tom Tromey
1fc208e8d8 Bug 1312041 - remove requireRawId rewriting in favor of Loader paths; r=jryans
MozReview-Commit-ID: 6OSszbKpp74

--HG--
extra : rebase_source : 475b4a2de10d65cadd6198e49e5ff5cfb4e9b871
2016-10-25 21:30:18 -06:00
Wes Kocher
41f7647994 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
966cb8ff85 Bug 1312041 - remove requireRawId rewriting in favor of Loader paths; r=jryans
MozReview-Commit-ID: 6OSszbKpp74

--HG--
extra : rebase_source : ced0ac04663356c2e2ce315d09b5cf0e27617b4e
2016-10-25 21:30:18 -06:00
Jarda Snajdr
7b300fe2fb Bug 1298225 - Format clipboard text of console stack traces into multiple lines r=bgrins
MozReview-Commit-ID: HkCFEwjhCwx

--HG--
extra : rebase_source : ea50fd4576f9f264890e97b10cd2328224c64880
2016-08-30 12:34:22 +02:00
Wes Kocher
2cb56a6d70 Backed out changeset 2c986272197f (bug 1298225) for mochitest-c1 failures a=backout
--HG--
extra : rebase_source : 0d2f61f743461d4f75f5c44552f9f1676cecb556
2016-08-31 13:07:21 -07:00
Jarda Snajdr
6f362db5ba Bug 1298225 - Format clipboard text of console stack traces into multiple lines r=bgrins
MozReview-Commit-ID: HkCFEwjhCwx

--HG--
extra : rebase_source : ecee3d3d1a5abd3fe63f63bc29649b6028c11ac3
2016-08-30 12:34:22 +02:00
Julian Descottes
e3e39edefd Bug 1265887 - migrate devtools/ from PluralForm.jsm to plural-form.js;r=tromey
MozReview-Commit-ID: 7I7djgqcrnr

--HG--
extra : rebase_source : 2129e97e6f23dd5af2281f68e546c0143bce5878
extra : histedit_source : be83b5f61ee021a6ab1566f21db4262e2175951a
2016-08-27 18:42:33 +02:00
Julian Descottes
e5437139db Bug 1298012 - update references to devtools/client/shared/l10n -> devtools/shared/l10n;r=bgrins
MozReview-Commit-ID: 6p5ADjlbsHu

--HG--
extra : rebase_source : b56c4e40820c5c14a9a0761639e772964d818e30
extra : intermediate-source : 3416f2e554aeebce04723fab282c5bac73bfb1bc
extra : source : e46c6780770414844e138b2a69cf7a6a9da4192e
2016-08-25 17:02:50 +02:00
Julian Descottes
8154fdfc31 Bug 1295609 - Migrate devtools/client/webconsole to use l10n.js instead of Services.string;r=bgrins
MozReview-Commit-ID: 65AyxZ68GHt

--HG--
extra : rebase_source : 289b85f59aa30224394e4dfff4a3135ffd343514
2016-08-19 20:31:50 +02:00
Julian Descottes
5f705ce337 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

--HG--
extra : rebase_source : b513f69a00335c63c46e085b0101ca4cf884fb08
extra : source : 9cea22b583c7d615be644dd50161902c35f2f1b7
2016-08-20 22:09:03 +02:00
Jarda Snajdr
02f3f62d9c Bug 1294355 - Pass correct arguments to openLocationInDebugger in console stack trace r=bgrins
MozReview-Commit-ID: KvSZ3fi5Kne

--HG--
extra : rebase_source : 6ed1f19de9124acdc1f3117fd8de6a9f9ceac023
2016-08-18 09:36:45 +02:00
Brian Grinstead
5a0322040e Bug 1288475 - Split webconsole utils.js into separate client and server parts;r=MattN,tromey
MozReview-Commit-ID: HlpiRvuMF1H

--HG--
rename : devtools/shared/webconsole/utils.js => devtools/client/webconsole/utils.js
rename : devtools/shared/webconsole/utils.js => devtools/server/actors/utils/webconsole-utils.js
rename : devtools/shared/webconsole/worker-utils.js => devtools/server/actors/utils/webconsole-worker-utils.js
extra : rebase_source : 6f1b2afba2c3cf3e3d17f839c11bf15e89a2f69d
2016-08-05 10:44:38 -07:00
Jennifer Fong
5efe427a53 Bug 1113825 - Nowrap content in console.table(). r=bgrins 2016-07-20 15:19:11 -04:00
Tom Tromey
6a91e5346c Bug 1276349 - Fix DAMP regression by speeding up _isURL. r=bgrins
MozReview-Commit-ID: C7khVe46Vjk

--HG--
extra : rebase_source : 991395b28fdc0bc6296af866a3e7b4ddd6eda9c2
2016-07-05 11:33:01 -06:00
Jarda Snajdr
d66c01d247 Bug 1281732 - Part 7: Clean up and simplify markup of webconsole messages r=bgrins 2016-06-24 09:28:00 +02:00
Jarda Snajdr
d095253488 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
e4aeb1c9ee Bug 1265854 - replace uses of nsiDOMNode constants in devtools frontend r=tromey 2016-06-03 09:47:58 -04:00
Tom Tromey
0d9260b6f7 Bug 1265813 - Replace nsIIOService with URL in devtools. r=ochameau
MozReview-Commit-ID: GyoP6ApQXVc

--HG--
extra : amend_source : ace0951657ef7290f45b26a4ae81ac27111a60e2
extra : transplant_source : 0%8B%83%83Q%D0%CF%D8r%B1%C4e%13%3E%D14%06%15%CF%D5
2016-05-13 14:27:28 -06:00
J. Ryan Stinnett
8812faeb8b 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
0b67196115 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
0d398a243a Bug 1265869 - Add task.js and use in devtools. r=jryans
MozReview-Commit-ID: G5UuAh2RiZZ

--HG--
rename : toolkit/modules/Task.jsm => devtools/shared/task.js
extra : transplant_source : %B8h%8A%8C%BD%91%8A%81%1D%F4%F5%2Ap%CFv%BC%963u0
2016-05-17 13:07:55 -06:00
J. Ryan Stinnett
30b2b7ce44 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
0c6c6d0cbd Bug 1271841 - Make DOM Node preview in console match syntax highlighting colors used in the markup view. r=jryans
MozReview-Commit-ID: FduYtfVMp8Q

--HG--
extra : transplant_source : 8%0E%EE%85%94%F0%16%D4HO%7D%DE%0Dp5%2B%C2c%AFs
2016-05-10 17:30:02 -07:00
Greg Tatum
6a1246bf3e Bug 1214754 - Clear hovered element's highlight when console is cleared. r=bgrins 2016-05-11 06:16:00 +02:00
James Long
e87387e53d 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"
f90d2f6327 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
094aad9e14 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

--HG--
extra : rebase_source : 3bb9f99fa4ac8ed6772e325dba978ce3e6a0f202
extra : source : 671011b82100a598dd8368205bd625227bfdc060
2016-04-12 08:09:41 +02:00
Carsten "Tomcat" Book
8efbb16dcd Backed out changeset 671011b82100 (bug 659625) 2016-04-13 12:30:24 +02:00
Julian Descottes
d52abc58ab 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

--HG--
extra : rebase_source : b26481845b5deb4213c6d25581d37e8eda3e17a7
2016-04-12 08:09:41 +02:00
Morgan Phillips
79380d4135 Bug 1259563 - Display links to error message documentation alongside relevant errors (2/2); r=bgrins
--HG--
extra : rebase_source : 237344b5de2f0cc79dabca73d768ca7fb99ae91a
2016-04-11 10:27:50 -07:00
Brian Grinstead
20fac4d752 Bug 1258154 - Open functions in variables view if they were returned from console evaluation. r=jlongster
MozReview-Commit-ID: Cv9srKvAWdg

--HG--
extra : transplant_source : Q%8E%A1%D6%80%80%9E%20%0AA%C09T%E5V%27%23%7C%EE%FD
2016-03-30 18:30:05 -07:00
Jordan Santell
8aab5a4b33 Bug 1251033 - Part 4 - Integrate Frame component in webconsole. r=linclark 2016-03-11 08:33:44 -08:00
Ryan VanderMeulen
94788c4c2b Backed out changeset b2e8a5b5b256 (bug 1251033) for browser_scratchpad_wrong_window_focus.js permafail.
CLOSED TREE

--HG--
extra : rebase_source : 606764793be850d2a975cdf01daa741801848eba
extra : amend_source : 6655d546e52d6661a3c8079a1f74233c9ef70a70
2016-03-10 20:22:44 -05:00
Jordan Santell
f636eb87f1 Bug 1251033 - Part 4 - Integrate Frame component in webconsole. r=linclark 2016-03-10 15:43:56 -08:00