Граф коммитов

107 Коммитов

Автор SHA1 Сообщение Дата
Yury Delendik 1e4ad1d104 Bug 1619737 - Update wasmparser to version 0.10.0 r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D65136

--HG--
extra : moz-landing-system : lando
2020-03-03 19:45:28 +00:00
Nicolas Chevobbe 0eb4c8e236 Bug 1611143 - Update redux to v.4.0.5. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D60841

--HG--
extra : moz-landing-system : lando
2020-01-24 14:20:48 +00:00
Tom Ritter e751bb508a Bug 1592297 - Remove MOZ_QUIET and disable this output by default. r=mccr8,jdescottes
Instead of setting MOZ_QUIET to hide the DOMWINDOW and DOCSHELL log messages, you
now must set a regular logging module to enable them. They are automatically enabled
on tests that rely on these messages are leak checking.

That module is DocShellAndDOMWindowLeak:3

One disadvantage of this change is that you cannot set MOZ_QUIET to hide these
messages when running those tests (primarily browser-chrome).

Differential Revision: https://phabricator.services.mozilla.com/D52413

--HG--
extra : moz-landing-system : lando
2019-12-02 15:41:35 +00:00
Bianca Danforth c71a7e9564 Bug 1573201 - Add limited write support for extension storage.local data in addon debugger r=miker,rpl
* Update the extensionStorage actor to enable some writing to extension storage.local through the Storage panel client.
* All values in the client are displayed as strings, so the actor must stringify them before sending them to the client and parse them when receiving changes from the client. For this reason, there is currently limited write support.
  * Item values that are JSONifiable (numbers, strings, booleans, object literals, arrays and null) can be edited from the Storage panel.
    * Object literals and arrays are only editable if their values are JSONifiable, with a maximum nested depth of 2 (e.g. an object with a nested object is editable, provided the nested object contains only primitive values). Object literals' keys must also be strings to be editable.
  * Non-JSONifiable values cannot be edited, and will be represented by "{}" in most cases in the panel, though some non-JSONifiable values (undefined, Date, and BigInt) will be displayed as more readable strings.
  * Some modifications are a little more complex, requiring an IndexedDB transaction. This will be handled in a separate patch.
    * Item names cannot be edited from the Storage panel.
    * New items cannot be added from the Storage panel.
  * Any item can be removed.
  * All items can be removed at once.
* In-line comments referencing Bugs 1542038 and 1542039 indicate places where the implementation may differ for local storage versus the other storage areas in the actor.
* The parseItemValue method used in the client was moved to a shared directory, so that the actor could parse string values from the client in its editItem method.

Differential Revision: https://phabricator.services.mozilla.com/D34416

--HG--
rename : devtools/client/shared/vendor/JSON5_LICENSE => devtools/shared/storage/vendor/JSON5_LICENSE
rename : devtools/client/shared/vendor/JSON5_UPGRADING.md => devtools/shared/storage/vendor/JSON5_UPGRADING.md
rename : devtools/client/shared/vendor/json5.js => devtools/shared/storage/vendor/json5.js
rename : devtools/client/shared/vendor/stringvalidator/UPDATING.md => devtools/shared/storage/vendor/stringvalidator/UPDATING.md
rename : devtools/client/shared/vendor/stringvalidator/moz.build => devtools/shared/storage/vendor/stringvalidator/moz.build
rename : devtools/client/shared/vendor/stringvalidator/tests/unit/head_stringvalidator.js => devtools/shared/storage/vendor/stringvalidator/tests/unit/head_stringvalidator.js
rename : devtools/client/shared/vendor/stringvalidator/tests/unit/test_sanitizers.js => devtools/shared/storage/vendor/stringvalidator/tests/unit/test_sanitizers.js
rename : devtools/client/shared/vendor/stringvalidator/tests/unit/test_validators.js => devtools/shared/storage/vendor/stringvalidator/tests/unit/test_validators.js
rename : devtools/client/shared/vendor/stringvalidator/tests/unit/xpcshell.ini => devtools/shared/storage/vendor/stringvalidator/tests/unit/xpcshell.ini
rename : devtools/client/shared/vendor/stringvalidator/util/assert.js => devtools/shared/storage/vendor/stringvalidator/util/assert.js
rename : devtools/client/shared/vendor/stringvalidator/util/moz.build => devtools/shared/storage/vendor/stringvalidator/util/moz.build
rename : devtools/client/shared/vendor/stringvalidator/validator.js => devtools/shared/storage/vendor/stringvalidator/validator.js
extra : moz-landing-system : lando
2019-11-22 20:09:59 +00:00
Greg Tatum e10889da76 Bug 1591455 - Add types to the Settings component; r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D50667

