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

23150 Коммитов

Автор SHA1 Сообщение Дата
Mike Kaply 04dd2f4733 Bug 1716630 - Test for developer tools on app menu when developer tools are disabled is set. r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D117933
2021-06-15 21:41:41 +00:00
Alexandre Poirot 9724cf200e Bug 1707878 - [devtools] Allow chrome/parent process documents loaded in tabs. r=jdescottes,nchevobbe
This ends up being more for the cleanup than anything really mandatory here.

Differential Revision: https://phabricator.services.mozilla.com/D113510
2021-06-15 15:37:11 +00:00
Alexandre Poirot 3c13c7d68a Bug 1707878 - [devtools] Test TargetCommand with a parent process pages. r=jdescottes,nchevobbe
Surprisingly, previous changeset fix this. Following changeset is rather there for cleanups.
The fact that we instantiate a first JSWindowActor pair from frame-helper seems to do the trick.
The new code in frame-helper no longer conditionaly create the target for the top BC.

I also silent an exception happening in this test without fission.

Differential Revision: https://phabricator.services.mozilla.com/D117472
2021-06-15 15:37:10 +00:00
Alexandre Poirot 6b4249246f Bug 1707878 - [devtools] Ensure emitting top level target first when we start watching for targets. r=jdescottes,nchevobbe
This only failed with devtools.target-switching.server.enabled=true as we emit top level target
from the Watcher only when this is enabled.

This is covered by browser_target_list_frames.js asserting a precise order in targets.
This test was failing with the pref set to true and should now pass in all 4 configurations.
(fission on/off + server target on/off)

Also try to destroy the top level target last, after all the remote iframes ones, but I'm not sure it is as important.

Note that we were trying to add the top level BC multiple times between code in utils.js vs worker-helper and frame-helper:getWatchingBrowsingContexts.

Differential Revision: https://phabricator.services.mozilla.com/D117471
2021-06-15 15:37:10 +00:00
Alexandre Poirot b10f35c671 Bug 1715911 - [devtools] Use DOCUMENT_EVENT's dom-complete event in the DOM panel r=nchevobbe
This slightly changes panel initialization,
instead of updating the UI on opening as soon as the first top level target is available,
it will only update once the navigate resource fires.

So if we open the toolbox on a still loading document, it will update later, but only once
instead of twice.

Differential Revision: https://phabricator.services.mozilla.com/D117515
2021-06-15 08:54:40 +00:00
Alexandre Poirot bd1afe2a59 Bug 1715909 - [devtools] Use DOCUMENT_EVENT's dom-complete event in the accessibility panel. r=nchevobbe
I'm not sure it is useful to hide ResourceCommand in the proxy layer.
It is better if all frontend uses Commands directly, having intermediate layer
make it harder to understand and debug.

Differential Revision: https://phabricator.services.mozilla.com/D117513
2021-06-15 08:54:40 +00:00
Alexandre Poirot 0a0ca16ccf Bug 1715903 - [devtools] Migrate SourceMapURLService to DOCUMENT_EVENT's will-navigate. r=nchevobbe
This help also remove the target watching as this was there
only to workaround the complexity/limitations of target actor's will-navigate.

`waitForSourceLoad` was resolving immediately on previous source,
already available before the reload.

Differential Revision: https://phabricator.services.mozilla.com/D117475
2021-06-15 08:54:39 +00:00
Yaron Tausky 768366d7b8 Bug 1496997 - Remove dom.serviceWorkers.parent_intercept pref r=asuth,dom-workers-and-storage-reviewers,perftest-reviewers,jgraham,sparky,webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D101788
2021-06-15 08:52:39 +00:00
Kris Maglione ae436f55ec Bug 1646560: Part 2 - Move allowJavascript and friends from DocShell to BrowsingContext and WindowContext. r=jdescottes,nika,geckoview-reviewers,devtools-backward-compat-reviewers,agi
This is slightly complicated by the fact that the editor code wants to be able
to set this from the content process, so we really need separate
BrowsingContext and WindowContext flags, the latter of which can be set by the
owning process.

Differential Revision: https://phabricator.services.mozilla.com/D114899
2021-06-15 04:40:11 +00:00
Emilio Cobos Álvarez 14d63a75c3 Bug 1715984 - Remove -moz-outline-radius. r=TYLin
It does nothing since 88 and we unshipped it in 89.

