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

20229 Коммитов

Автор SHA1 Сообщение Дата
Julian Descottes 92ac7d30b9 Bug 1592839 - Add new inline script in test document doc-scripts.html r=Honza
Adding this new inline scripts avoids frequent timeouts for browser_dbg-breakpoints-reloading.js

Differential Revision: https://phabricator.services.mozilla.com/D73231
2020-05-01 09:25:44 +00:00
Brad Werth 4ae0e63f68 Bug 1598145 Part 3: Add a test of changed meta viewport tags. r=hiro
This test checks several replaced meta viewport tags, exercising the code in
MobileViewportManager that changes resolution to maintain the proportional
amount of content visible in the display area as the viewport size changes.
It also checks the shrink-to-fit behavior of pages with user-scalable=no.

Differential Revision: https://phabricator.services.mozilla.com/D72762
2020-04-30 23:25:53 +00:00
Brad Werth c59bae07f0 Bug 1598145 Part 2: Make some more RDM test functions await reflow. r=mtigley,hiro
To reduce intermittents in RDM tests, setTouchAndMetaViewportSupport and
spawnViewportTask now await reflow before resolving. Additionally an awaited
reflow in setViewportSizeAndAwaitReflow was changed to use the standard
method.

Differential Revision: https://phabricator.services.mozilla.com/D72969
2020-04-30 23:25:53 +00:00
Gerald Squelart d6e98da86d Bug 1634234 - Only allow powers of 2 for buffer size in about:profiling - r=gregtatum
Display the buffer size as powers of 2, using binary-friendly units (e.g., 64MiB).
Presets have been adjusted to powers of 2.

Note that the profiler still uses this number as maximum per process, but this will change when bug 1632750 lands.

Differential Revision: https://phabricator.services.mozilla.com/D73213
2020-04-30 23:21:03 +00:00
Gerald Squelart 983fefb005 Bug 1634216 - PROFILE_ENTRY_SIZE = 8, as expected by the Gecko Profiler - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D73174
2020-04-30 23:20:43 +00:00
Alexandre Poirot 7688d1a74f Bug 1593937 - Disable browser_accessibility_tree_nagivation_oop.js as it fails intermittenly on Fission. r=yzen,jdescottes
It also triggers a C++ assertion.

Differential Revision: https://phabricator.services.mozilla.com/D72182
2020-04-30 07:59:44 +00:00
Alexandre Poirot 0df0904d08 Bug 1593937 - Remove/Deprecate listRemoteFrames. r=jdescottes
The previous changeset removed all the usages of listRemoteFrames from
the frontend code. We can start removing this method from the actor codebase,
and keep backward compat code in the client.

Differential Revision: https://phabricator.services.mozilla.com/D65522
2020-04-30 07:59:42 +00:00
Alexandre Poirot 6c2b300e88 Bug 1593937 - Prevent fetching NodeFront for already destroyed AccessibleFront. r=yzen
When navigating between process, we happen to destroy the AccessibleFront
in middle of this call to `Target.getFront("inspector")`.
Before calling updateDetails, we already check if AccessibleFront is already destroyed.
This code also checks after the call to getFront.

Differential Revision: https://phabricator.services.mozilla.com/D70842
2020-04-30 07:59:40 +00:00
Alexandre Poirot 1af9a59a48 Bug 1593937 - Fetch BrowsingContextTargets via the watcher instead of the RootFront. r=jdescottes
Now that the BrowsingContextTarget are created by the watcher,
we should redirect existing code in the frontend which was using
`RootFront.getBrowsingContextDescriptor` in order to directly fetch the target from the watcher.

We don't really need descriptors for additional targets.
I think that descriptors are mostly useful for the top level target and for about:debugging, to describe a target without debugging it yet.

This patch is a bit complex because we can't fetch the "parent BrowsingContext ID" from actors/browsing-context.js:form().
browsingContext.parent and browsingContext.embedderWindowGlobal are both null from the content process.
I have not found any way/API to get the parent browsing context ID from the content process, i.e. the ID of browser.xhtml from a tab content process.
So, I end up with this helper method on Watcher actor to get the parent ID on-demand.
We could also inject the parent ID into the browsingContextTarget's form in WindowGlobalWatcher._createTarget,
but that sounds very hacky and hard to follow.