--HG--
extra : moz-landing-system : lando
2019-11-12 19:07:16 +00:00
Greg Tatum 430ff3e871 Bug 1581569 - Add type definitions for performance-new client; r=julienw
Everything should be typed in the JS Docs. I added a bunch of TODOs for features
the could be added in the future, but weren't valuable for this initial
prototype. Unfortunately I couldn't get the @types folder working, and had to
co-locate the redux.d.ts next to the vender file. TypeScript was attempting
to parse the file, and was failing.

Differential Revision: https://phabricator.services.mozilla.com/D46042

--HG--
extra : moz-landing-system : lando
2019-10-07 13:44:12 +00:00
Nicolas Chevobbe 925311bc77 Bug 1568779 - Remove editors settings comments in devtools files. r=pbro.
Differential Revision: https://phabricator.services.mozilla.com/D42300

--HG--
extra : moz-landing-system : lando
2019-08-19 12:48:16 +00:00
Julian Descottes 5811296101 Bug 1566020 - Update vendored lodash version to 4.17.14 r=cr,jlast
This is the only version of lodash that actually ships with Firefox.
We have some package.json files that also reference lodash but they are used for tests only.

Differential Revision: https://phabricator.services.mozilla.com/D39223

--HG--
extra : moz-landing-system : lando
2019-07-31 05:24:13 +00:00
Staś Małolepszy 157da38e6c Bug 1568914 - Update Fluent to @fluent/bundle 0.14.0 r=zbraniecki,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D39400

--HG--
extra : moz-landing-system : lando
2019-07-30 13:21:59 +00:00
Julian Descottes 8fb98366d6 Bug 1550476 - Replace jsol library by json5 to avoid eval-like usage r=miker
Depends on D38620

json5 is a much bigger library than JSOL but it doesn't rely on any eval-like code.
It should provide similar features, and testing locally it seems to work as expected.

Differential Revision: https://phabricator.services.mozilla.com/D38515

--HG--
extra : moz-landing-system : lando
2019-07-24 09:35:49 +00:00
Julian Descottes 2600f5c910 Bug 1550471 - Migrate to JSZip v3.2.1 to avoid usage of eval-like code r=Honza
Depends on D38619

The new version of JSZip doesn't rely on any eval like code.

Differential Revision: https://phabricator.services.mozilla.com/D38517

--HG--
extra : moz-landing-system : lando
2019-07-19 06:45:21 +00:00
Julian Descottes 72e1e60982 Bug 1550463 - Remove new Function usage in lodash r=jlast
Depends on D38618

The template() helper seems not used in devtools so I removed it here.
If we could generate a bundle of lodash without this method from the start that would be great.

Differential Revision: https://phabricator.services.mozilla.com/D38516

--HG--
extra : moz-landing-system : lando
2019-07-24 15:36:02 +00:00
Julian Descottes 8095fbadfe Bug 1550489 - Remove usage of new Function in react-redux.js r=nchevobbe
Depends on D38617

We should no longer use eval-like code in privileged modules

Differential Revision: https://phabricator.services.mozilla.com/D38513

--HG--
extra : moz-landing-system : lando
2019-07-19 07:48:52 +00:00
Julian Descottes 3977257d5e Bug 1550485 - Remove usage of new Function in redux.js r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D38514

--HG--
extra : moz-landing-system : lando
2019-07-19 08:34:19 +00:00
Michael Ratcliffe b934009a64 Bug 1560006 - Upgrade React to v16.8.6 r=nchevobbe
### Try

All green... at least when it comes to these changes.