Differential Revision: https://phabricator.services.mozilla.com/D117532
2021-06-15 04:16:46 +00:00
Andrew Halberstadt 3e6d6103de Bug 1696531: fix fake adb process to support python2 and 3, r=bhearsum
Differential Revision: https://phabricator.services.mozilla.com/D109729
2021-06-14 15:31:41 +00:00
Mike Kaply 4959a7dc51 Bug 1715777 - Hide individual developer menuitems if devtools disabled by policy. r=emalysz?
Differential Revision: https://phabricator.services.mozilla.com/D117548
2021-06-14 14:04:44 +00:00
Jonathan Kew 553fdd24fc Bug 1711479 - Support various metrics (not only ex-height) as the basis for font-size-adjust calculations in the gfx font implementations. r=layout-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D115211
2021-06-14 12:32:37 +00:00
Hubert Boma Manilla 9e0da20ee6 Bug 1707555 - [devtools] Use thread configuration actor for all thread options r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D116340
2021-06-14 12:27:42 +00:00
Silke Hofmann be58a2a2f3 Bug 1481470 - Stop using xlink:href in SVG in devtools/. r=nhnt11,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D117205
2021-06-13 19:01:19 +00:00
Dana Keeler ef0a88c6f2 Bug 1715142 - introduce nsIPublicKeyPinningService and remove 'type' parameter from nsISiteSecurityService r=rmf,necko-reviewers
The public key pinning implementation is much less complex than the HSTS
implementation, and only needs a small subset of the parameters of the latter.
Furthermore, the information it relies on is static, and so is safe to access
from content processes. This patch separates the two implementations, thus
simplifying both of them and avoiding some unnecessary IPC calls in the
process.

Differential Revision: https://phabricator.services.mozilla.com/D117096
2021-06-12 01:12:25 +00:00
Butkovits Atila e4394b27a2 Backed out 3 changesets (bug 1715142) for causing build bustages. CLOSED TREE
Backed out changeset 7e67994f6a65 (bug 1715142)
Backed out changeset f58d5156f332 (bug 1715142)
Backed out changeset f8a7bd4519c6 (bug 1715142)
2021-06-11 21:20:02 +03:00
Dana Keeler f84faf1bf5 Bug 1715142 - introduce nsIPublicKeyPinningService and remove 'type' parameter from nsISiteSecurityService r=rmf,necko-reviewers
The public key pinning implementation is much less complex than the HSTS
implementation, and only needs a small subset of the parameters of the latter.
Furthermore, the information it relies on is static, and so is safe to access
from content processes. This patch separates the two implementations, thus
simplifying both of them and avoiding some unnecessary IPC calls in the
process.

Differential Revision: https://phabricator.services.mozilla.com/D117096
2021-06-11 17:58:19 +00:00
Nicolas Chevobbe 7463b2b837 Bug 1715951 - [devtools] Remove testActor#waitForEventOnNode. r=bomsy.
Depends on D117509

Differential Revision: https://phabricator.services.mozilla.com/D117511
2021-06-11 15:53:59 +00:00
Nicolas Chevobbe 3862784164 Bug 1715949 - [devtools] Remove testActor#getWindowDimensions. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D117509
2021-06-11 15:53:58 +00:00
Nicolas Chevobbe eeca16e6eb Bug 1714291 - [devtools] Remove unused reflow helper method. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D117508
2021-06-11 15:53:58 +00:00
Nicolas Chevobbe b352b0b314 Bug 1715938 - [devtools] Remove testActor#scrollWindow. r=jdescottes.
Depends on D117438

Differential Revision: https://phabricator.services.mozilla.com/D117507
2021-06-11 15:53:57 +00:00
Julian Descottes 60a999f8a1 Bug 1715741 - [devtools] Enable a few inspector tests which already work with bfcache in parent r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D117407
2021-06-11 14:39:07 +00:00
Nicolas Chevobbe bce69a58f1 Bug 1715985 - [devtools] Upgrade to pretty-fast 0.2.7. r=jdescottes.
This will unblock the migration to Node 12.

Differential Revision: https://phabricator.services.mozilla.com/D117537
2021-06-11 14:39:05 +00:00
Julian Descottes 5e8b5107e6 Bug 1715954 - [devtools] Remove in-tree copy of acorn.js r=nchevobbe
This file is no longer used. acorn is pulled from npm by the debugger and the pretty-print worker

Differential Revision: https://phabricator.services.mozilla.com/D117531
2021-06-11 12:56:00 +00:00
Nicolas Chevobbe 690a925370 Bug 1715802 - [devtools] Remove testActor#getStyleSheetsInfoForNode. r=jdescottes.
The method was only used in one test, that was disabled
most of the time (only running on non-debug non-e10s).
It seems safe to remove it since we have a mochitest
that is checking ua stylesheets (browser_rules_user-agent-styles.js).

Differential Revision: https://phabricator.services.mozilla.com/D117438
2021-06-11 05:59:32 +00:00
Nicolas Chevobbe 01f1468023 Bug 1715577 - [devtools] Remove testActor#reloadFrame. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D117437
2021-06-11 05:59:32 +00:00
Nicolas Chevobbe b1b976cac2 Bug 1715574 - [devtools] Remove testActor#scrollIntoView. r=jdescottes.
Depends on D117267

