Commit Graph
191 Commits
Author SHA1 Message Date
Mark Banner 9af64d461a Bug 1456762 - Remove now unnecessary import-globals-from statements in html files. r=mossop
Depends on D1643

MozReview-Commit-ID: 84M50HDg0wl

Differential Revision: https://phabricator.services.mozilla.com/D1644
2018-06-16 08:21:33 +00:00
Julian Descottes 82711b9a8f Bug 1454696 - Run eslint --fix for prefer-const;r=yulia
MozReview-Commit-ID: F6xUXCgdRE4
2018-06-01 12:36:09 +02:00
Yura Zenevich 3b91ad9038 Bug 1461977 - sync tree's scrollTop with scroll state when tree scrollTop value changes outside of user scroll. r=nchevobbe
MozReview-Commit-ID: 4aIX9mSkg1T
2018-05-28 11:27:00 +03:00
Michael Ratcliffe a4ac391ae6 Bug 1098374 - Telemetry: Stop all monkey patching in devtools telemetry tests r=yulia
Changes and notes:
  - Created `devtools/client/shared/test/telemetry-test-helpers.js`, which
    contains test helpers to aid in creating and running telemetry tests.
  - Removed any telemetry monkeypatching as it is not dependable and no longer
    needed (there is some left in GCLI but the test is now disabled because
    we are removing GCLI soon anyhow).
  - Because `telemetry-test-helpers.js` is imported by `shared-head.js` I
    have had to make it available everywhere that shared-head.js is used.
  - All telemetry tests have been rewritten to use the new helper.
  - shared-head.js cannot be imported by tests inside
    `devtools/client/performance/test/` because perf have custom `once` and
    `waitFor` implementations that act differently from the ones inside
    `shared-head.js`. This means I had to import the telemetry helpers into
    `devtools/client/performance/test/head.js`
  - Created `devtools/client/shared/test/browser_telemetry_misc.js` to be sure
    to catch `DEVTOOLS_SCREEN_RESOLUTION_ENUMERATED_PER_USER` (we catch a few
    others to be thorough).
  - Disabled `browser_inspector_menu-02-copy-items.js`, which was failing to
    test some expired scalars. I also corrected the way the scalars are logged
    because it was completely wrong.

MozReview-Commit-ID: JjQEGM6hT61
2018-05-01 18:06:14 +01:00
Kris Maglione 59b2dd801c Bug 1454813: Part 2b - Rename SpawnTask.js to AddTask.js. r=florian
The old name no longer makes sense, since it no longer exports an spawn_task
symbol, and add_task is what we really care about.

MozReview-Commit-ID: IE7B8Czv8DH
2018-04-18 11:43:45 -07:00
Alexandre Poirot d10cea6483 Bug 1453712 - Use a preference to set the testing flag. r=jryans
MozReview-Commit-ID: 1cjSQnXtc4h
2018-04-12 09:22:42 -07:00
Yura Zenevich 046bfe48e5 Bug 1438912 - by default, do not navigate to next node on ArrowRight key. r=nchevobbe
MozReview-Commit-ID: KQlHIA7pYAn
2018-03-13 09:39:46 -04:00
Alexandre Poirot 22e91d7acd Bug 1440321 - Convert Task.jsm to async/await in devtools/client. r=jryans
MozReview-Commit-ID: HaGOC5cn3JD
2018-03-12 19:46:35 -05: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
Cosmin Sabou ada3bae617 Merge inbound to mozilla-central. a=merge 2018-03-08 05:59:30 +02:00
J. Ryan Stinnett aa067adb85 Bug 1436187 - Move existing shared head files to devtools/client/shared. r=bgrins
Move shared-head.js and shared-redux-head.js into shared.

