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

22678 Коммитов

Автор SHA1 Сообщение Дата
Tim Nguyen 7772ba544e Bug 1701448 - Tweak in-content page styling further for Proton. r=desktop-theme-reviewers,dao
* Update green color used for success
* Fix actions menulist alignment
* Make various elements use new accent colors
* Fix lack of border on HTML checkboxes
* Update various colors to proton colors
* Update input border-radius to 2px
* Update border colors

Differential Revision: https://phabricator.services.mozilla.com/D110033
2021-04-05 16:29:18 +00:00
Mark Banner c3d0fbb56a Bug 1702166 - Update ESLint, Babel and associated modules to the latest versions. r=mossop,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D110606
2021-04-04 08:05:39 +00:00
Kajal Sah 1a85ea7596 Bug 1701461 - Corrects screenshot filename. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D110364
2021-04-02 17:12:10 +00:00
Nicolas Chevobbe a902adedc9 Bug 1701423 - [devtools] Fix intermittent on browser_storage_fission_cookies.js. r=ochameau.
This patch waits for the "store-objects-edit" event to be emitted before checking
the content of the UI.

Differential Revision: https://phabricator.services.mozilla.com/D110423
2021-04-02 05:01:53 +00:00
Julian Descottes 5f5b2bba52 Bug 1644397 - [devtools] Add test for duplicated early messages in console. r=nchevobbe
Depends on D105546

Differential Revision: https://phabricator.services.mozilla.com/D105547
2021-04-01 22:11:26 +00:00
Julian Descottes afcecb947d Bug 1644397 - [devtools] Add dedicated navigation test. r=nchevobbe
Depends on D105545

Differential Revision: https://phabricator.services.mozilla.com/D105546
2021-04-01 22:11:26 +00:00
Julian Descottes 9508bd1fb2 Bug 1644397 - [devtools] Check if we should unregisterJSWindowActors after destroying a WatcherActor. r=nchevobbe
Depends on D105544

Differential Revision: https://phabricator.services.mozilla.com/D105545
2021-04-01 22:11:25 +00:00
Julian Descottes b0935928d0 Bug 1644397 - [devtools] Create tab targets on process change via the Watcher Actor. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D105544
2021-04-01 22:11:25 +00:00
Alexandre Poirot c900b93c42 Bug 1631451 - [devtools] Prevent re-entrant destroy loop in Pool.destroy. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D110097
2021-04-01 13:43:58 +00:00
Alexandre Poirot 547220f7e4 Bug 1631451 - [devtools] Control DevToolsClient closure from Descriptor instead of Target. r=nchevobbe,jdescottes
Still use a shouldCloseClient flag, but instead of closing the client from the target's destruction,
from which we should ignore cross process target switching,
we now close it from the descriptor destruction.
Descriptor destruction should only happen when the toolbox is meant to be closed.

Differential Revision: https://phabricator.services.mozilla.com/D106835
2021-04-01 13:43:57 +00:00
Alexandre Poirot 4290423f9b Bug 1631451 - [devtools] Destroy target front via Watcher's target-destroyed-form. r=nchevobbe,jdescottes
That, instead of tabDetached event, fired on the target actor themself.

Differential Revision: https://phabricator.services.mozilla.com/D108578
2021-04-01 13:43:57 +00:00
Alexandre Poirot c8f91a99da Bug 1699493 - [devtools] Migrate WebExtInspectedWindow front to a command. r=nchevobbe,rpl
- implement the new "inspected-window" command
- move WebExtensionInspectedWindowFront implement to the command, making the front empty
- migrate tests to use the commands instead of front
- stop maintaining the current top level target in ExtensionParent.jsm, no longer have to use watchTargets
- stop creating a new descriptor on each new target
- instead only pull one new dedicated "commands" for WebExt (still in ExtensionParent.jsm)
- remove TabDescriptor isDevToolsExtensionContext as we no longer need anything special in the descriptor
- remove now unused methods on DevToolsShims (createWebExtensionInspectedWindowFront, createDescriptorForTabForWebExtension)
- remove the now unused TabDescriptorFactory.createDescriptorForTab's "forceCreationForWebextension" option, as CommandsFactory.forTab always instantiate a brand new commands
- migrate webext to use the command instead of front

Differential Revision: https://phabricator.services.mozilla.com/D108994
2021-04-01 10:31:43 +00:00
Julian Descottes 4f9e9360fc Bug 1702061 - [devtools] Remove isPanelReady flag and devtools-panel-ready from DevTools panel instances r=nchevobbe
Depends on D110368
Both the flag and the event are not used.
The only thing which matters from the framework perspective is to wait for panel.open to resolve.

