Commit Graph
92 Commits
Author SHA1 Message Date
Tom Tromey 44ebe29d9c Bug 1290227 - add replacement module for DOM_VK_ constants; r=bgrins
MozReview-Commit-ID: INmMxfP8ZuL
2016-08-08 15:41:37 -06:00
Tom Tromey 767191925e Bug 1293756 - avoid dynamic requires in autocomplete.js; r=bgrins
MozReview-Commit-ID: 8dMW32TkENl
2016-08-09 13:25:48 -06:00
Wes Kocher 29771f4f17 Merge fx-team to m-c a=merge 2016-08-07 00:16:15 -07:00
James Long 24266d6355 Bug 1267365 - move various flags out of DevToolsUtils and don't depend on that module so much r=tromey 2016-08-05 17:41:01 -04: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 ac977b8b8b Bug 1288150 - Add fast breakpoint presents check for removeBreakpoints. r=jlongster
MozReview-Commit-ID: KKDUw6st4Bs
2016-07-21 08:52:00 -05: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
Julian Descottes 5bc2788731 Bug 1266456 - part9: use HTMLTooltip for autocomplete-popup;r=bgrins
Modify the devtools autocomplete-popup to rely on a HTMLTooltip instance
instead of a XUL panel.

Other than the straightforward migration to HTML, the main difference with
the new implementation is that the richlistbox has now been replace with a
simple HTML list element. The former XUL widget used to be able to take the
focus from the input it was linked to.

This is no longer the case. Most autocomplete users were always keeping the
focus in the input, except for the inspector-search, which was moving the
focus back and forth between the input and the autocomplete's richlistbox.
Now the focus is always in the input. A practical example to illustrate how
this changes the UX: before when the user had the focus on the first element
of the list, pressing "DOWN" would keep the element selected but visually move
the focus in the input. Now the selection simply cycles to the next item.

Even though this introduces a difference in behaviour compared to the previous
implementation, it makes the inspector search UX consistent with the other
autocomplete widgets used in devtools.

Another difference is about the display for the inspector-search. The position
of the autocomplete popup used to be above the input. This is now impossible to
achieve because the search input is at the top of the toolbox and the HTML tooltip
can not exceed the limits of the toolbox.

For this #2 issue, either we manage to use XUL panel wrappers, in which case, the
autocomplete will be displayed as it used to. Or we can invert the order in which
items are inserted and explicitly ask for the autocomplete to be displayed below the
input. I prefered not to change this here in order to make the code change easier to
understand, but it should be addressed in a follow-up.

MozReview-Commit-ID: jH9aXm9Jvz
2016-07-07 16:32:42 +02:00
Gabriel Luong 52f18ddb3a Bug 1282287 - Upgrade to CodeMirror 5.16.0 r=bgrins 2016-06-30 00:58:13 +09: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 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
Gabriel Luong d962139842 Bug 1277070 - Upgrade to CodeMirror 5.15.2 r=bgrins 2016-06-02 20:05:30 -07:00
Nicolas Chevobbe 48a36fbc0a Bug 1276465 - Check if autompleter map item exists before using it. r=bgrins
MozReview-Commit-ID: JqOnT1tT4rS
2016-05-28 18:52:10 +02:00
Patrick Brosset 8c1b03880b Bug 1270186 - Move css-parsing-utils.js from devtools/client to devtools/shared; r=tromey
MozReview-Commit-ID: 75Yq1X4YjjJ
2016-05-23 14:03:12 +02: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
Eddy Bruel 45cf19584e Bug 1265722 - Move fronts to shared directory;r=jryans 2016-05-17 14:59:21 +02:00
Eddy Bruel 0ea1ecb6b6 Bug 1265722 - Decouple InspectorFront from InspectorActor;r=jryans 2016-05-17 14:34:40 +02:00
Sebastian Hengst 5973518cc6 Backed out changeset 92b07e6e84bf (bug 1265722) for failing test_animation_actor-lifetime.html because of undefined function InspectorFront. r=backout 2016-05-17 13:50:21 +02:00
Eddy Bruel e79d4fc43a Bug 1265722 - Decouple InspectorFront from InspectorActor;r=jryans 2016-05-17 11:14:31 +02: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
L. David Baron 50ddd15ed9 Bug 1111440 - Replace -moz- prefixed logical margin/padding/border properties with their standard versions. r=heycam
This patch was generated by the command:
  find . -name "*.css" -exec sed -i -f mozpropsub {} \;
