Several aboutdebugging test helpers rely on mutations to know when the UI is updated.
Since we are using React, we don't have any control on the actual mutations that
will be performed by the framework to reach a target UI state.
Using waitUntil with a DOM predicate should be more stable and less intermittent prone.
MozReview-Commit-ID: AnrEItpWkWL
This updates devtools-launchpad to 0.0.96, and thus
makes the console launchpad uses Webpack 3.
Because of this version bump, the console launchpad
config needed some adjustments to keep working:
- Replace loaders with rules
- Pass the babelExclude property in the option argument for launchpad config
- Change the name of the svg filter to exclude
- Add a workaround "raw!" required-files (remove the "raw!" prefix in a loader).
An alias needed to be added as well for devtools/shim/locales.
MozReview-Commit-ID: 3cWXYw6gNc7
This basically revert the changes made in bug 1341756; but it doesn't seems to
bring the same issue as before since `pagehide` event is emitted properly when
entering in RDM.
Added unit test to catch future regression.
The removal of duplicated hidden markup in anonymous content will be handled by
Bug 1396690.
MozReview-Commit-ID: 92qC9CHYL1a
In the process of adding those tests, I realized the cleanup was
not effective. There were some bugs for Immutable List (we can't
use delete in a withMutation callback), and in object/arrays (we
we're using Array.includes with another array as a parameter).
These were fixed, and the new tests are now passing.
MozReview-Commit-ID: NrKjLuu25
Per definition of this bug/patch, key shortcuts can't be registered anymore.
It mostly means that add-on definition a key shortcut won't keep their key shortcut working.
This shouldn't be an issue on 57 as I don't think WebExtension addon can set a key shortcut via this DevTools API.
MozReview-Commit-ID: G5c8JzaUWoR
storage-search.html:
- Switched to use cookies.
browser_storage_search.js:
- Use a little destructuring.
- Hide all but name and value columns.
- Run search tests with both columns visible.
- Hide the value column.
- Run search tests with only the name column visible.
MozReview-Commit-ID: JKeRLWfhpFb
Some APIs and methods still used by the addon sdk are not worth exposing
or migrating to mozilla-central given that this is only intended for
release 56 (after that, legacy extensions will no longer be supported).
For those APIs, we create a simple wrapper in DevToolsShim and moved the
implementation to framework/devtools
MozReview-Commit-ID: 8LiiptqO0NI