Note that this patch address the issue of duplicated targets.
WatcherFront.getBrowsingContextTarget ensures fetching the ParentProcessTarget for browser.xhtml
instead of recreating a duplicated FrameDescriptor and BrowsingContextTarget for this document, as we do in the existing codebase.

Differential Revision: https://phabricator.services.mozilla.com/D62465
2020-04-30 07:59:38 +00:00
Alexandre Poirot 879475cfd3 Bug 1593937 - Implement watchTargets for remote frames. r=jdescottes
* Introduce a new actor "Watcher", which might in the future allow listening to anything.
Here, it only implements listening for additional remote frame's WindowGlobal
and notify about the WindowGlobalTargetActor's.
* Also, very important part here is that it instantiates the BrowsingContextTargetActor much earlier. Before anything from the page is executed.
It requires to instantiate the actor directly from the content processes, whereas before, we were doing it from a frontend request, after a notification sent from the parent process to the frontend.
* Last but not least, make the TargetList use this new watcher actor in order to
notify the frontend about the dynamically added remote frames.

Differential Revision: https://phabricator.services.mozilla.com/D63317
2020-04-30 07:59:30 +00:00
Alexandre Poirot 734e59b63d Bug 1593937 - Make the BrowsingContextTargetActor optionally follow the WindowGlobal lifecycle. r=jdescottes
The new `followWindowGlobalLifeCycle` argument and field makes the actor behaves like a WindowGlobalTargetActor and only care about the current global (and all its inner iframes, still).
But it ignores the previous/next document. We still uses the DebuggerProgressListener, but mostly for iframes.
will-navigate and navigate are irrelevant for this actor now.
The plan would be to eventually switch all codepaths to this WindowGlobalTargetActor and rename it.
For now, this would only be used for remoted iframes, only additional frame targets.
But not for top level document, nor top level target switching.

Differential Revision: https://phabricator.services.mozilla.com/D65521
2020-04-30 07:59:28 +00:00
Razvan Maries c409ec27d3 Bug 1633850 - Disabled browser_ignore_toolbox_network_requests.js on multiple platforms. r=aryx
Differential Revision: https://phabricator.services.mozilla.com/D73197
2020-04-30 08:52:32 +00:00
Nicolas Chevobbe f0b7591da9 Bug 1631799 - Fix order of command and its result message when server and client don't have the same clock time. r=jdescottes.
When remote-debugging a device, it might happen that the device clock
is not exactly at the same time as the client clock. In such case, we
may end up in cases where the result of a command as an older timestamp,
which means we could have in the console output a result that was displayed
before the command message that triggered it.
In order to fix this, we add a `startTime` property on the evaluateJSAsync
response, that we can then check on the client. If the server time is
older than the client time, then we remove the existing command message
and add a new one, with the server timestamp.