Differential Revision: https://phabricator.services.mozilla.com/D110369
2021-03-31 12:41:44 +00:00
Julian Descottes 7a570555f5 Bug 1702061 - [devtools] Rename panel ready event to devtools-panel-ready r=nchevobbe
Depends on D110367

Initial cleanup before removal.

Differential Revision: https://phabricator.services.mozilla.com/D110368
2021-03-31 12:41:43 +00:00
Julian Descottes 116dd052e8 Bug 1702061 - [devtools] rename panel isReady to isPanelReady r=nchevobbe
Initial cleanup to make the future removal easier to review

Differential Revision: https://phabricator.services.mozilla.com/D110367
2021-03-31 12:41:43 +00:00
Julian Descottes 1e32445f35 Bug 1699619 - [devtools] Wait for a11y panel initialization in browser_aboutdebugging_devtoolstoolbox_reload r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D110345
2021-03-31 11:38:59 +00:00
Alexandre Poirot 684a38bad8 Bug 1701776 - [devtools] Make the accesibility panel support "reloaded" event. r=jdescottes
This helps tests know when the panel is done processing a new page load.

Differential Revision: https://phabricator.services.mozilla.com/D110077
2021-03-31 10:09:55 +00:00
Alexandre Poirot 098a0f42dd Bug 1702053 - [devtools] Renamed targetList occurences to targetCommand in the targetCommand tests. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D110319
2021-03-31 09:32:18 +00:00
Alexandre Poirot 247b41df3c Bug 1696372 - [devtools] Migrate the rest of DevTools from toolbox.targetList to commands.TargetCommand. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D110212
2021-03-30 21:29:40 +00:00
Alexandre Poirot 23ca20118f Bug 1696372 - [devtools] Migrate styleditor panel from toolbox.targetList to commands.TargetCommand. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D110211
2021-03-30 21:29:39 +00:00
Alexandre Poirot 76159a7d58 Bug 1696372 - [devtools] Migrate netmonitor panel from toolbox.targetList to commands.TargetCommand. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D110210
2021-03-30 21:29:39 +00:00
Alexandre Poirot 6b3fd01026 Bug 1696372 - [devtools] Migrate inspector panel from toolbox.targetList to commands.TargetCommand. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D110209
2021-03-30 21:29:38 +00:00
Alexandre Poirot 1e42ba365c Bug 1696372 - [devtools] Migrate options panel from toolbox.targetList to commands.TargetCommand. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D110208
2021-03-30 21:29:38 +00:00
Alexandre Poirot 22f744cdaf Bug 1696372 - [devtools] Migrate debugger panel from toolbox.targetList to commands.TargetCommand. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D110207
2021-03-30 21:29:38 +00:00
Alexandre Poirot ed6eb0f3ae Bug 1696372 - [devtools] Migrate application panel from toolbox.targetList to commands.TargetCommand. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D110206
2021-03-30 21:29:37 +00:00
Alexandre Poirot 4e9f73a03a Bug 1696372 - [devtools] Migrate accessibility panel from toolbox.targetList to commands.TargetCommand. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D110205
2021-03-30 21:29:37 +00:00
Morgan Reschenberg 3d427a21d5 Bug 1694849: Remove devtools.accessibility.tabbing_order_activated probe and associated test r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D109800
2021-03-30 16:32:16 +00:00
wartmanm aec69ed53f Bug 1687175 - remove pending breakpoints from the same location they are added to r=jdescottes,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D109184
2021-03-30 15:04:40 +00:00
Nicolas Chevobbe b46c2f3c00 Bug 1701634 - [devtools] Add a TargetConfiguration command. r=ochameau.
Move the methods of the targetCommand that were related to targetConfiguration
to a dedicated command.
We also move the custom TargetConfigurationFront methods into the command.
Callsites are modified to use the new command. Doing so for the debugger involved
a bit more work as we needed to pass the command to the existing `setupCommands`
bootstrap function.

Differential Revision: https://phabricator.services.mozilla.com/D110200
2021-03-30 14:13:31 +00:00
Julian Descottes 560c9b5009 Bug 1701785 - [devtools] Fix display of CSS rule sources in Browser Toolbox ruleview r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D110236
2021-03-30 13:42:15 +00:00
Nicolas Chevobbe d1a386a566 Bug 1701887 - [devtools] Remove ignored tests in devtools/client/debugger/src/client/firefox/tests/. r=jdescottes.
Those tests were ignored by a rule in the jest config,
and they're not providing a good coverage anyway as
they're relying on mocks.
We definitely have a better coverage in existing mochitests,
so let's remove those 2 tests.
We take this opportunity to remove a non-existing path
from the jest config.