MozReview-Commit-ID: 5NUxcl9gkLl
2018-03-02 19:14:05 -06:00
Yura Zenevich a568a3d975 Bug 1438835 - [VirtualizedTree] keep inner state for when the tree is moused down, to help with deciding when to keyboard focus on tree container. r=nchevobbe
MozReview-Commit-ID: 6W9N242QmmU
2018-03-07 15:38:14 -05:00
Boris Zbarsky 5beec567c4 Bug 1443393. Stop trying to import light-theme.css from URLs that don't return anything useful. r=jdescottes
MozReview-Commit-ID: BZrZMHWGN3X
2018-03-06 14:45:27 -05:00
Yura Zenevich afa52a72f9 Bug 1438837 - fix VirtualizedTree node aria-level attribute to start with 1 not 0. r=nchevobbe
MozReview-Commit-ID: KLb964Irdkd
2018-03-01 10:41:47 -05:00
Ruturaj K. Vartak e77c9719ae Bug 1438457 - Autocomplete popup should autoselect the first element of the list. r=nchevobbe. 2018-02-23 02:38:00 +02:00
Cosmin Sabou 111a73f847 Backed out 4 changesets (bug 1436187) for mochitest devtools failures at browser_se_editors-error-gutter.js on a CLOSED TREE
Backed out changeset 253f74e28723 (bug 1436187)
Backed out changeset 9875771c9967 (bug 1436187)
Backed out changeset b2d808aa8c2e (bug 1436187)
Backed out changeset e747480f3cd2 (bug 1436187)
2018-03-07 22:04:35 +02:00
J. Ryan Stinnett 039b00fd39 Bug 1436187 - Move existing shared head files to devtools/client/shared. r=bgrins
Move shared-head.js and shared-redux-head.js into shared.

MozReview-Commit-ID: 5NUxcl9gkLl
2018-03-02 19:14:05 -06:00
Masayuki Nakano efaea0aaa7 Bug 1438157 - part 2: Remove unnecessary second argument of EventUtils.synthesizeKey() r=smaug
Note that this patch also replaces legacy VK_* with KEY_*, and replaces
synthesizeKey() for inputting some characters with sendString() because
it's better and clearer what it does and it sets shiftKey state properly.

MozReview-Commit-ID: De4enbjux3T
2018-02-15 04:15:39 +09:00
Yura Zenevich 914adc94d5 Bug 1428432 - Fix for mochitest chrome failures at devtools/client/shared/components/test/mochitest/test_tree_12.html. CLOSED TREE
MozReview-Commit-ID: 6G9M7fWUA9i
2018-02-12 23:51:13 -05:00
Yura Zenevich f64428a194 Bug 1428432 - further improve keyboard accessibility for VirtualizedTree. r=nchevobbe
MozReview-Commit-ID: 8Es17Q5J87a
2018-02-12 22:33:20 -05:00
Michael Ratcliffe 9c0bc2cf9f Bug 1416824 - Patch 4: Use react-test-renderer-shallow r=nchevobbe
MozReview-Commit-ID: GSaozwuAhVE
2018-02-09 11:12:50 +00:00
Mike Ratcliffe a4aea540c6 Bug 1416824 - Patch 1: React 16 Require statements and paths r=nchevobbe
MozReview-Commit-ID: 7BDgpYfLZLH
2018-02-07 16:31:57 +00:00
Alexandre Poirot 13e5d4f0f5 Bug 1434374 - Auto-rewrite Cu.import into ChromeUtils.import or require calls. r=jdescottes
MozReview-Commit-ID: 7YyLu5q23Hs
2018-02-07 01:37:36 -08:00
Andreea Pavel 7ff759117e Backed out 3 changesets (bug 1416824) for mochitest chrome failures at devtools/client/shared/components/test/mochitest/test_notification_box_01.html on a CLOSED TREE
Backed out changeset dc4675fd3257 (bug 1416824)
Backed out changeset b2aebf1d7ee7 (bug 1416824)
Backed out changeset f52006e2a1dc (bug 1416824)
2018-02-07 21:06:58 +02:00
Mike Ratcliffe ea3eba7c8e Bug 1416824 - Patch 1: React 16 Require statements and paths r=nchevobbe
MozReview-Commit-ID: 7BDgpYfLZLH
2018-02-07 16:31:57 +00:00
Andrew McCreight 272cee1e65 Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian
This patch was autogenerated by my decomponents.py

It covers almost every file with the extension js, jsm, html, py,
xhtml, or xul.