https://treeherder.mozilla.org/#/jobs?repo=try&revision=7d44faac0cd9cad95e0a22e4e465c130240d04f0
https://treeherder.mozilla.org/#/jobs?repo=try&revision=82aa7753e83faf3be594dd746ccba4414951def7

Just resurrected this in the hope it will help Gabe with the markup view changes.

Differential Revision: https://phabricator.services.mozilla.com/D35265

--HG--
extra : moz-landing-system : lando
2019-07-19 09:08:36 +00:00
Alexandre Poirot c57a4aea23 Bug 1543023 - Use ChromeUtils.import only with one argument in all /devtools/ r=jdescottes
ChromeUtils.import still support a second argument as it used to do
when it was Components.utils.import. But this is deprecated and we should
instead always use the returned value.

Differential Revision: https://phabricator.services.mozilla.com/D37708

--HG--
extra : moz-landing-system : lando
2019-07-11 17:08:20 +00:00
Gurzau Raul e639b0bebd Backed out changeset 5656e43f9b43 (bug 1560006) for debugger test fails at SourcesTreeItem.spec.js
--HG--
extra : rebase_source : bb5081c6c4b2e735f41745bf047a39404cd1e6e4
2019-06-22 01:51:11 +03:00
Michael Ratcliffe 7b2e58e5d4 Bug 1560006 - Upgrade React to v16.8.6 r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D35265

--HG--
extra : moz-landing-system : lando
2019-06-21 21:22:42 +00:00
Daniel Varga 352fafbea0 Backed out changeset b68dc81adbf9 (bug 1560006) for debugger failure
--HG--
extra : rebase_source : bd86f278fc400e530f3e21d33ae448735b9fd01a
2019-06-20 03:30:26 +03:00
Michael Ratcliffe ca940dcbc5 Bug 1560006 - Upgrade React to v16.8.6 r=nchevobbe
Try is green.

Differential Revision: https://phabricator.services.mozilla.com/D35265

--HG--
extra : moz-landing-system : lando
2019-06-19 18:53:57 +00:00
Jason Laster 4e2a60b020 Bug 1555293 - Fix 0.13 - 0.16% installer size. r=davidwalsh
Differential Revision: https://phabricator.services.mozilla.com/D34779

--HG--
rename : devtools/client/shared/source-map/worker.js => devtools/client/shared/vendor/whatwg-url.js
extra : moz-landing-system : lando
2019-06-13 14:18:10 +00:00
Yura Zenevich ae2e67be35 Bug 1518487 - implement accessible accordion component identical to the one used in debugger.html. r=nchevobbe
MozReview-Commit-ID: BzTSPJQxYfi

Differential Revision: https://phabricator.services.mozilla.com/D19050

--HG--
extra : moz-landing-system : lando
2019-02-12 19:39:34 +00:00
Csoregi Natalia 577b9d88b8 Backed out 7 changesets (bug 1518487) for failures on devtools/client/accessibility/test/browser/browser_accessibility_sidebar_checks.js. CLOSED TREE
Backed out changeset 7a4f96a4d71c (bug 1518487)
Backed out changeset 8031278b4a17 (bug 1518487)
Backed out changeset d55e9ed92676 (bug 1518487)
Backed out changeset fc1687cc488d (bug 1518487)
Backed out changeset 0d2800976a32 (bug 1518487)
Backed out changeset 62f78c63d9f1 (bug 1518487)
Backed out changeset bc6cc126a9b4 (bug 1518487)
2019-02-12 00:33:42 +02:00
Yura Zenevich 63558b4757 Bug 1518487 - implement accessible accordion component identical to the one used in debugger.html. r=nchevobbe
MozReview-Commit-ID: BzTSPJQxYfi

Differential Revision: https://phabricator.services.mozilla.com/D19050

--HG--
extra : moz-landing-system : lando
2019-02-11 20:45:39 +00:00
Jason Laster a5e9e35809 Bug 1515644 - [release 110] align the bundles for release 110. r=davidwalsh 2018-12-20 22:41:46 -05:00
Belén Albeza 6f4781eae9 Bug 1509470 - Add license for react-router-dom. r=jdescottes,mhoye
Differential Revision: https://phabricator.services.mozilla.com/D14152

