Commit Graph
664 Commits
Author SHA1 Message Date
Chris H-C d89527a234 Bug 2039650 - Remove Legacy Telemetry devtools probes r=jdescottes,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D300855
2026-05-28 16:32:18 +00:00
Dave Townsend 774f1b7a83 Bug 2042824: Fix tests that think that EventUtils.synthesizeMouse* returns a promise. r=Gijs,devtools-reviewers,fxview-reviewers,tabbrowser-reviewers,layout-reviewers,nchevobbe,jsudiaman,dshin,nsharpley
Differential Revision: https://phabricator.services.mozilla.com/D302775
2026-05-28 08:55:52 +00:00
Julian Descottes 3db349810d Bug 2041881 - [devtools] Override .browserContainer background from felt-v1 PBM in RDM r=devtools-reviewers,nchevobbe
The .browserContainer `background` is assigned to a linear-gradient in PBM. This commit updates the RDM css to also set the background instead of the background-color to ensure we override the default value properly.

Differential Revision: https://phabricator.services.mozilla.com/D302729
2026-05-27 13:03:32 +00:00
Emilio Cobos Álvarez e833a1757b Bug 2033243 - Replace ownerGlobal with documentGlobal, and stop exposing ownerGlobal to JS. r=firefox-desktop-core-reviewers ,webidl,joschmidt,perftest-reviewers,sparky,smaug,mossop ,webidl,joschmidt,perftest-reviewers,sparky,smaug,mossop
Bug 2033191 made sure we only call ownerGlobal on nodes.

As per the discussion in dev-platform, the front-end ~always wants
.documentGlobal. This removes ownerGlobal from the bindings. Following
patch will rename internal GetOwnerGlobal in gecko to GetRelevantGlobal
as per the HTML spec terminology.

Differential Revision: https://phabricator.services.mozilla.com/D297183
2026-05-02 22:04:13 +00:00
iulian moraru 480fc572da Revert "Bug 2036439, Bug 2033243 - Deal with ownerGlobal -> documentGlobal rename in extensions. r=robwu,home-newtab-reviewers,mconley" for causing newtab failures.
This reverts commit 4f62279d01.

Revert "Bug 2033243 - Other miscellaneous ownerGlobal-related naming removal. r=dom-core,smaug"

This reverts commit 91a4ece356.

Revert "Bug 2033243 - BindToOwner -> BindToGlobal. r=dom-core,smaug"

This reverts commit 5a95a889e1.

Revert "Bug 2033243 - Rename GetOwnerGlobal to GetRelevantGlobal. r=dom-core,media-playback-reviewers,credential-management-reviewers,webrtc-reviewers,dom-storage-reviewers,firefox-style-system-reviewers,dimi,janv,dshin,aosmond,smaug"

This reverts commit 7177a68e67.

Revert "Bug 2033243 - Replace ownerGlobal with documentGlobal, and stop exposing ownerGlobal to JS. r=firefox-desktop-core-reviewers ,webidl,joschmidt,perftest-reviewers,sparky,smaug,mossop ,webidl,joschmidt,perftest-reviewers,sparky,smaug,mossop"

This reverts commit 5263254690.
2026-05-02 16:43:35 +00:00
Emilio Cobos Álvarez 5263254690 Bug 2033243 - Replace ownerGlobal with documentGlobal, and stop exposing ownerGlobal to JS. r=firefox-desktop-core-reviewers ,webidl,joschmidt,perftest-reviewers,sparky,smaug,mossop ,webidl,joschmidt,perftest-reviewers,sparky,smaug,mossop
Bug 2033191 made sure we only call ownerGlobal on nodes.

As per the discussion in dev-platform, the front-end ~always wants
.documentGlobal. This removes ownerGlobal from the bindings. Following
patch will rename internal GetOwnerGlobal in gecko to GetRelevantGlobal
as per the HTML spec terminology.

Differential Revision: https://phabricator.services.mozilla.com/D297183
2026-05-02 15:33:20 +00:00
rperta d4cc71008d Revert "Bug 2033243 - Other miscellaneous ownerGlobal-related naming removal. r=dom-core,smaug" on developer request
This reverts commit e58e122135.