It removes blank lines after removed lines, when the removed lines are
preceded by either blank lines or the start of a new block. The "start
of a new block" is defined fairly hackily: either the line starts with
//, ends with */, ends with {, <![CDATA[, """ or '''. The first two
cover comments, the third one covers JS, the fourth covers JS embedded
in XUL, and the final two cover JS embedded in Python. This also
applies if the removed line was the first line of the file.

It covers the pattern matching cases like "var {classes: Cc,
interfaces: Ci, utils: Cu, results: Cr} = Components;". It'll remove
the entire thing if they are all either Ci, Cr, Cc or Cu, or it will
remove the appropriate ones and leave the residue behind. If there's
only one behind, then it will turn it into a normal, non-pattern
matching variable definition. (For instance, "const { classes: Cc,
Constructor: CC, interfaces: Ci, utils: Cu } = Components" becomes
"const CC = Components.Constructor".)

MozReview-Commit-ID: DeSHcClQ7cG
2018-02-06 09:36:57 -08: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
Andrea Marchesini fae42fd6b6 Bug 1428745 - Remove support for version parameter from script loader - tests, r=jonco
* * *
Bug 1428745 - Remove support for version parameter from script loader - fixing a broken depending test - CLOSED TREE, r=me
* * *
Bug 1428745 - Remove support for version parameter from script loader - fixing WPTs - CLOSED TREE, r=me
* * *
Bug 1428745 - Remove support for version parameter from script loader - fixing tests - CLOSED TREE, r=me
2018-01-09 17:00:49 +01:00
Leo Huang db9e3f19d5 Bug 1426634 - Rename devtools/client/shared/components/Tree.js to VirtualizedTree.js; r=nchevobbe
MozReview-Commit-ID: 80ebj9CJODR
2017-12-22 12:10:00 +08:00
Michael Ratcliffe 2a1a4e7e30 Bug 1419828 - Remove devtools references to React.addons.TestUtils r=nchevobbe
Changes:

- Added testUtils to React DOMs Proxy MonkeyPatch.
- Removed TestUtils where it is not needed.
- Added syntax identifiers to Markdown fences just because VSCode can do syntax highlighting in the markdown itself when you do that.
- In our require-helper.js files I have had to keep the name "react-addons-test-utils." This is because Enzyme uses the require paths to choose which adapters are needed (none are... yet)... we will need to use "react-addons-test-utils" instead of "react-dom/test-utils" as the path until we upgrade to React 16+.

MozReview-Commit-ID: H1tgzfp0MXl
2017-11-24 18:25:52 +00:00
Michael Ratcliffe fdb9244b1b Bug 1413860 - Shared components to use prop-types and react-dom-factories r=nchevobbe
@nchevobbe: Please wait for a green try before reviewing this.

MozReview-Commit-ID: 9SLEHAq0IQQ
2017-11-03 13:34:41 +00:00
Narcis Beleuzu 6f6d04c41c Backed out changeset 9029ee56b1ad (bug 1413860) for mochitest clipboard failures on browser_jsterm_selfxss.js. r=backout on a CLOSED TREE 2017-11-13 14:16:40 +02:00
Michael Ratcliffe 658587160e Bug 1413860 - Shared components to use prop-types and react-dom-factories r=nchevobbe
@nchevobbe: Please wait for a green try before reviewing this.

MozReview-Commit-ID: 9SLEHAq0IQQ
2017-11-03 13:34:41 +00:00
Michael Ratcliffe 7b67c821d8 Bug 1412311 - DevTools Shared Components to ES6 classes r=nchevobbe
In devtools/client/shared/components/tree/TreeView.js I have had to leave defaultProps outside the getter as a temporary workaround for bug 1413167.