Differential Revision: https://phabricator.services.mozilla.com/D117436
2021-06-11 05:59:31 +00:00
Iulian Moraru 955a3ab572 Backed out 2 changesets (bug 1715142) for causing marionette failures on test_navigation.py and mochitest failures on browser_setIgnoreCertificateErrors.js. CLOSED TREE
Backed out changeset 83206685ca0b (bug 1715142)
Backed out changeset ab3060a5f69e (bug 1715142)
2021-06-11 02:45:34 +03:00
Olli Pettay 25600c7409 Bug 1715877 - Disable bfcache-in-parent when running devtools/client/application/test/browser/browser_application_panel_list-domain-workers.js, r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D117460
2021-06-10 22:18:07 +00:00
Olli Pettay 4faa8c8e72 Bug 1715880 - Disable bfcache-in-parent when running devtools/client/application/test/browser/browser_application_panel_list-several-workers.js, r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D117461
2021-06-10 22:17:40 +00:00
Dana Keeler f3c620e4c3 Bug 1715142 - introduce nsIPublicKeyPinningService and remove 'type' parameter from nsISiteSecurityService r=rmf,necko-reviewers
The public key pinning implementation is much less complex than the HSTS
implementation, and only needs a small subset of the parameters of the latter.
Furthermore, the information it relies on is static, and so is safe to access
from content processes. This patch separates the two implementations, thus
simplifying both of them and avoiding some unnecessary IPC calls in the
process.

Differential Revision: https://phabricator.services.mozilla.com/D117096
2021-06-10 22:13:32 +00:00
Alexandre Poirot e0b3bf54bc Bug 1686727 - [devtools] Migrate browser_storage_dynamic_windows to ResourceCommand. r=ladybenko
We should stop using StorageActor.listStores in favor of ResourceCommand.
listStores still forces to involve message manager in the server codebase.
This breaks when we enable JSWindowActor based targets.

Differential Revision: https://phabricator.services.mozilla.com/D116481
2021-06-10 21:26:14 +00:00
Alexandre Poirot cbf6187290 Bug 1686727 - [devtools] Disable browser_storage_webext_storage_local on fission. r=ladybenko
This test is not relevant in fission as we aren't using listStores,
nor do we have any EXTENSION_STORAGE resource to test yet.

Differential Revision: https://phabricator.services.mozilla.com/D116483
2021-06-10 21:26:14 +00:00
Alexandre Poirot 68dc58276a Bug 1686727 - [devtools] Migrate browser_storage_cookies-duplicate-names to ResourceCommand. r=ladybenko
We should stop using StorageActor.listStores in favor of ResourceCommand.
listStores still forces to involve message manager in the server codebase.
This breaks when we enable JSWindowActor based targets.

Differential Revision: https://phabricator.services.mozilla.com/D116482
2021-06-10 21:26:14 +00:00
Alexandre Poirot 6ae68db282 Bug 1686727 - [devtools] Migrate browser_storage_listing to ResourceCommand. r=ladybenko
We should stop using StorageActor.listStores in favor of ResourceCommand.
listStores still forces to involve message manager in the server codebase.
This breaks when we enable JSWindowActor based targets.

Differential Revision: https://phabricator.services.mozilla.com/D116480
2021-06-10 21:26:13 +00:00
Alexandre Poirot 406a7d2d5f Bug 1686727 - [devtools] Migrate browser_storage_updates to ResourceCommand. r=ladybenko
We should stop using StorageActor.listStores in favor of ResourceCommand.
listStores still forces to involve message manager in the server codebase.
This breaks when we enable JSWindowActor based targets.

Differential Revision: https://phabricator.services.mozilla.com/D116479
2021-06-10 21:26:13 +00:00
Alexandre Poirot 5bee607617 Bug 1713810 - [devtools] Fix openTabAndSetupStorage and clearStorage test helpers with fission. r=ladybenko
Avoid running failing tests as they don't cleanup their storage on teardown.

Differential Revision: https://phabricator.services.mozilla.com/D116478
2021-06-10 21:26:12 +00:00
Andrey Bienkowski 68148b7093 Bug 1715436 - Convert defer to Promise in devtools/client/shared/test/browser_treeWidget_keyboard_interaction.js r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D117259
2021-06-10 15:28:24 +00:00
Andrey Bienkowski c86b626c90 Bug 1715326 - Convert defer to Promise in devtools/client/shared/test/browser_treeWidget_mouse_interaction.js r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D117195
2021-06-10 15:27:25 +00:00
Alexandre Poirot b810080537 Bug 1712557 - [devtools] Ensure notifying about the target before start the resource watchers. r=jdescottes
This is important to emit `connectFromContent` before processing the watched data.
We have to notify the parent process (and the client) about the new target actor.
And do that before any code in the content process tries to emit an event via this target acotr.
We will typically start the resources watchers when processing the watched data,
which will emit the resources-available-form on the target actor.