This reverts commit 84ca206f3e.

This reverts commit a7945292ed.

This reverts commit 367d83d299.
2026-05-02 06:20:30 +00:00
Emilio Cobos Álvarez 367d83d299 Bug 2033243 - Replace ownerGlobal with documentGlobal, and stop exposing ownerGlobal to JS. r=firefox-desktop-core-reviewers ,webidl,joschmidt,perftest-reviewers,sparky,smaug,mossop
Bug 2033191 made sure we only call ownerGlobal on nodes.

As per the discussion in dev-platform, the front-end ~always wants
.documentGlobal. This removes ownerGlobal from the bindings. Following
patch will rename internal GetOwnerGlobal in gecko to GetRelevantGlobal
as per the HTML spec terminology.

Differential Revision: https://phabricator.services.mozilla.com/D297183
2026-05-01 11:58:10 +00:00
agoloman c814da612d Revert "Bug 2033243 - Other miscellaneous ownerGlobal-related naming removal. r=dom-core,smaug" for causing multiple failures.
This reverts commit c7246654bc.

Revert "Bug 2033243 - BindToOwner -> BindToGlobal. r=dom-core,smaug"

This reverts commit 8873ddf33c.

Revert "Bug 2033243 - Rename GetOwnerGlobal to GetRelevantGlobal. r=dom-core,media-playback-reviewers,credential-management-reviewers,webrtc-reviewers,dom-storage-reviewers,firefox-style-system-reviewers,dimi,janv,dshin,aosmond,smaug"

This reverts commit 8bf999e03c.

Revert "Bug 2033243 - Replace ownerGlobal with documentGlobal, and stop exposing ownerGlobal to JS. r=firefox-desktop-core-reviewers ,webidl,joschmidt,perftest-reviewers,sparky,smaug,mossop"

This reverts commit 7dea1af2e0.
2026-04-30 20:13:14 +00:00
Emilio Cobos Álvarez 7dea1af2e0 Bug 2033243 - Replace ownerGlobal with documentGlobal, and stop exposing ownerGlobal to JS. r=firefox-desktop-core-reviewers ,webidl,joschmidt,perftest-reviewers,sparky,smaug,mossop
Bug 2033191 made sure we only call ownerGlobal on nodes.

As per the discussion in dev-platform, the front-end ~always wants
.documentGlobal. This removes ownerGlobal from the bindings. Following
patch will rename internal GetOwnerGlobal in gecko to GetRelevantGlobal
as per the HTML spec terminology.

Differential Revision: https://phabricator.services.mozilla.com/D297183
2026-04-30 17:47:07 +00:00
Sylvestre Ledru 62b1ca8d05 Bug 2024589 - adjust the code: searchfox.org/mozilla-central is now redirecting to searchfox.org/firefox-main/ r=asuth,perftest-reviewers,necko-reviewers,jgraham,webcompat-reviewers,mozperftest-reviewers,geckoview-reviewers,extension-reviewers,credential-management-reviewers,devtools-reviewers,taskgraph-reviewers,releng-reviewers,desktop-theme-reviewers,win-reviewers,translations-reviewers,omc-reviewers,firefox-desktop-core-reviewers ,home-newtab-reviewers,core-sessionstore-reviewers,browser-installer-reviewers,profiles-reviewers,dom-worker-reviewers,geckodriver-reviewers,ai-platform-reviewers,Sasha,niklas,manuel,janerik,bhearsum,valentin,twisniewski,nchevobbe,emcminn,webrtc-reviewers,mjf,handyman,mconley,mossop,ahal,sparky,nrishel,robwu,ohall,dimi,hjones
Differential Revision: https://phabricator.services.mozilla.com/D288623
2026-04-30 13:28:49 +00:00
Markus Stange de98b4b039 Bug 1978145 - Reset setVerticalClipping and setDynamicToolbarMaxHeight when exiting RDM. r=devtools-reviewers,nchevobbe
Unrelated to this bug, but something I noticed while using RDM: After
exiting RDM, fixed-to-bottom toolbars would sometimes be in the wrong
spot.