We could have waited the result of the command before displaying the
command message (so we don't have to add a message, and then remove it
when the timestamps don't match), but the UI wouldn't feel snappy, and
even worse in case of long execution times (e.g. a top-level await fetch command).

Differential Revision: https://phabricator.services.mozilla.com/D72705
2020-04-30 06:31:14 +00:00
Daisuke Akatsuka 1812f79a36 Bug 1634238: Remove CONSOLE_MESSAGES added by mistake from ResourceWatcher. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D73182
2020-04-30 06:00:29 +00:00
Emilio Cobos Álvarez 321e28ab43 Bug 1633938 - Implement RDM zoom with transform. r=bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D72981
2020-04-30 01:37:30 +00:00
Emilio Cobos Álvarez 72d224913c Bug 1578008 - Make promiseRDMZoom more simple and reliable. r=bradwerth
Now that we no longer have the various resolution shenanigans, we really
just want to ensure that child processes observe the resize of the
<browser> element, which can happen just fine if we ensure to flush
layout.

Differential Revision: https://phabricator.services.mozilla.com/D72552
2020-04-30 01:21:23 +00:00
Emilio Cobos Álvarez 9a9ab94bc2 Bug 1578008 - Remove various hacks to restore resolution only after a full zoom change. r=bradwerth
This is no longer needed now that MVM doesn't restore the zoom.

Differential Revision: https://phabricator.services.mozilla.com/D72551
2020-04-30 01:21:26 +00:00
Dorel Luca 8e7e7136a3 Backed out 4 changesets (bug 1633938, bug 1578008, bug 1633488) for Devtool failures in browser/base/content/test/static/browser_parsable_css.js. CLOSED TREE
Backed out changeset e690c4cf8848 (bug 1633938)
Backed out changeset c999ecad3be8 (bug 1633488)
Backed out changeset abbc47ce1451 (bug 1578008)
Backed out changeset 9e6925ea790f (bug 1578008)
2020-04-30 04:13:42 +03:00
Emilio Cobos Álvarez 17fae10a8b Bug 1633938 - Implement RDM zoom with transform. r=bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D72981
2020-04-29 21:44:17 +00:00
Emilio Cobos Álvarez 94e88b71b3 Bug 1578008 - Make promiseRDMZoom more simple and reliable. r=bradwerth
Now that we no longer have the various resolution shenanigans, we really
just want to ensure that child processes observe the resize of the
<browser> element, which can happen just fine if we ensure to flush
layout.

Differential Revision: https://phabricator.services.mozilla.com/D72552
2020-04-29 21:44:05 +00:00
Emilio Cobos Álvarez 0169492da2 Bug 1578008 - Remove various hacks to restore resolution only after a full zoom change. r=bradwerth
This is no longer needed now that MVM doesn't restore the zoom.

Differential Revision: https://phabricator.services.mozilla.com/D72551
2020-04-29 21:44:01 +00:00
Julian Descottes 7e8291c458 Bug 1630228 - Add tests for the F12 disabled experiment r=nchevobbe
Depends on D71988

Note: might remote the "devtools_user" test if we decide to drop D71037

Differential Revision: https://phabricator.services.mozilla.com/D72313
2020-04-29 19:27:06 +00:00
Julian Descottes 3478091004 Bug 1630228 - Add telemetry events for OFF 12 devtools experiment r=nchevobbe,janerik
Depends on D71037

Differential Revision: https://phabricator.services.mozilla.com/D71988
2020-04-29 16:19:11 +00:00
Julian Descottes 9dd88b59f5 Bug 1630228 - Enable F12 for all users with selfxss pref > 0 r=Harald,nchevobbe
Depends on D71036

Differential Revision: https://phabricator.services.mozilla.com/D71037
2020-04-29 16:17:57 +00:00
Julian Descottes bdabf1705b Bug 1630228 - Show a doorhanger when using F12 r=fluent-reviewers,nchevobbe,Gijs,victoria
Depends on D71035

When F12 is disabled, if the user presses this key we show a notification hanging below the Firefox Hamburger menu.
This anchor was chosen because this is where the users can normally find the Web Developer menu.
Note that they could also open DevTools via another keyboard shortcut, even if it's not mentioned in the message.

Pressing on F12 again hides the message. The message will be displayed again if the user presses F12 again (ie, F12 is a toggle and the message is not just a one shot)

{F2136447}

Differential Revision: https://phabricator.services.mozilla.com/D71036
2020-04-29 16:17:47 +00:00
Julian Descottes 6bd74b87a0 Bug 1630228 - Basic implementation to disable F12 until toolbox opens r=nchevobbe
In this changeset, we add a preference that will simply disable F12 when it is set.
UI and tests are in followup patches

Differential Revision: https://phabricator.services.mozilla.com/D71035
2020-04-29 06:34:22 +00:00
Dorel Luca 7a84a62b7f Backed out changeset 6feb116adffe (bug 1631799) for devtools/client/webconsole/test/browser/browser_webconsole_telemetry_reverse_search.js. CLOSED TREE 2020-04-29 22:33:05 +03:00
Dorel Luca 4d9e086d8a Backed out 3 changesets (bug 1602075) for Devtools failures in devtools/client/accessibility/test/browser/browser_accessibility. CLOSED TREE
Backed out changeset d6c51e1b3fb3 (bug 1602075)
Backed out changeset f9017a10e8df (bug 1602075)
Backed out changeset 69d5ff6275a9 (bug 1602075)
2020-04-29 21:35:47 +03:00
David Walsh fe6cfda83a Bug 1630957 - Provide settings menu for debugger UI to allow disabling JavaScript r=jlast,Honza
Differential Revision: https://phabricator.services.mozilla.com/D71365
2020-04-29 15:00:43 +00:00
Nicolas Chevobbe f74554002b Bug 1631799 - Fix order of command and its result message when server and client don't have the same clock time. r=jdescottes.
When remote-debugging a device, it might happen that the device clock
is not exactly at the same time as the client clock. In such case, we
may end up in cases where the result of a command as an older timestamp,
which means we could have in the console output a result that was displayed
before the command message that triggered it.
In order to fix this, we add a `startTime` property on the evaluateJSAsync
response, that we can then check on the client. If the server time is
older than the client time, then we remove the existing command message
and add a new one, with the server timestamp.

We could have waited the result of the command before displaying the
command message (so we don't have to add a message, and then remove it
when the timestamps don't match), but the UI wouldn't feel snappy, and
even worse in case of long execution times (e.g. a top-level await fetch command).

Differential Revision: https://phabricator.services.mozilla.com/D72705
2020-04-29 17:12:32 +00:00
Yura Zenevich 5b77e1ed09 Bug 1602075 - make enable/disable panel UI conditional on the accessibility-panel-auto-init feature. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D71584
2020-04-29 17:14:42 +00:00
Yura Zenevich e4233d8a2e Bug 1602075 - handle can-be-disabled and can-be-disabled events in the MainFrame component instead of the Toolbar and Description respectively. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D71583
2020-04-29 17:14:33 +00:00
Yura Zenevich ade7f7c571 Bug 1602075 - add an accessibility-panel-auto-init feature to control the panel auto enabling functionality. r=mythmon,mtigley
Differential Revision: https://phabricator.services.mozilla.com/D71582
2020-04-29 17:14:25 +00:00
Julien Wajsberg 8a64dfa089 Bug 1629109 - Change the popup to 'custom' when changing it in about:profiling r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D72682
2020-04-29 15:32:19 +00:00
Julien Wajsberg 5a57f750eb Bug 1629109 - Loop over all presets to display in about:profiling r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D72681
2020-04-29 15:32:17 +00:00
Daisuke Akatsuka 876007c921 Bug 1628635: Update MDN compatibility data. r=rcaliman
Depends on D72606

Differential Revision: https://phabricator.services.mozilla.com/D72607
2020-04-29 13:58:28 +00:00
Julian Descottes a9ef06b786 Bug 1594402 - Add comments about the supported activeSwatch markup in SwatchColorPickerTooltip.js r=ladybenko,rcaliman
Depends on D68971

Until have a shared component to build to color swatch, some additional comments.

Differential Revision: https://phabricator.services.mozilla.com/D71315
2020-04-29 10:05:49 +00:00
Julian Descottes a97d7642d9 Bug 1594402 - Support setting the data-color attribute on the swatch directly r=ladybenko,rcaliman
Depends on D68849

Differential Revision: https://phabricator.services.mozilla.com/D68971
2020-04-29 10:05:37 +00:00
Julian Descottes 816f890d48 Bug 1594402 - Test that switching color format in DevTools works with the color picker r=ladybenko,rcaliman
Depends on D61063

I broke this feature while working experimenting for this patch and it was not caught by any test.

Adding a test to avoid regressions.

Differential Revision: https://phabricator.services.mozilla.com/D68849
2020-04-29 10:03:40 +00:00
Julian Descottes d13658bff7 Bug 1594402 - Display a color swatch for CSS variables in CSS autocomplete r=ladybenko,rcaliman
Depends on D68963

Differential Revision: https://phabricator.services.mozilla.com/D61063
2020-04-29 10:03:31 +00:00
Julian Descottes ef20d9d88f Bug 1594402 - Store the swatchcolorpicker color in a data attribute instead of textcontent r=ladybenko,rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D68963
2020-04-29 10:03:24 +00:00
Daisuke Akatsuka 55938be3e0 Bug 1618385: Use 'dom-complete' event instead to not miss 'navigate' event. r=ochameau,Honza
Differential Revision: https://phabricator.services.mozilla.com/D71881
2020-04-23 23:53:32 +00:00
Narcis Beleuzu c6a90c4273 Backed out 5 changesets (bug 1630228) for bc failures on browser_startup_images.js . CLOSED TREE
Backed out changeset 92172b9cef6b (bug 1630228)
Backed out changeset 8a9c30923847 (bug 1630228)
Backed out changeset 11f6beab6bdf (bug 1630228)
Backed out changeset f9e6d07f3a90 (bug 1630228)
Backed out changeset ae64b5ffc3b5 (bug 1630228)
2020-04-29 02:20:52 +03:00
Julian Descottes 411056375a Bug 1630228 - Add tests for the F12 disabled experiment r=nchevobbe
Depends on D71988

Note: might remote the "devtools_user" test if we decide to drop D71037

Differential Revision: https://phabricator.services.mozilla.com/D72313
2020-04-28 20:24:01 +00:00
Julian Descottes 0c53e2927a Bug 1630228 - Add telemetry events for OFF 12 devtools experiment r=nchevobbe,janerik
Depends on D71037

Differential Revision: https://phabricator.services.mozilla.com/D71988
2020-04-28 20:22:16 +00:00
Julian Descottes 6e79d3a9f3 Bug 1630228 - Enable F12 for all users with selfxss pref > 0 r=Harald,nchevobbe
Depends on D71036

Differential Revision: https://phabricator.services.mozilla.com/D71037
2020-04-28 20:11:20 +00:00
Julian Descottes cd23320b30 Bug 1630228 - Show a doorhanger when using F12 r=fluent-reviewers,nchevobbe,Gijs,victoria
Depends on D71035

When F12 is disabled, if the user presses this key we show a notification hanging below the Firefox Hamburger menu.
This anchor was chosen because this is where the users can normally find the Web Developer menu.
Note that they could also open DevTools via another keyboard shortcut, even if it's not mentioned in the message.

Pressing on F12 again hides the message. The message will be displayed again if the user presses F12 again (ie, F12 is a toggle and the message is not just a one shot)

{F2136447}

Differential Revision: https://phabricator.services.mozilla.com/D71036
2020-04-28 20:09:17 +00:00
Julian Descottes 7642daff2c Bug 1630228 - Basic implementation to disable F12 until toolbox opens r=nchevobbe
In this changeset, we add a preference that will simply disable F12 when it is set.
UI and tests are in followup patches

Differential Revision: https://phabricator.services.mozilla.com/D71035
2020-04-28 20:09:15 +00:00
Greg Tatum 46fc6e8cf6 Bug 1607801 - Create a TypeScript friendly lazy loading mechanism; r=ochameau
This patch changes the lazy loading mechanism to explicitly create a "lazy" object
that can be used to load modules. It makes it so that TypeScript can understand what
is going on with the lazy loading. I couldn't find a solution to make the Object.define
mechanism work for the global object.

I briefly considered using the Object.define() method on the returned "lazy" object,
as this could be typed correctly, but I felt magically accessing properties was less
clear compared to calling a function that has the side effect of maybe loading a
module for the first time.

Differential Revision: https://phabricator.services.mozilla.com/D59208
2020-04-28 17:51:09 +00:00
Greg Tatum 02e0ad2908 Bug 1607801 - Pre-define ChromeUtils.import paths; r=julienw
This patch takes the approach from mossop on pre-defining ChromeUtils.import
paths, so that they don't need to be defined where they are used. Perhaps in
the future we could automate this more, but for now this will make the current
approach more ergonomic for consumers of the types.

Differential Revision: https://phabricator.services.mozilla.com/D59206
2020-04-28 17:49:59 +00:00