--HG--
extra : moz-landing-system : lando
2018-12-11 16:52:48 +00:00
Jason Laster f9117e8d6d Bug 1510629 - Update Debugger Frontend v105. r=dwalsh 2018-11-28 13:58:42 -05:00
Belén Albeza e6a8a6668e Bug 1479746 - (part 3) Instructions to upgrade react-router-dom library. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D12743

--HG--
extra : moz-landing-system : lando
2018-11-27 12:05:54 +00:00
Belén Albeza aace8a36d8 Bug 1479746 - Add router-like feature to navigate via URL bar. r=jdescottes,daisuke
I'm sorry this is just one commit, I should have split it :( I will submit tests in another patch.

- Vendored [react-router-dom](https://www.npmjs.com/package/react-router-dom) library.
- Removed `getSelectedPageComponent` from `App` component and changed it to use React Router's `Route` components.
- Made the sidebar links to point to proper URL's. Thanks to this we don't need a lot of code/props we were passing to these items to select the proper page.

Some considerations over the implementation:

- React Router's `Switch` is used to wrap our routes, to ensure only one is rendered. Right now is not strictly necessary, but I think it helps to clarify that the routes are _not_ nested.
- We need to pass a `key` prop to the `RuntimePage` rendered in the route, so when we change the actual runtime shown, the page gets updated.
- The action `selectPage` gets called on `componentWillMount`, so it doesn't change state while rendering.
- When we reload the page and a device runtime is selected, we redirect to "This Firefox" page.

(Click on this GIF to see navigation 👇)
{F1100903}

I'm sorry this has taken this long, it has been a bit of a headache 🙏

Differential Revision: https://phabricator.services.mozilla.com/D12147

--HG--
extra : moz-landing-system : lando
2018-11-27 12:03:12 +00:00
Michael Ratcliffe 838616630e Bug 1473842 - Upgrade React to v16.4.1 r=nchevobbe
MozReview-Commit-ID: CKlj71e4ZHy

--HG--
extra : rebase_source : 9529e6e33d4f789eb41b04ff3815379fe41a233d
2018-07-06 10:43:34 +01:00
Jason Laster db19c052dd Bug 1472023 - Update Debugger Frontend v66. r=dwalsh
MozReview-Commit-ID: 8FV5f3SVjUO
2018-07-02 13:17:47 -04:00
Julian Descottes 362b087916 Bug 1450071 - Vendor fluent-react in devtools/client/shared;r=jryans,stas
Ultimately fluent.js should not be vendored here, since fluent-react only
needs 2 methods from fluent.js.

Work is currently ongoing to extract those dependencies to separate packages,
once ready we will remove this vendored version of fluent.js.

MozReview-Commit-ID: E5uwsCHQ7tj

--HG--
extra : rebase_source : 549200589ee8f33a950cf28787ae170ee43229c1
2018-05-28 21:26:57 +02:00
Jason Laster 15e1d86b8e Bug 1464486 - Update Debugger Frontend v59. r=dwalsh 2018-05-29 09:50:10 -04:00
Jason Laster 881644f25f Bug 1453066 - Update Debugger Frontend v34. r=jdescottes 2018-04-11 22:06:24 -04:00
Michael Ratcliffe 73ac8a3582 Bug 1440609 - Uncouple DEBUG_JS_MODULES and DEBUG in devtools code r=jryans
MozReview-Commit-ID: 6qiu3D5eYyn

--HG--
extra : rebase_source : e39302f3f8fba26144c540e9f4b50ab7321a714c
2018-03-13 12:49:39 +00:00
Brian Grinstead 97119973ca Bug 1440094 - Remove imports to Console.jsm that only access the 'console' object;r=mossop
Importing this object is unnecessary after the updates to the WebIDL console from Bug 1425574
and the follow-ups blocking Bug 1430810. There are still callers that access Console.jsm
to create custom ConsoleAPI objects, but those will be handled separately.

MozReview-Commit-ID: 9ojFxtkpPId

--HG--
extra : rebase_source : 971bf99f709b8d2afe300f3693665724f747aa5e
2018-02-27 11:29:59 -08:00
Michael Ratcliffe 0b05b9ec61 Bug 1441147 - Upgrade redux and react-redux to remove react-dev warnings r=nchevobbe
This is as simple as an upgrade can be. Everything still appears to work but we should ensure try is green before landing.

MozReview-Commit-ID: KjH6nnuK4EY

--HG--
rename : devtools/client/shared/vendor/REDUX_UPGRADING => devtools/client/shared/vendor/REDUX_UPGRADING.md
extra : rebase_source : 12c88e1cad10fc08fcfb2cb829f9969b83b37ca1
2018-02-26 13:44:55 +00:00
Michael Ratcliffe c7bf9cb790 Bug 1420130 - Remove React Proxy Monkeypatch r=gregtatum
MozReview-Commit-ID: 9L9PYPDGTmj

--HG--
extra : rebase_source : f5acd734d04eb67b88ec594c969674a021c85903
2018-02-13 13:26:03 +00:00
nbeleuzu@mozilla.com 49cba58050 Backed out changeset 84ab509808e7 (bug 1420130) for mochitest failures on /browser_fontinspector_expand-css-code.js 2018-02-21 00:33:09 +02:00
Michael Ratcliffe ad6889fdd2 Bug 1420130 - Remove React Proxy Monkeypatch and see how it affects DAMP r=gregtatum
MozReview-Commit-ID: 9L9PYPDGTmj

--HG--
extra : rebase_source : e5fbef2c7221b92d54903a53fbb1106cdeb2f550
2018-02-13 13:26:03 +00:00
Jason Laster 51a14c65a3 Bug 1438930 - Update Debugger Frontend v17. r=jdescottes
MozReview-Commit-ID: CtomOfMYQFo
2018-02-20 08:17:09 -05:00
Michael Ratcliffe 05207f075a Bug 1416824 - Patch 4: Use react-test-renderer-shallow r=nchevobbe
MozReview-Commit-ID: GSaozwuAhVE

--HG--
extra : rebase_source : fc73fb4014b7b8b75a6ddddd7ddd45fe3b5bb5ab
2018-02-09 11:12:50 +00:00
Mike Ratcliffe 8be94a27b9 Bug 1416824 - Patch 3: React Upgrade Documentation r=nchevobbe
MozReview-Commit-ID: 2xbn0qTVTSC

--HG--
extra : rebase_source : 18e22b2ab5362c435848b77c4fed82c4ccfd8d1c
2018-02-07 16:34:35 +00:00
Mike Ratcliffe 9a9400e19c Bug 1416824 - Patch 2: React 16 Vendor Files r=nchevobbe
MozReview-Commit-ID: CLZTmy0irqG

--HG--
extra : rebase_source : 76c9268e7f2dc88b0873a4a639bc731e563aa50c
2018-02-07 16:33:43 +00:00
Alexandre Poirot e563788ea7 Bug 1434374 - Auto-rewrite Cu.import into ChromeUtils.import or require calls. r=jdescottes
MozReview-Commit-ID: 7YyLu5q23Hs

--HG--
extra : rebase_source : bb2805652c85d74a3e888326f4afa4b6857afa64
2018-02-07 01:37:36 -08:00
Andreea Pavel 2d6ebc39d2 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 52517c4e6d Bug 1416824 - Patch 3: React Upgrade Documentation r=nchevobbe
MozReview-Commit-ID: 2xbn0qTVTSC

--HG--
extra : rebase_source : 62e8e6f073387695dc6d6cc89dd1bf1f951c6c34
2018-02-07 16:34:35 +00:00
Mike Ratcliffe 4e56768e45 Bug 1416824 - Patch 2: React 16 Vendor Files r=nchevobbe
MozReview-Commit-ID: CLZTmy0irqG

--HG--
extra : rebase_source : 3cf6db8b6ec2a345533cdecfc050a5166c5bf415
2018-02-07 16:33:43 +00:00
Andrew McCreight 5dec0e0beb 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

--HG--
extra : rebase_source : d9c41878036c1ef7766ef5e91a7005025bc1d72b
2018-02-06 09:36:57 -08:00
Jason Laster 17769f5562 Bug 1427187 - Update Debugger frontend (12-27). r=jdescottes
MozReview-Commit-ID: 37viQIZZzGj
2018-01-05 09:44:09 +01:00