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
- 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.
- 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.
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
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