MozReview-Commit-ID: 1yaxqFnC92p
2017-10-27 15:33:10 +01:00
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
Dan Epstein c958bdf812 Bug 1402394 CamelCase all React component files in \devtools\client\shared\components\. r=pbro
MozReview-Commit-ID: HH4mbqB6RTK
2017-09-27 01:12:13 -04:00
Patrick Brosset 0f33225cbb Bug 1402386 - CamelCase the inspector-tab-panel component; r=Honza
MozReview-Commit-ID: 2j1ocvxYvzv
2017-09-25 15:40:56 +02:00
Tom Tromey 2547134c0a Bug 1371852 - make Frame component listen for source-map pref changes; r=jryans
MozReview-Commit-ID: 51DTsRGogCh
2017-06-12 16:44:27 -06:00
Ruturaj K. Vartak 1e0299af06 Bug 1364093 - After a space and character, autocomplete should be shown for all flags. r=ntim, jdescottes.
MozReview-Commit-ID: JTPvHLBzIB0
2017-06-07 21:51:00 +02:00
Ruturaj K. Vartak 72ce3157df Bug 1364097 - Do not show the autocomplete popup when input is empty. r=jdescottes
MozReview-Commit-ID: JCE5eWPKu8l
2017-05-19 09:46:00 +01: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
Ruturaj K. Vartak d9699d833f Bug 1364113 - Test cases for Network Monitor autocomplete. r=jdescottes, ntim
MozReview-Commit-ID: 3JcO3lR0TVR
2017-05-16 19:58:00 +01:00
Tim Nguyen 1b1a6124a1 Backed out changeset f7b1a4643318
MozReview-Commit-ID: AvjGf1tcKbw
2017-05-17 08:40:56 +01:00
Ruturaj K. Vartak 7d1ab24bc1 Bug 1354504 - Add test cases for SearchBox and AutocompletePopup react components. r=ntim, jdescottes.
[SearchBox]
- SearchBox setup
- initial empty value
- initially notFocussed
- setting value to inputbox
- checking for focus on the input
- onBlur
- ClearButton hidden initialized
- ClearButton shown on some value
KeyDown emptyAutoComplete return undefined
- ArrowDown
- ArrowUp
- PageDown
- PageUp
- Home
- End
- Tab
	- and hide box
- Backspace
	- reactivates popup
- Enter
	- and hide box
- Escape

[AutocompletePopup]
- initialy DOM invisibility
- focus on input and visibility
- List compare
- Initial selectedIndex = -1
- Blur hiding of autocomplete
- filtering of Values
- jumpToTop (by key events)
- jumpToBottom (by key events)
- jumpBy (by key events)
- select (by key events)
- Selection class
- MouseDown

MozReview-Commit-ID: 9PjGztW0PIy
2017-05-16 19:58:00 +01:00
Tom Tromey c4042ba67b Bug 1359144 - use client-side source map service in console; r=jryans
MozReview-Commit-ID: Jn9fr1EoPg9
2017-04-28 10:12:57 -06:00
Yura Zenevich bfca413cb2 Bug 1335055 - improving accessibility of a tree component (keyboard and semantics). r=Honza
MozReview-Commit-ID: 1ffA4VjuyUZ
2017-03-16 23:01:04 -04:00
Masatoshi Kimura 4f2e64ad3d Bug 1342144 - Remove version parameter from the type attribute of script elements. r=jmaher
This patch is generated by the following sed script:
find . ! -wholename '*/.hg*' -type f \( -iname '*.html' -o -iname '*.xhtml' -o -iname '*.xul' -o -iname '*.js' \) -exec sed -i -e 's/\(\(text\|application\)\/javascript\);version=1.[0-9]/\1/g' {} \;

MozReview-Commit-ID: AzhtdwJwVNg
2017-02-23 06:10:07 +09:00
Ricky Chien ccd39b8726 Bug 1333364 - Introduce id props to tab r=Honza
MozReview-Commit-ID: 1nbK6mlRSIr
2017-01-25 00:25:11 +08:00
Julian Descottes 842ebf8a63 Bug 1325401 - extract reps chrome mochitests to a dedicated folder;r=jlast
MozReview-Commit-ID: 1fqARH9N4sd
2017-01-17 16:07:48 +01:00
Julian Descottes b4ef60032f Bug 1313119 - wrap all rep render() methods with try/catch;r=nchevobbe
MozReview-Commit-ID: 5nXcv3in4WT
2016-12-30 18:12:38 +01:00