Commit Graph
64 Commits
Author SHA1 Message Date
Nicolas Chevobbe 7a62823af2 Bug 1447715 - Remove old-event-emitter usage from sourceeditor; r=gl.
MozReview-Commit-ID: 6o8I7TtPiFU
2018-03-21 18:30:21 +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
Florian Quèze c5f15a4700 Bug 1339461 - script-generated patch to convert foo.indexOf(...) == -1 to foo.includes(), r=Mossop. 2018-02-01 20:45:22 +01:00
Julian Descottes 78861bdf52 Bug 1397366 - restore source-editor commands controller for scratchpad & styleeditor menus;r=ochameau
MozReview-Commit-ID: Cfgws8fqgvp
2018-01-03 20:52:58 +01:00
Mark Banner e47ccbfec3 Bug 1411368 - Automatically fix no-multi-spaces issues raised when using ESLint 4. r=mossop
MozReview-Commit-ID: H5YVp3rnzGo
2017-10-26 11:47:01 +01:00
Gabriel Luong 55cc6bcd6c Bug 1402709 - Don't use capture for the toolbox context menu. r=bgrins 2017-09-26 08:43:22 -04:00
Yury Delendik edf926d71e Bug 1399217 - Disable wasm disassembly for non-binary source. r=jlast
MozReview-Commit-ID: KEyyOjyKXPF
2017-09-12 13:57:31 -05:00
ZER0 d78f1c54ef Bug 1381542 - renamed "devtools/shared/event-emitter" in "devtools/shared/old-event-emitter"; r=ochameau
MozReview-Commit-ID: GkF8HcUg5u8
2017-08-11 03:47:30 +02:00
Wes Kocher aa1caed330 Backed out changeset 58f678547059 (bug 1381542) for conflicting with the incoming m-c merge a=backout
MozReview-Commit-ID: 1wKVHbOAUdc
2017-08-10 18:23:14 -07:00
ZER0 c91b128704 Bug 1381542 - renamed "devtools/shared/event-emitter" in "devtools/shared/old-event-emitter"; r=ochameau
MozReview-Commit-ID: GkF8HcUg5u8
2017-08-11 02:43:47 +02:00
Jason Laster ff761f729e Bug 1383803 - Update debugger frontend (v0.9.0). r=jdescottes 2017-07-24 14:30:00 -04:00
Christoph Kerschbaumer 2bc9019f0b Bug 1377851 - Load code mirror frame from external file within devtools. r=pbrosset 2017-07-05 14:10:07 +02:00
Carsten "Tomcat" Book c7568d9be4 Backed out changeset 4f8bb917762c (bug 1377851) for devtools failures like browser_editor_basic.js | correct iframe is there 2017-07-04 10:41:55 +02:00
Christoph Kerschbaumer 8dbe9431b2 Bug 1377851 - Use srcdoc instead of data: URI within devtools/client/sourceeditor/editor.js. r=pbrosset 2017-07-03 12:16:13 +02:00
Frederik Braun 96b2642639 Bug 1351608 - Disable warnings for existing violations to no-unsanitize rule r=Standard8.
MozReview-Commit-ID: 7cTNL5jMtRw
2017-07-03 20:07:02 +01:00
Yury Delendik d60db968a3 Bug 1364535 - Devtools frontend WebAssembly support for wast. r=jlast
MozReview-Commit-ID: KEkXaAQCWYN
2017-06-06 20:11:00 -05:00
Matt R 8ae0c9c5f9 Bug 1355696 - convert uses of 'defer' to 'new Promise' in client/sourceeditor; r=tromey
MozReview-Commit-ID: 5b1ObMvNA2e
2017-05-20 19:14:59 +01:00
Julian Descottes aeed2ba537 Bug 1365314 - Remove link between code mirror and document when destroying editor. r=jlast
Port the fix made on Github https://github.com/devtools-html/debugger.html/pull/2129

MozReview-Commit-ID: AS0hoo2tbqL
2017-05-16 09:18:37 +02:00
Julian Descottes 9b9cd11f91 Bug 1339293 - devtools sourceeditor: calculate indentSize depending on current position;r=gl
The TAB handler for the source editor used to add indentSize - 1 spaces, unless the caret
was on the beginning of a line. This only ever works if you are pressing TAB after writing
one character. Otherwise we should always calculate the necessary spaces based on the caret
position (modulo indentSize)

