Commit Graph
27 Commits
Author SHA1 Message Date
Alexandre Poirot e1f9301f4e Bug 1953578 - [devtools] Migrate all usage of react-prop-types CommonJS module to the ES Module version and remove the CommonJS version. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D241594
2025-03-19 13:30:51 +00:00
Alexandre Poirot 26260731f1 Bug 1953578 - [devtools] Migrate all usage of react CommonJS module to the ES Module version and remove the CommonJS version. r=devtools-reviewers,profiler-reviewers,nchevobbe,canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D241593
2025-03-19 13:30:51 +00:00
Mark Banner 91fde42f7b Bug 1826062 - Automatic fixes for Prettier 2.0.5 upgrade. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,owlish
Differential Revision: https://phabricator.services.mozilla.com/D177025
2023-05-20 12:26:49 +00:00
Alexandre Poirot a85b82697f Bug 1792847 - [devtools] Use absolute URLs to import modules in devtools/client/shared. r=jdescottes,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D158379
2022-09-30 15:17:39 +00:00
Mark Banner 6d03c63e2d Bug 1330099 - Enable object-shorthand eslint rule. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D153567
2022-08-03 14:57:05 +00:00
Julian Descottes f098fdd604 Bug 1735359 - [devtools] Enable DevTools auto theme by default r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D128268
2021-10-21 21:08:24 +00:00
Mattias de los Rios Rogers 5513f04576 Bug 1671147 - Add MDNLink and displayCloseButton options to NotificationBox. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D114420
2021-09-27 07:07:06 +00:00
Julian Descottes 49de8cd175 Bug 1326659 - [devtools] Use button element to render close button in NotificationBox r=nchevobbe,yzen
Differential Revision: https://phabricator.services.mozilla.com/D98987
2020-12-08 18:14:22 +00:00
Nicolas Chevobbe 68aacc044c Bug 1565963 - Add props to NotificationBox to render top and bottom borders. r=Honza.
We need this in the console to put the borders on the
right position, depending on the NotificationBox place.

Differential Revision: https://phabricator.services.mozilla.com/D38039
2019-07-18 05:51:24 +00:00
Victor Porof b7732ae890 Bug 1561435 - Format devtools/client/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35884
2019-07-05 11:24:38 +02:00
Nicolas Chevobbe 61586ec0dc Bug 1538700 - Fix NotificationBox proptype. r=Honza.
Differential Revision: https://phabricator.services.mozilla.com/D25358
2019-03-29 09:17:08 +00:00
neha e0e6f95ca2 Bug 1534026 - Add a wrapping prop to NotificationBox and use it from Console. r=nchevobbe.
This prop will add a classname in the NotificationBox element, that we then style to make the text wrap

Differential Revision: https://phabricator.services.mozilla.com/D23455
2019-03-18 08:32:54 +00:00
Nicolas Chevobbe 8051ed952c Bug 1526987 - Remove Immutable usage in NotificationBox.js ;r=Honza.
Immutable takes noticable amount of time to be loaded,
and we have very little use of it.
Removing it will help with the load time (especially
for the console).

Differential Revision: https://phabricator.services.mozilla.com/D19376
2019-02-18 13:30:01 +00:00
Vincent R 0cd8d00cd1 Bug 1185808 - Improve devtool notification box layout when overflowing. r=pbro
- Make notificationbox buttons and closing affordance visible when overflowing,
- Apply ellipsis to message when overflowing (using the width=0 to not break flex layout),
- Add title to show potentially truncated message on hover,
- Simplify layout (remove the unnecessary nested flexbox layout).

TESTED=Locally using some mocked notification buttons. Run styleeditor and shared/component tests.
2018-11-01 01:22:18 +01:00
Cosmin Sabou 8c625f78c1 Backed out changeset 16f9bded4e5b (bug 1185808) for mochitest failures on test_notification_box_03. 2018-11-05 12:37:39 +02:00
Vincent R e749be3ea3 Bug 1185808 - Improve devtool notification box layout when overflowing. r=pbro
- Make notificationbox buttons and closing affordance visible when overflowing,
- Apply ellipsis to message when overflowing (using the width=0 to not break flex layout),
- Add title to show potentially truncated message on hover,
- Simplify layout (remove the unnecessary nested flexbox layout).

TESTED=Locally using some mocked notification buttons. Run styleeditor and shared/component tests.
2018-11-01 01:22:18 +01:00
Mark Banner 3d6aaad3f5 Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D8389
2018-10-19 12:55:39 +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
Jan Odvarko f550f61eb4 Bug 1425538 - Use NotificationBox as regular React element; r=nchevobbe
MozReview-Commit-ID: AHvRWfRd1XY
2018-05-16 17:38:06 +02:00
Andreea Pavel fd5c74a55a Backed out changeset 8d0caf759080 (bug 1425538) for failing devtools/client/webconsole/test/mochitest/browser_jsterm_selfxss.js on a CLOSED TREE 2018-05-16 09:49:32 +03:00
Jan Odvarko 64e674c770 Bug 1425538 - Use NotificationBox as regular React element; r=nchevobbe
MozReview-Commit-ID: DRbxfnqMMvV
2018-05-16 07:12:40 +02: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
Nicolas Chevobbe bb3b72922f Bug 1404850 - Fix self-XSS protection in new console and enable test; r=Honza.
The self-XSS protection was broken since the switch to an HTML document. We
went from using the XUL <notificationbox> tag to a simple div.
But notificationbox has method that a simple div has not, and when trying
to display the warning message, there was an error in terminal.
This patch uses the NotificationBox React component and create it when needed.
It also rename and enable the test that ensures that XSS is working.

MozReview-Commit-ID: BhxIqf7gzAG
2017-10-24 11:08:02 +02: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
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