Differential Revision: https://phabricator.services.mozilla.com/D110217
2021-03-30 12:13:56 +00:00
Tom Tung 57e6375fc2 Bug 1696111 - Use sniffers in the requested category; r=necko-reviewers,valentin
After applying D102448,
uriloader/exthandler/tests/mochitest/test_nullCharFile.xhtml starts to fail.
The reason is that it adds image sniffer into net-content-sniffers which is not
expected.

Such that, this patch
- adds two other sniffers category:
  - orb-content-sniffers
    - The sniffers that are needed in ORB.
  - net-and-orb-content-sniffers
    - The sniffers that are in either orb-content-sniffers or net-content-sniffers.
- changes the way to ensure we only use the sniffers in the
requested category.

Differential Revision: https://phabricator.services.mozilla.com/D107207
2021-03-30 00:52:32 +00:00
Nicolas Chevobbe c4a5df59c4 Bug 1572659 - [devtools] Add a test for paused debugger overlay in a remote frame. r=bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D109887
2021-03-29 08:35:35 +00:00
Daisuke Akatsuka 51709b916b Bug 1699040: Send properties as a part of status. r=jdescottes,devtools-backward-compat-reviewers
As we don't have to get the properties separately anymore, include the properties into the state.

Depends on D109846

Differential Revision: https://phabricator.services.mozilla.com/D109847
2021-03-29 08:21:31 +00:00
Daisuke Akatsuka 8cc4f892bb Bug 1699040: Change tests to adapt new changes. r=jdescottes
Depends on D109845

Differential Revision: https://phabricator.services.mozilla.com/D109846
2021-03-29 08:21:30 +00:00
Daisuke Akatsuka bf198ba022 Bug 1699040: Avoid rendering items that are out of displayed area. r=jdescottes
So far, we had rendered all of the animation graphs amenably.
Thus, since it took time if the number of animations is huge, it had affected the performance.
This bug was caused by that reason.
In order to resolve it, we make it restrict to render graphs that are out of the displaying area.

Differential Revision: https://phabricator.services.mozilla.com/D109845
2021-03-29 08:21:30 +00:00
Nicolas Chevobbe b051b1cf2e Bug 1700548 - [devtools] Reset color-scheme simulation from the browsing context target that set it. r=jdescottes.
Since RDM spawn a new browsing context target, closing it
was restoring the taret configuration, which meant disabling
any color-scheme simulation that might have been enabled.
This patch introduces a flag that is set when the color scheme
simulation is set, and that will be checked before disabling
it when the target is destroyed.
This way, the simulation is only disabled when the actual target
that was used to set it is destroyed (i.e. the toolbox target).
A test is added to check that the original issue with RDM is resolved.

Differential Revision: https://phabricator.services.mozilla.com/D109906
2021-03-29 05:38:56 +00:00
Belén Albeza b137f9988e Bug 1666529 - [devtools] Part 2: Add mochitest for cookies resource in Fission r=jdescottes
NOTE: this depends on D108040.

Adds a mochitest to test cookies in iframes under Fission.

Depends on D108040

Differential Revision: https://phabricator.services.mozilla.com/D108041
2021-03-27 16:30:28 +00:00
Belén Albeza 5a57502c75 Bug 1666529 - [devtools] Part 1: Add cookie storage resource r=ochameau,jdescottes,devtools-backward-compat-reviewers
This adds a resource for the cookie storage type, that supports inspecting iframes, etc. on Fission.

NOTE: in order to use this new resource, set the `devtools.testing.enableServerWatcherSupport` to `true`

Differential Revision: https://phabricator.services.mozilla.com/D108040
2021-03-27 16:30:28 +00:00
Julian Descottes 23c61fcc0c Bug 1449754 - [devtools] Wait for ruler text to be updated in browser_inspector_highlighter-rulers_03.js r=ladybenko
This is the only highlighter-ruler test which modifies the size of the window via toolbox dock mode change.
There are a couple of issues:
We assume that the highlighter will be updated when we ask for its new content but we are not waiting on any event.
We also assume that the window size can be measured immediately after changing the docking mode.

Addressing the first issue by using asyncWaitUntil already reduces the failure rate significantly.
To address the second issue I am just adding a small delay before measuring the window dimension.
We could probably get a more in-depths fix and try to wait for rendering/paint/etc... I don't think it's worth the effort in the scope of this intermittent