Differential Revision: https://phabricator.services.mozilla.com/D295060
2026-04-20 19:16:00 +00:00
Markus Stange 56015cceeb Bug 1978145 - Add support for toolbar-on-top to RDM's dynamic toolbar mode. r=devtools-reviewers,nchevobbe
This is rather messy, because the approach of "toolbar pushes down browser"
matches the real implementation in Fenix which is also rather messy.

It works well enough to reproduce some formerly mobile-only bugs.

Having this functionality will be helpful during the work on the
"overlap model" (bug 1921331), and the result of that work should let us
simplify this RDM code again.

There's one known bug in this RDM implementation, which is that dragging the
page to scroll down can sometimes scroll the content at twice the desired speed
if the content is also moved by a growing / shrinking toolbar. The real Fenix
implementation does not have this bug. But it's not a big problem.

Differential Revision: https://phabricator.services.mozilla.com/D294785
2026-04-20 19:15:56 +00:00
Markus Stange c5429f17ed Bug 1978145 - Make the RDM dynamic toolbar snap to fully-visible or fully-hidden when the mouse is released. r=devtools-reviewers,nchevobbe
This also moves the mouse motion detection to the parent, and removes the use of the
contentScrolled message.

The problem with the contentScrolled message is that it doesn't let us know when the mouse button is released.
Rather than adding another message, I think it's simpler to just do mouse tracking in two places.
There's not much value in having the touch simulator (which runs inside the content) do the
scroll tracking.

This patch doesn't remove the code that fires the contentScrolled message.
That might be worth doing in a follow-up, but I'm inclined to leave it for now, in case we want to use
it again in the future.

Differential Revision: https://phabricator.services.mozilla.com/D294783
2026-04-20 19:15:52 +00:00
Markus Stange afed24ab1e Bug 1978145 - Increase DYNAMIC_TOOLBAR_MAX_HEIGHT to 50px, because a 50px toolbar looks more realistic. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D294782
2026-04-20 19:15:49 +00:00
Markus Stange 56abc60717 Bug 1978145 - Make .rdm-dynamic-toolbar look more like an actual toolbar. r=devtools-reviewers,nchevobbe
This gives it a "URL bar" (just a shape with rounded endcaps) and a
"tab count indicator" (just a rounded rect with a 1 in it) just so
that it feels a bit more familiar.

Differential Revision: https://phabricator.services.mozilla.com/D294781
2026-04-20 19:15:45 +00:00
Markus Stange e0c761fc08 Bug 1978145 - Use a .dynamic-toolbar-enabled class instead of .style.visibility. r=devtools-reviewers,nchevobbe
Just feels a bit cleaner and is more consistent with the .dynamic-toolbar-on-top
class which I'll be adding in a future patch.

Differential Revision: https://phabricator.services.mozilla.com/D294779
2026-04-20 19:15:42 +00:00
Markus Stange 9a9555c402 Bug 1978145 - Simplify RDM resizer positioning in the presence of zoom, by introducing a scaled wrapper element. r=devtools-reviewers,nchevobbe
This makes the dynamic toolbar have the correct size when using page zoom in RDM.

There's one user-visible change that this introduces: The size of the resizer, as well
as the size of the interactive areas of the side resize handles, now depends on the zoom.