MozReview-Commit-ID: EdcM4IhhyMk
2017-05-02 12:48:42 +02:00
Jason Laster 9ea4297882 Bug 1331654 - Bump Debugger. r=jdescottes
* Add update tools
* Bump with the latest changes

MozReview-Commit-ID: 65Ca3SbMQ2e
2017-01-19 22:24:32 +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
Sebastian Hengst c6d9ef3e98 Backed out changeset 6bc38f188ef2 (bug 1330099) for devtools failures. r=backout 2017-01-11 23:21:56 +01:00
Tim Nguyen 548b6bdbef Bug 1330099 - Enable object-shorthand eslint rule. r=jryans
MozReview-Commit-ID: 3wA25rfznBv
2017-01-11 21:22:15 +00:00
Ricky Chien 1495ce88bb Bug 1328498 - Sourceeditor appendTo HTML element supports r=Honza
MozReview-Commit-ID: 1gdhH8PdIuc
2017-01-04 11:52:26 +08:00
Gabriel Luong a61285b0f2 Bug 1322028 - Avoid destructuring requires where possible in the inspector. r=jdescottes 2016-12-17 12:44:56 +09:00
Tom Tromey c5e4df9459 Bug 1316630 - move PrefObserver to devtools/shared/prefs.js; r=jdescottes
MozReview-Commit-ID: C4KxFxv2LVT
2016-11-14 15:46:19 -07:00
Julian Descottes d57c72ad2c Bug 1320053 - set height 100% on .CodeMirror element;r=gl
MozReview-Commit-ID: IKmRGwiOjwu
2016-11-25 18:36:57 +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
Sebastian Hengst b9d6035428 No bug - Fix Eslint warnings which showed up after merge. r=eslint-fix a=eslint-fix
MozReview-Commit-ID: 17TDsBMCsUx
2016-10-07 16:21:44 +02:00
Fred Lin 18a4169423 Bug 1292592 - Convert sourceeditor to use key shortcuts module;r=ochameau
MozReview-Commit-ID: 2hFtanHPuyr
2016-09-23 15:12:17 +08:00
Fred Lin 0ccb58765c Bug 1292592 - isolate xul dependency in sourceeditor and theme-switching;r=bgrins
MozReview-Commit-ID: 95ylSC8MpwM
2016-09-20 14:20:46 +08:00
James Long 41f3ba4149 Bug 1301788 - Use context menu from correct window in source editor. r=bgrins 2016-09-12 15:25:00 -04:00
Brian Grinstead c5a99b06f2 Bug 1301790 - Bundle codemirror into a single script;r=gl
MozReview-Commit-ID: FnK8reRI4Ve
2016-09-11 09:38:51 -07:00
James Long 1e17d3a0cd Bug 1295213 - expose Codemirror instance and allow direct embedding in devtools r=bgrins,gl 2016-09-08 10:42:43 -04:00
Greg Tatum 88c911b2cd Bug 1289425 - Allow sourceeditor to fallback to client-side css properties; r=tromey
MozReview-Commit-ID: Khak8Av1v67
2016-08-12 15:01:42 -05:00
Greg Tatum d852cb3bc9 Bug 1289425 - Remove domUtils from source editor and autocomplete; r=tromey
MozReview-Commit-ID: HIhUkuKOsjg
2016-08-05 11:44:23 -05:00
Julian Descottes 7d53843ae1 Bug 1295608 - Migrate devtools/client/sourceeditor to use l10n.js instead of Services.string;r=tromey
MozReview-Commit-ID: I18ZDOievUZ
2016-08-25 17:20:26 +02:00
Sebastian Hengst 012a14263d Backed out changeset 69d2ac816444 (bug 1295608) 2016-08-25 14:19:58 +02:00
Julian Descottes 3ea33c376e Bug 1295608 - Migrate devtools/client/sourceeditor to use l10n.js instead of Services.string;r=tromey
MozReview-Commit-ID: B6mL8NTDuJC
2016-08-24 16:41:18 +02:00
Tom Tromey 42e05a9fc5 Bug 1292591 - use reject-some-requires eslint rule in sourceeditor; r=gregtatum
MozReview-Commit-ID: LdPU8bdSGd5
2016-08-05 09:09:27 -06:00
Yury Delendik 33fbc9c2d7 Bug 1280471 - Turn on highlight for WebAssembly text format. r=jlongster
MozReview-Commit-ID: GIeIqr3m8WX
2016-06-16 16:02:49 +01: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
L. David Baron 38d7232f8e Bug 1111440 - Replace rest of -moz-/Moz prefixed logical margin/padding/border properties with their standard versions. r=heycam
This patch was generated by the command:
  find * -type f -exec sed -i -f ../mozpropsub {} \;