Differential Revision: https://phabricator.services.mozilla.com/D109700
2021-03-26 15:45:34 +00:00
Butkovits Atila a62df7ef05 Backed out 2 changesets (bug 1666529) for causing lint failures.
Backed out changeset 24a6a96f3536 (bug 1666529)
Backed out changeset 3be87c868f09 (bug 1666529)
2021-03-26 18:42:31 +02:00
Nicolas Chevobbe 8e664c49b3 Bug 1699117 - [devtools] Fix failure and leak on browser_console.js . r=ladybenko.
This patch dose a few things:
- close the tab we open in the test
- move the setTimeout we were doing in a content task from the test
  to the function we are calling directly (this test is the only consumer
  of this function)
- cleanup the created content worker at the end of the test

Differential Revision: https://phabricator.services.mozilla.com/D108968
2021-03-26 15:03:05 +00:00
Nicolas Chevobbe 45bf9a3758 Bug 1699208 - [devtools] Fix intermittent on browser_console.js. r=ladybenko.
The test seems to run a bit long sometimes, so let's request a longer one.
Also, don't call store.dispatch in dispatchMessagesClear if store is null (store
is nullified when the console gets destroyed).

Differential Revision: https://phabricator.services.mozilla.com/D108967
2021-03-26 15:03:05 +00:00
Belén Albeza a9c6794d18 Bug 1666529 - [devtools] Part 2: Add mochitest for cookies resource in Fission r=jdescottes
NOTE: this depends on D108040.

Adds a mochitest to test cookies in iframes under Fission.

Differential Revision: https://phabricator.services.mozilla.com/D108041
2021-03-26 14:12:53 +00:00
Belén Albeza 73f1a65656 Bug 1666529 - [devtools] Part 1: Add cookie storage resource r=ochameau,jdescottes,devtools-backward-compat-reviewers
This adds a resource for the cookie storage type, that supports inspecting iframes, etc. on Fission.

NOTE: in order to use this new resource, set the `devtools.testing.enableServerWatcherSupport` to `true`

Differential Revision: https://phabricator.services.mozilla.com/D108040
2021-03-26 14:12:52 +00:00
Nicolas Chevobbe 092b9b3e4d Bug 1691579 - [devtools] Enable browser_spectrum.js on Fission. r=jdescottes.
The test failure doesn't seem to have anything to do with Fission,
but this might have introduce some changes in timings that would
trigger a race condition somehow.
The test was failing because in one of the test we were moving a slider
to change a color, while the slider element had a height of 0, which
would interfere with the computations that are done later.
This patch adds a helper function to create the Spectrum widget, wait for the
slider to have a non-zero height and then calling `show` (where some dimensions
are being cached).

Differential Revision: https://phabricator.services.mozilla.com/D109876
2021-03-26 12:42:29 +00:00
Nicolas Chevobbe fc741f13a9 Bug 1685268 - [devtools] Enable Stylesheet resource server support for content toolbox. r=ochameau
Enabling the support for stylesheet resources highlighted some issue with the
current situation.
A couple server tests needed to instantiate a resource watcher to pass.
We also add a test case for link from inspector to stylesheet when doing a same
process navigation (we already had one for target switching).

Differential Revision: https://phabricator.services.mozilla.com/D106081
2021-03-26 09:46:33 +00:00
Nicolas Chevobbe a4cffb88df Bug 1685268 - [devtools] Don't clear StyleEditor UI on redundant dom-loading event. r=jdescottes,ochameau.
With the previous patches in this queue, it looks like the
timing is stlightly modified, and on initial load we can
reveive stylesheet resources _before_ the intial dom-loading
event.
Since we're using dom-loading to clear the UI, we might destroy
stylesheets that we shouldn't.
We fix that in 2 folds:
- clear the UI in onTargetAvailable, which we do receive before any resources
- add a flag to the `dom-loading` resource when we're already going to be triggering
  onTargetAvailable for a given interaction (toolbox opening, cross-process
  navigation or any navigation when target will follow the global lifecycle).

Differential Revision: https://phabricator.services.mozilla.com/D109471
2021-03-26 09:46:33 +00:00
Nicolas Chevobbe 28f4165fb6 Bug 1685268 - [devtools] Watch for stylesheet resources from inspector front instead of inspector panel. r=ochameau.
This was previously done in the inspector panel initialization phase, after the
inspector front was created, which could lead to races.
Since the pageStyle actor requires stylesheets to being watched (when watcher
support is enabled), we do this in the inspector front, before creating the
page style actor.
We put the resourceWatcher instance on targetFront from resourceWatcher#_onTargetAvailable
so we can use it from everywhere.

Differential Revision: https://phabricator.services.mozilla.com/D109470
2021-03-26 09:46:32 +00:00
Nicolas Chevobbe f19daf9ada Bug 1685268 - [devtools] Use the StyleSheetManager in style-related actors. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D106079
2021-03-26 09:46:32 +00:00