Differential Revision: https://phabricator.services.mozilla.com/D294778
2026-04-20 19:15:38 +00:00
Markus Stange ad32300ffd Bug 1978145 - Make RDM element sizes and positions easier to reason about. r=devtools-reviewers,nchevobbe
Remove the --resizer-offset variable (which really meant "reserved space for side
resize handles") and replace the browser border with an outline, so that at zoom:1
the browser size exactly matches rdm-width x rdm-height. We use negative margins on
the side resize handles to center their interactable location on the respective
side border.

Differential Revision: https://phabricator.services.mozilla.com/D294776
2026-04-20 19:15:34 +00:00
Florian Quèze afc0e21b93 Bug 2026589 - skip mochitest-devtools-chrome standalone perma fails, r=devtools-reviewers,jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D291580
2026-04-02 14:48:19 +00:00
Sylvestre Ledru 074b376055 Bug 2023419 - Remove Emacs/Vim modelines from devtools/ r=emilio,devtools-backward-compat-reviewers,devtools-reviewers,nchevobbe
replaced by .editorconfig
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D287841
2026-03-28 10:21:10 +00:00
Benjamin Stevens 2a8a0c4e6d Bug 1705177 - Don't use fixed width for Add Device Save/Cancel buttons. r=nchevobbe,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D288521
2026-03-23 06:51:23 +00:00
Sylvestre Ledru c8be7046fc Bug 2023411 - Fix trailing whitespace in 4 files found by file-whitespace linter r=devtools-reviewers,nchevobbe DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D288087
2026-03-20 09:35:49 +00:00
Adam Vandolder 00e336ddcb Bug 1892551 - Part 1: Update tests for SHIP. r=farre,dom-core,extension-reviewers,devtools-reviewers,sessionstore-reviewers,robwu,ochameau,mconley
Differential Revision: https://phabricator.services.mozilla.com/D208060
2026-03-18 17:26:13 +00:00
Alexandru Marc 630e6cf0e8 Revert "Bug 2023419 - Remove Emacs/Vim modelines from devtools/ r=emilio,devtools-backward-compat-reviewers,devtools-reviewers,nchevobbe" for causing devtools failures
This reverts commit ed535dace9.
2026-03-17 12:46:01 +00:00
Sylvestre Ledru ed535dace9 Bug 2023419 - Remove Emacs/Vim modelines from devtools/ r=emilio,devtools-backward-compat-reviewers,devtools-reviewers,nchevobbe
replaced by .editorconfig

Differential Revision: https://phabricator.services.mozilla.com/D287841
2026-03-17 12:03:34 +00:00
Nicolas Chevobbe 2038fba089 Bug 2023039 - [devtools] Restore updated devtools-devices.json and fix browser_device_state_restore.js failures. r=jdescottes,devtools-reviewers.
Differential Revision: https://phabricator.services.mozilla.com/D287621
2026-03-14 08:40:18 +00:00
Julian Descottes 15f4602b45 Bug 1982802 - [devtools] Update documentation for updating RDM device list r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D286454
2026-03-10 11:08:42 +00:00
Dave Townsend 03f5305808 Bug 2018127: Migrate ContentTask.spawn to SpecialPowers.spawn. r=firefox-desktop-core-reviewers ,credential-management-reviewers,devtools-reviewers,sessionstore-reviewers,translations-reviewers,omc-reviewers,home-newtab-reviewers,urlbar-reviewers,dom-worker-reviewers,ai-ondevice-reviewers,mconley,jdescottes,aminomancer,sthompson,dimi,asuth
Differential Revision: https://phabricator.services.mozilla.com/D284482
2026-03-05 19:48:23 +00:00
Alexandru Marc 9d384036a0 Revert "Bug 2018127: Migrate ContentTask.spawn to SpecialPowers.spawn. r=firefox-desktop-core-reviewers ,credential-management-reviewers,devtools-reviewers,sessionstore-reviewers,translations-reviewers,omc-reviewers,home-newtab-reviewers,urlbar-reviewers,dom-worker-reviewers,ai-ondevice-reviewers,mconley,jdescottes,aminomancer,sthompson,dimi,asuth" for causing bc failures @ browser_resume_bkg_video_on_tab_hover.js
This reverts commit 3c14ee2dce.
2026-03-05 14:39:32 +00:00
Dave Townsend 3c14ee2dce Bug 2018127: Migrate ContentTask.spawn to SpecialPowers.spawn. r=firefox-desktop-core-reviewers ,credential-management-reviewers,devtools-reviewers,sessionstore-reviewers,translations-reviewers,omc-reviewers,home-newtab-reviewers,urlbar-reviewers,dom-worker-reviewers,ai-ondevice-reviewers,mconley,jdescottes,aminomancer,sthompson,dimi,asuth
Differential Revision: https://phabricator.services.mozilla.com/D284482
2026-03-04 21:12:43 +00:00
Jonathan Moss 1e4695f228 Bug 2019745 - Add Win11 25H2 (11.26200) skip annotations to TOML manifests r=webcompat-reviewers,media-playback-reviewers,credential-management-reviewers,search-reviewers,devtools-reviewers,places-reviewers,urlbar-reviewers,profiles-reviewers,dom-worker-reviewers,twisniewski,hneiva,aryx,scunnane,asuth,dimi,mossop,padenot
Differential Revision: https://phabricator.services.mozilla.com/D285126
2026-02-27 10:51:18 +00:00
Julian Descottes a21ed7664d Bug 2016837 - [devtools] Skip responsive browser_window_close.js on windows asan builds r=devtools-reviewers,nchevobbe
Seems to fix the issue https://treeherder.mozilla.org/jobs?repo=try&revision=b6e6284e641875736d7b72a036132e005f216f67

Differential Revision: https://phabricator.services.mozilla.com/D285046
2026-02-27 07:09:35 +00:00
Julian Descottes 9aec4d3d70 Bug 2017908 - [devtools] Update devtools contact email for telemetry r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D284089
2026-02-20 11:33:07 +00:00
Nicolas Chevobbe 1347b04fcc Bug 2017058 - [devtools] Make classes extend EventEmitter instead of calling EventEmitter.decorate. r=devtools-reviewers,profiler-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D283517
2026-02-17 10:45:11 +00:00
Julian Descottes 16e9c03a38 Bug 2013722 - [devtools] Disable browser screenshots feature during RDM browser mochitests r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D282990
2026-02-12 14:58:49 +00:00
Alexandre Poirot d74ab12d6b Bug 2015889 - [devtools] Use a unique rule-view-refreshed event, on the inspector. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D282771
2026-02-12 08:44:25 +00:00
Julian Descottes 3cc49bdcba Bug 2012028 - [devtools] Skip browser_touch_all_events_long_tap.js on linux r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D280977
2026-01-29 18:14:17 +00:00
Julian Descottes 9d9956d4dc Bug 1980013 - [devtools] Split browser_touch_all_events in separate test files r=devtools-reviewers,nchevobbe
This test is still failing very frequently. Most of the failures seem to be around the long_tap step, so I hope that isolating it to a dedicated file will at least make the intermittent easier to track and investigate.
Maybe the additional isolation will help.

Unable to reproduce consistently locally or on try / verify, so I can't verify my assumptions here.

Differential Revision: https://phabricator.services.mozilla.com/D279823
2026-01-22 11:08:00 +00:00
Mark Banner 73473d292f Bug 1967204 - remove superfluous eslint-env annotations from devtools. r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D279320
2026-01-21 13:57:56 +00:00
Julian Descottes 135faf532e Bug 1927821 - [devtools] Wait for activeElement to be updated in browser_typeahead_find r=devtools-reviewers,nchevobbe
Same as previous patch, not guaranteed to fix the issue.

Differential Revision: https://phabricator.services.mozilla.com/D279817
2026-01-21 11:48:17 +00:00
Julian Descottes 6353919b91 Bug 1927821 - [devtools] Wait for findBar to be updated in browser_typeahead_find r=devtools-reviewers,nchevobbe
Adding some checkpoints where we wait in the test instead of asserting immediately, but so far I am not reproducing the issue on try, so not guaranteed to fix it.

Differential Revision: https://phabricator.services.mozilla.com/D279816
2026-01-21 11:48:15 +00:00
Emilio Cobos Álvarez 9a7e08fe77 Bug 2011445 - Fix a couple mochitests that I missed. 2026-01-21 11:44:51 +00:00
Emilio Cobos Álvarez f5f7863b6a Bug 2011445 - Fix checked toggle of responsive UI menu item. r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D279739
2026-01-21 11:12:08 +00:00
Alexandre Poirot 25c8ad77e8 Bug 2007539 - [devtools] Reload pages as Firefox does in DevTools tests. r=devtools-reviewers,nchevobbe
The `gBrowser.reloadTab` method was doing a very light reload,
which could preserve iframe overriden locations.
The new method ensures we load the original HTML content back,
this seems to also have an impact on keep-alive which is not longer guaranteed.

Only supports reloading the currently selected tab, to better replicate
real user scenarios. But also to comply to `BrowserCommands.reload`,
which only supports reloading the selected tab.

Also tune the har test, now that requests are really cancelled
and we may try to fetch reponse content for such request.

Differential Revision: https://phabricator.services.mozilla.com/D277433
2026-01-20 20:44:46 +00:00
Atila Butkovits d95fe903b7 Revert "Bug 1967204 - remove superfluous eslint-env annotations from remaining places. r=frontend-codestyle-reviewers,geckoview-reviewers,whimboo,Gijs,nalexander" for causing failures at browser_webconsole_stubs_page_error.js.
This reverts commit a0fd5cb925.

Revert "Bug 1967204 - remove superfluous eslint-env annotations from devtools. r=devtools-reviewers,ochameau"

This reverts commit 437173a655.

Revert "Bug 1967204 - remove superfluous eslint-env annotations from netwerk. r=necko-reviewers,cookie-reviewers,valentin"

This reverts commit 379e12b4e7.

Revert "Bug 1967204 - remove superfluous eslint-env annotations from tools. r=frontend-codestyle-reviewers,Gijs"

This reverts commit 78ab55c903.

Revert "Bug 1967204 - remove superfluous eslint-env annotations from testing. r=frontend-codestyle-reviewers,perftest-reviewers,sparky,Gijs"

This reverts commit 24b398368a.

Revert "Bug 1967204 - remove superfluous eslint-env annotations from browser. r=frontend-codestyle-reviewers,credential-management-reviewers,omc-reviewers,home-newtab-reviewers,mkennedy,mconley,dimi,Gijs,emcminn"

This reverts commit f9d3a69d83.

Revert "Bug 1967204 - remove superfluous eslint-env annotations from toolkit. r=frontend-codestyle-reviewers,credential-management-reviewers,desktop-theme-reviewers,manuel,mkennedy,dimi,Gijs,dao"

This reverts commit 1a9053a6b4.

Revert "Bug 1967204 - remove superfluous eslint-env annotations from dom/ r=dom-core,media-playback-reviewers,smaug,aosmond"

This reverts commit f342d41a38.
2026-01-20 15:00:04 +00:00
Mark Banner 437173a655 Bug 1967204 - remove superfluous eslint-env annotations from devtools. r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D279320
2026-01-20 13:45:39 +00:00
Julian Descottes 2bbd2ad928 Bug 2008708 - [devtools] Destroy RDM before Tab is discarded r=tabbrowser-reviewers,devtools-reviewers,ochameau,nsharpley
At the moment, if RDM is opened when a browser/tab is discarded, it will remain in a buggy state, and can no longer be disabled on this tab.

Add a new custom event emitted before the tab is discarded so that RDM can cleanly close the RDM ui.

A test is added to check the new close codepath.

Differential Revision: https://phabricator.services.mozilla.com/D279126
2026-01-15 18:54:51 +00:00
Julian Descottes 7690b7b5de Bug 1980013 - [devtools] Add a log post failure in browser_touch_all_events:waitForEventFromFrame r=devtools-reviewers,nchevobbe
This string should normally only be built at failure time, so I hope it will capture the live list of events captured on the target frame, and might give some insights when the test fails.

Differential Revision: https://phabricator.services.mozilla.com/D278935
2026-01-15 06:46:35 +00:00
Mark Banner fd62657728 Bug 2004680 - Fix ESLint rule jsdoc/check-tag-names issues in devtools. r=devtools-reviewers,devtools-backward-compat-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D275754
2025-12-22 12:41:26 +00:00