in the root of the repository, with the file ../mozpropsub containing:
s/-moz-padding-end\>/padding-inline-end/g
s/-moz-padding-start\>/padding-inline-start/g
s/-moz-margin-end\>/margin-inline-end/g
s/-moz-margin-start\>/margin-inline-start/g
s/-moz-border-end\>/border-inline-end/g
s/-moz-border-end-color\>/border-inline-end-color/g
s/-moz-border-end-style\>/border-inline-end-style/g
s/-moz-border-end-width\>/border-inline-end-width/g
s/-moz-border-start\>/border-inline-start/g
s/-moz-border-start-color\>/border-inline-start-color/g
s/-moz-border-start-style\>/border-inline-start-style/g
s/-moz-border-start-width\>/border-inline-start-width/g
s/\<MozPaddingEnd\>/paddingInlineEnd/g
s/\<MozPaddingStart\>/paddingInlineStart/g
s/\<MozMarginEnd\>/marginInlineEnd/g
s/\<MozMarginStart\>/marginInlineStart/g
s/\<MozBorderEnd\>/borderInlineEnd/g
s/\<MozBorderEndColor\>/borderInlineEndColor/g
s/\<MozBorderEndStyle\>/borderInlineEndStyle/g
s/\<MozBorderEndWidth\>/borderInlineEndWidth/g
s/\<MozBorderStart\>/borderInlineStart/g
s/\<MozBorderStartColor\>/borderInlineStartColor/g
s/\<MozBorderStartStyle\>/borderInlineStartStyle/g
s/\<MozBorderStartWidth\>/borderInlineStartWidth/g

The diffs for the following files:
  layout/style/nsCSSPropAliasList.h
  layout/style/test/property_database.js
  layout/style/test/test_value_computation.html
were then manually removed from the patch.

MozReview-Commit-ID: 8fbYnlZcn9U
2016-05-14 00:00:18 -07:00
Brian Grinstead 4858dc6ab8 Bug 1254025 - Force the CodeMirror editor to always use a textarea. r=jdescottes
By default it switches to a contentEditable when a custom UA is applied, which
causes errors when trying to insert a controller.

MozReview-Commit-ID: AdRUpO3NHNF
2016-04-26 07:00:53 -07:00
Jason Laster a41be798c3 Bug 1233927 - Switching between large JS files in debugger is slow. r=jlong
Changes the way that source files are loaded in the editor. Previously,
source text and mode were set on the existing editor document.

Now, source files are their own CodeMirror Documents, so when it comes time
to showing them in the editor, it's just a matter of swapping one
document for another.

Notes:
+ The DebuggerView now has a _setEditorDocument method for showing a
source document
+ The Editor now has support for creating documents and replacing
documents.

MozReview-Commit-ID: HrkiHrsJPOB
2016-03-28 13:12:28 -07:00
Jason Laster c0fc818edd Bug 900763 - "edit conditional breakpoint". r=jlong
This patch updates the Source Editor contextmenu's UX. Prior to the
patch, the menu would show the option "Add conditional breakpoint" even
when there was a conditional breakpoint. Now, that option reads "Edit
conditional breakpoint".
2016-03-23 07:22:00 +01:00
Ryan VanderMeulen ade5762ae1 Backed out changeset 0714a2e98d5e (bug 900763) for suspicion of causing widespread devtools leaks on a CLOSED TREE. 2016-03-22 23:46:38 -04:00