in the root of a mozilla-central tree, with the file mozpropsub
containing the contents:
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

While I didn't manually review all the changes, I did review the list of
files, and manually reviewed the changes in the files that I thought
were more interesting.

Note that there are a few tests that should be fixed up as well, but
I'll do that in a later patch.

MozReview-Commit-ID: EiQTuuV0MNQ
2016-05-12 22:19:58 -07: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
Markus Stange b65aa1ac3a Bug 550426 - Update test to expect the new background-position-x/-y properties.
MozReview-Commit-ID: 5pceyVeF15N
2016-04-29 18:02:34 -04: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
Gabriel Luong 319324c9a0 Bug 1266267 - Upgrade to CodeMirror 5.14.2 r=bgrins 2016-04-26 11:44:18 -04:00
Gabriel Luong 3ca7b20411 Bug 1265816 - Upgrade to CodeMirror 5.13.2 r=bgrins 2016-04-20 12:21:28 -04:00
Tobias Schneider e4023911c5 Bug 1209273 - Part 3: Make CSS autocompletion tests pass. r=gl 2016-04-01 22:37:49 -07:00
Carsten "Tomcat" Book bad595f5b3 Backed out changeset 90312ff603de (bug 1209273) 2016-04-01 11:57:54 +02:00
Tobias Schneider 44f8f78694 Bug 1209273 - Part 3 - Make CSS autocompletion tests pass. r=dbaron 2016-03-31 14:23:00 +02:00
Jason Laster 06c212fc2b Bug 1260116 - Replace String.prototype.contains with String.prototype.includes. r=jlong 2016-03-28 06:07:00 +02: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
Gabriel Luong 60a14f4f0f Bug 1258793 - Upgrade to CodeMirror 5.13.0 r=bgrins 2016-03-23 12:41:06 -04: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
Jason Laster 1bc036f52e 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
James Long fee0f49570 Bug 1245030 - simplify breakpoint colors in debugger to reduce visual clutter r=hholmes 2016-03-21 16:40:21 -04:00
Alexandre Poirot bb787b541e Bug 1245530 - Use require(Services) instead of Cu.import(Services.jsm). r=jryans 2016-02-27 04:51:10 -08:00
J. Ryan Stinnett ef08892a71 Bug 1250398 - Disable APZ for source editors. r=gl
MozReview-Commit-ID: JmUuoobDr7y
2016-02-25 17:25:08 -06:00
Gabriel Luong dc61f931aa Bug 1250383 - Upgrade to CodeMirror 5.12.0 r=vporof 2016-02-23 10:10:10 -05:00
Brian Grinstead 03b245db06 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
Tim Nguyen c76feaac84 Bug 762979 - Implement conditional breakpoint gutter style. r=jlongster 2016-01-29 23:42:27 -05:00
Tim Nguyen d038bab028 Bug 762979 - Implement shorlander's line gutter mockup for the source editor. r=vporof, bgrins 2016-01-29 23:42:09 -05:00
Gabriel Luong ca3e8e9d12 Bug 1242309 - Upgrade to CodeMirror 5.11.0 r=bgrins 2016-01-25 14:46:22 -05:00
Christoph Kerschbaumer ae5ac6d6ea Bug 1232786 - Convert JS tests to use open2 within devtools/ (r=sicking) 2016-01-13 19:35:41 -08:00
Ehsan Akhgari bc05edc5b5 Bug 1225625 - Increase the timeout of browser_vimemacs.js 2015-12-31 17:25:31 -05:00
Gabriel Luong e5b1dd480d Bug 1206463 - Eslint cleanup for source editor r=mratcliffe 2015-12-25 15:57:20 -05:00
Gabriel Luong d7751249b0 Bug 1234374 - Part 6: Update CodeMirror README for version 5.10.0 r=bgrins 2015-12-22 16:08:07 -05:00
Gabriel Luong 7beb2e3ffb Bug 1234374 - Part 5: Upgrade existing CodeMirror tests to 5.10.0 r=bgrins 2015-12-22 16:08:05 -05:00
Gabriel Luong 8ca3e5d904 Bug 1234374 - Part 4: Upgrade CodeMirror mode to 5.10.0 r=bgrins 2015-12-22 16:08:02 -05:00
Gabriel Luong 2b5aa96cb4 Bug 1234374 - Part 3: Upgrade to CodeMirror 5.10.0 r=bgrins 2015-12-22 16:08:00 -05:00