Writing a test for this is a bit tricky, as we start missing event when we get into it.
browser_resources_document_events.js starts failing without this patch because DOCUMENT_EVENT's dom-loading is emitted immediately
and is lost in the parent process.
I'm not sure we can write a better test than this existing failure.

Differential Revision: https://phabricator.services.mozilla.com/D117149
2021-06-10 14:58:53 +00:00
Alexandre Poirot ac1ce83f3e Bug 1712557 - [devtools] Avoid emitting window-ready/window-destroyed for top level documents. r=bomsy,jdescottes
These events are redundant with target creation and destruction when the targets
follows the window lifecycle. These events are now only useful for in-process iframes.

Also, when the Target is instantiated by the server codebase, we end up registering
the code emitting these events sooner, so that we emit window-ready for the existing document!
On top of that, we end up also instantiating (and attaching) the thread actor earlier.
When combined, the thread actor was receiving window-ready for the existing top document
and was reseting itself after being attached and having registered the breakpoints.

Some followup would be required for will-navigate.
We get an initial will-navigate when the target instantiate, which can also confuse actors.
But as this event is important for DocumentEventWatcher, more work is needed to disable it.

Differential Revision: https://phabricator.services.mozilla.com/D117148
2021-06-10 14:58:53 +00:00
Alexandre Poirot 5a8aebb195 Bug 1712557 - [devtools] Test hitting breakpoints via a reload link. r=bomsy
I thought I would reused browser_dbg-navigation.js, but its doc-scripts.html
test page is too complex and doesn't reproduce the broken breakpoint.
So I'm still cleaning it up, but ended up introducing a new dedicated test and test page.

Note that I'm removing the toggleScopes call as it was most likely a workaround.
Test helpers assume that scopes are visible and timeout if the scopes don't get updated.

The added test now only fails without fission + with server target switching.

Differential Revision: https://phabricator.services.mozilla.com/D116811
2021-06-10 14:58:53 +00:00
Julian Descottes 72d0779bd0 Bug 1714885 - [devtools] Consolidate dark theme customizations for aboutdebugging in base.css r=daisuke
All the customizations for dark theme now use variables defined in base.css

Differential Revision: https://phabricator.services.mozilla.com/D117277
2021-06-10 12:16:19 +00:00
Peter Van der Beken ec0f0e687e Bug 1715662 - Disable BFCache in parent in devtools/shared/commands/target-configuration/tests/browser_target_configuration_command_color_scheme.js. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D117392
2021-06-10 09:48:21 +00:00
Jonathan Kew a74bd20f2b Bug 737785 - Un-prefix -moz-tab-size (keeping the prefixed version as an alias for now). r=layout-reviewers,dholbert
This results in lots of new WPT test passes.

There were also a couple of WPT tests that turned out to be broken;
tab-size-inline-001 and -002 had errors in their reference files such
that they'd never pass anywhere. So those are fixed here.

Depends on D117331

Differential Revision: https://phabricator.services.mozilla.com/D117332
2021-06-10 09:19:24 +00:00
Nicolas Chevobbe 3ecabea51d Bug 1708106 - [devtools] Fix testActor usage in browser_inspector_highlighter-05.js. r=ochameau.
The test opens the inspector and retrieves the testActor,
then a navigation occurs and testActor is used to check
if the highlighter works.
When server-side target switching is enabled, the testActor
gets destroyed during the navigation, and when it throws
when we try to use it in the new document.
To fix this, we only retrieve the testActor once we navigated.

Differential Revision: https://phabricator.services.mozilla.com/D117267
2021-06-10 05:25:46 +00:00
Nicolas Chevobbe e3f2401076 Bug 1715448 - [devtools] Remove testActor zoomPageTo and changeZoomLevel methods. r=jdescottes.
These methods are replaced by a helper in shared-head that
sets the fullZoom property on the browsing context.
A new testActor method, waitForHighlighterUpdate, is added
so we can know when a given highlighter is updated (which
is something that was done in changeZoomLevel).

Differential Revision: https://phabricator.services.mozilla.com/D117263
2021-06-10 05:25:46 +00:00
Boris Chiou fd2fe22dc1 Bug 1340422 - Part 11: Enable pref on nightly. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D115753
2021-06-09 21:17:25 +00:00
Boris Chiou 87c6ff875d Bug 1340422 - Part 9: Update devtool tests for auto-completion. r=jdescottes
Now we have d property, so the list of auto completion should include d
property when typing 'd'. We need to add more tabs or up/down keys to
choose the keyword we want.

Differential Revision: https://phabricator.services.mozilla.com/D115752
2021-06-09 21:17:24 +00:00