Gabriel Luong
c089f03855
Bug 1402709 - Don't use capture for the toolbox context menu. r=bgrins
2017-09-26 08:43:22 -04:00
Yury Delendik
3614bb831d
Bug 1399217 - Disable wasm disassembly for non-binary source. r=jlast
...
MozReview-Commit-ID: KEyyOjyKXPF
2017-09-12 13:57:31 -05:00
ZER0
ba9681c84a
Bug 1381542 - renamed "devtools/shared/event-emitter" in "devtools/shared/old-event-emitter"; r=ochameau
...
MozReview-Commit-ID: GkF8HcUg5u8
--HG--
rename : devtools/shared/event-emitter.js => devtools/shared/old-event-emitter.js
2017-08-11 03:47:30 +02:00
Wes Kocher
db97e61fc7
Backed out changeset 58f678547059 (bug 1381542) for conflicting with the incoming m-c merge a=backout
...
MozReview-Commit-ID: 1wKVHbOAUdc
--HG--
rename : devtools/shared/old-event-emitter.js => devtools/shared/event-emitter.js
2017-08-10 18:23:14 -07:00
ZER0
93e1efc17d
Bug 1381542 - renamed "devtools/shared/event-emitter" in "devtools/shared/old-event-emitter"; r=ochameau
...
MozReview-Commit-ID: GkF8HcUg5u8
--HG--
rename : devtools/shared/event-emitter.js => devtools/shared/old-event-emitter.js
2017-08-11 02:43:47 +02:00
Jason Laster
33d3eb642f
Bug 1383803 - Update debugger frontend (v0.9.0). r=jdescottes
2017-07-24 14:30:00 -04:00
Christoph Kerschbaumer
766b8a4ab0
Bug 1377851 - Load code mirror frame from external file within devtools. r=pbrosset
2017-07-05 14:10:07 +02:00
Carsten "Tomcat" Book
1c008043fa
Backed out changeset 4f8bb917762c (bug 1377851) for devtools failures like browser_editor_basic.js | correct iframe is there
...
--HG--
extra : rebase_source : d7346e3b341f6664de21f7d102aece4dcf588624
2017-07-04 10:41:55 +02:00
Christoph Kerschbaumer
bd62dfe80f
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
56838ddb04
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
7256fa8493
Bug 1364535 - Devtools frontend WebAssembly support for wast. r=jlast
...
MozReview-Commit-ID: KEkXaAQCWYN
--HG--
extra : rebase_source : 8dcc597b55fa4b367f3c6ad57a957874755c6e97
2017-06-06 20:11:00 -05:00
Matt R
a29f2875c8
Bug 1355696 - convert uses of 'defer' to 'new Promise' in client/sourceeditor; r=tromey
...
MozReview-Commit-ID: 5b1ObMvNA2e
--HG--
extra : rebase_source : 01b6f8125eb0cafdffd637bb4715b8ebcce8d585
2017-05-20 19:14:59 +01:00
Julian Descottes
dce52337e9
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
b6c5329234
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
--HG--
extra : rebase_source : 99957d8683f172d65213052e36281a24c7dffd2a
2017-05-02 12:48:42 +02:00
Jason Laster
173553c4a8
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
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
Sebastian Hengst
cb76f56d60
Backed out changeset 6bc38f188ef2 (bug 1330099) for devtools failures. r=backout
2017-01-11 23:21:56 +01:00
Tim Nguyen
d7ea1c1605
Bug 1330099 - Enable object-shorthand eslint rule. r=jryans
...
MozReview-Commit-ID: 3wA25rfznBv
2017-01-11 21:22:15 +00:00
Ricky Chien
a8a552beb9
Bug 1328498 - Sourceeditor appendTo HTML element supports r=Honza
...
MozReview-Commit-ID: 1gdhH8PdIuc
--HG--
extra : rebase_source : f6722997d50d47d7a43e01921af2135b165295d9
2017-01-04 11:52:26 +08:00
Gabriel Luong
1e634e99df
Bug 1322028 - Avoid destructuring requires where possible in the inspector. r=jdescottes
2016-12-17 12:44:56 +09:00
Tom Tromey
b6eca933c1
Bug 1316630 - move PrefObserver to devtools/shared/prefs.js; r=jdescottes
...
MozReview-Commit-ID: C4KxFxv2LVT
--HG--
extra : rebase_source : 484a654309eab406913f944d6aa8988c567641d7
2016-11-14 15:46:19 -07:00
Julian Descottes
435b729633
Bug 1320053
- set height 100% on .CodeMirror element;r=gl
...
MozReview-Commit-ID: IKmRGwiOjwu
--HG--
extra : rebase_source : 47b85a76832f6e4f4da43474a75437572f819f35
2016-11-25 18:36:57 +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
Sebastian Hengst
c635b8c61d
No bug - Fix Eslint warnings which showed up after merge. r=eslint-fix a=eslint-fix
...
MozReview-Commit-ID: 17TDsBMCsUx
--HG--
extra : amend_source : d16c96ea99ecbf9e3cbe341f4bb80c65659843cc
2016-10-07 16:21:44 +02:00
Fred Lin
10d8429620
Bug 1292592 - Convert sourceeditor to use key shortcuts module;r=ochameau
...
MozReview-Commit-ID: 2hFtanHPuyr
--HG--
extra : rebase_source : 1c9d6cf406070107ad66a7eb42f0c4e50695f7c5
2016-09-23 15:12:17 +08:00
Fred Lin
8ef5bc864b
Bug 1292592 - isolate xul dependency in sourceeditor and theme-switching;r=bgrins
...
MozReview-Commit-ID: 95ylSC8MpwM
--HG--
extra : rebase_source : 74790b334bc188fb78569af606c7382e899fe8ee
2016-09-20 14:20:46 +08:00
James Long
5a92b72c0b
Bug 1301788 - Use context menu from correct window in source editor. r=bgrins
2016-09-12 15:25:00 -04:00
Brian Grinstead
296935fff5
Bug 1301790 - Bundle codemirror into a single script;r=gl
...
MozReview-Commit-ID: FnK8reRI4Ve
--HG--
rename : devtools/client/sourceeditor/codemirror/mode/clike.js => devtools/client/sourceeditor/codemirror/mode/clike/clike.js
rename : devtools/client/sourceeditor/codemirror/mode/css.js => devtools/client/sourceeditor/codemirror/mode/css/css.js
rename : devtools/client/sourceeditor/codemirror/mode/htmlmixed.js => devtools/client/sourceeditor/codemirror/mode/htmlmixed/htmlmixed.js
rename : devtools/client/sourceeditor/codemirror/mode/javascript.js => devtools/client/sourceeditor/codemirror/mode/javascript/javascript.js
rename : devtools/client/sourceeditor/codemirror/mode/wasm.js => devtools/client/sourceeditor/codemirror/mode/wasm/wasm.js
rename : devtools/client/sourceeditor/codemirror/mode/xml.js => devtools/client/sourceeditor/codemirror/mode/xml/xml.js
2016-09-11 09:38:51 -07:00
James Long
8540864d27
Bug 1295213 - expose Codemirror instance and allow direct embedding in devtools r=bgrins,gl
2016-09-08 10:42:43 -04:00
Greg Tatum
4060bbdcb1
Bug 1289425 - Allow sourceeditor to fallback to client-side css properties; r=tromey
...
MozReview-Commit-ID: Khak8Av1v67
--HG--
extra : rebase_source : 6d117087a34320fd7bbb7ea540b218ac78018566
2016-08-12 15:01:42 -05:00
Greg Tatum
8a5efe4b8c
Bug 1289425 - Remove domUtils from source editor and autocomplete; r=tromey
...
MozReview-Commit-ID: HIhUkuKOsjg
--HG--
extra : rebase_source : 21fa175ab676a0483e1774208f88ab5d33bbb512
2016-08-05 11:44:23 -05:00
Julian Descottes
b0708f9b49
Bug 1295608 - Migrate devtools/client/sourceeditor to use l10n.js instead of Services.string;r=tromey
...
MozReview-Commit-ID: I18ZDOievUZ
--HG--
extra : rebase_source : 20361d7f4a8ad0194b3d81dfc103b9f715eb1f5b
2016-08-25 17:20:26 +02:00
Sebastian Hengst
cac7ee194a
Backed out changeset 69d2ac816444 (bug 1295608)
2016-08-25 14:19:58 +02:00
Julian Descottes
dd2c419be1
Bug 1295608 - Migrate devtools/client/sourceeditor to use l10n.js instead of Services.string;r=tromey
...
MozReview-Commit-ID: B6mL8NTDuJC
--HG--
extra : rebase_source : c6c475335ce4b750f7d7c03f85b4b6fe1484e83c
2016-08-24 16:41:18 +02:00
Tom Tromey
0ffbda8268
Bug 1292591 - use reject-some-requires eslint rule in sourceeditor; r=gregtatum
...
MozReview-Commit-ID: LdPU8bdSGd5
--HG--
extra : rebase_source : a650e325a168b563022c474e0bdb0044f5ee8c1a
2016-08-05 09:09:27 -06:00
Yury Delendik
47898bf0e8
Bug 1280471 - Turn on highlight for WebAssembly text format. r=jlongster
...
MozReview-Commit-ID: GIeIqr3m8WX
--HG--
extra : transplant_source : %0A%A2%DB%8A%40NBm.6T%D3_%CC%F1%D1%A2%EF%23%3E
2016-06-16 16:02:49 +01: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
L. David Baron
55b6b3268e
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
ab9bb23b31
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
--HG--
extra : transplant_source : _%D9%CA.%2A%E2zW%F1%F6%C5a%D2%89%C5%84%B5%5E%FCD
2016-04-26 07:00:53 -07:00
Jason Laster
80243acca9
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
37f4efccea
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
aed2a533e5
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
Jason Laster
47546448f9
Bug 900763 - Change "add conditional breakpoint" menu option to "edit conditional breakpoint" when one already exists. 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-18 11:22:00 -04:00
Alexandre Poirot
d3b05e8c5a
Bug 1245530 - Use require(Services) instead of Cu.import(Services.jsm). r=jryans
2016-02-27 04:51:10 -08:00
J. Ryan Stinnett
32d1238658
Bug 1250398 - Disable APZ for source editors. r=gl
...
MozReview-Commit-ID: JmUuoobDr7y
2016-02-25 17:25:08 -06:00
Brian Grinstead
ad34c237e8
Bug 1246733 - Remove stylesheet references of 'devtools/skin/common.css' and instead import it in theme files;r=ntim,r=ochameau
...
MozReview-Commit-ID: AwS9aJ4dypm
2016-02-16 16:10:25 -08:00
Gabriel Luong
55b92178f1
Bug 1206463 - Eslint cleanup for source editor r=mratcliffe
2015-12-25 15:57:20 -05:00
Alexandre Poirot
d9f2a6e8a8
Bug 1232290 - Package codemirror with the same layout than in source tree. r=jlongster
2015-12-17 04:34:21 -08:00