Commit Graph
391 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
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
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 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
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
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 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
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
Tom Marble f3d29c5861 Bug 2003869 - update test manifests to use idiomatic conditions r=ahal,devtools-reviewers,toolkit-telemetry-reviewers,Sasha
Signed-off-by: Tom Marble <[email protected]>

Differential Revision: https://phabricator.services.mozilla.com/D275216
2025-12-05 19:12:46 +00:00
Alexandra Borovova 975653d570 Bug 1706066 - [devtools] Extend mochitests to checks for maxTouchPoints in a iframe. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D273974
2025-11-26 08:20:00 +00:00
Tom Marble 5ce09d7446 Bug 1995583 - test manifest cleanup for idiomatic usage r=jmaher,necko-reviewers,webcompat-reviewers,geckoview-reviewers,application-update-reviewers,media-playback-reviewers,sessionstore-reviewers,tabbrowser-reviewers,translations-reviewers,omc-reviewers,browser-installer-reviewers,twisniewski,masayuki,dom-core,smaug,nalexander,emcminn,sthompson,alwu,ai-ondevice-reviewers,valentin
For TOML manifests:

1. Change processor -> arch
2. Use arch instead of bits bits == '64' =>
   aarch64 (default on mac 15.30) or x86_64 bits == '32' => x86
3. Replace android_version with corresponding os_version
4. Remove conditions with linux os_version=="18.04"
   (unless they contain verify or verify-standalone)
5. Remove conditions with mac os_version=='11.20',
   (unless they contain verify or verify-standalone)
6. Remove conditions with win os_version=='11.2009' or win11_2009,
   (unless they contain verify or verify-standalone)
7. Linux conditions should have os_version, arch and display
   (simple "os == 'linux'" will get expanded to these two)
   "os == 'linux' && os_version == '22.04' && arch == 'x86_64' && display == 'wayland'"
   "os == 'linux' && os_version == '24.04' && arch == 'x86_64' && display == 'x11'"
8. Mac conditions should have os_version and arch
   (simple "os == 'mac'" will get expanded to these three)
   "os == 'mac' && os_version == '10.15' && arch == 'x86_64'",
   "os == 'mac' && os_version == '14.70' && arch == 'x86_64'",
   "os == 'mac' && os_version == '15.30' && arch == 'aarch64'",
9. Replace apple_catalina with
   os == 'mac' && os_version == '10.15' && arch == 'x86_64'
10. Replace apple_silicon with
   os == 'mac' && os_version = '15.30' && arch == 'aarch64'
11. Replace win10_2009 with
   os == 'win' && os_version = '10.2009' && arch == 'x86_64'
12. Replace "!debug" with three conditions "asan", "opt", or "tsan"
13. Replace literal boolean comparison with variables
    (e.g. "debug == false" => "!debug)

Resolves 2000285

Signed-off-by: Tom Marble <[email protected]>

Differential Revision: https://phabricator.services.mozilla.com/D272815
2025-11-22 00:30:39 +00:00
Mark Banner b38cd3110b Bug 1999554 - Automatically fix ESLint rule jsdoc/check-types for devtools/. r=devtools-reviewers,devtools-backward-compat-reviewers,profiler-reviewers,canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D272173
2025-11-21 16:16:08 +00:00
Julian Descottes 4775083d65 Bug 1998335 - [devtools] Remove and migrate linux 1804 annotations from DevTools browser.toml manifests r=profiler-reviewers,devtools-reviewers,florian,nchevobbe
In most cases, the manifest contained already the same annotation for 2404, so I simply removed the 1804 one, since we no longer run tests on this platform.
In a few cases, the 1804 annotation did not have a 2404 match. In that case I just checked if we had recorded intermittent failures. If yes, I migrated the annotation, if not, I just removed it.

Differential Revision: https://phabricator.services.mozilla.com/D271355
2025-11-05 08:25:24 +00:00
Serban Stanca c8a58ee142 Revert "Bug 1979518 - [devtools] Always specify the size of the screenshot to be taken. r=ochameau,devtools-reviewers" as requested by @ochameau.
This reverts commit a8fb4f85a8.
2025-10-28 17:02:31 +00:00
Serban Stanca ea0343adb0 Revert "Bug 1949036 - [devtools] Fix browser_screenshot_button.js intermittent failures. r=devtools-reviewers,jdescottes" for causing conflicts trying to revert Bug 1979518.
This reverts commit e37b703b01.
2025-10-28 17:02:29 +00:00
Nicolas Chevobbe 7bfaf2751e Bug 1994970 - [devtools] Migrate content.document.defaultView to content. r=devtools-reviewers,bomsy.
`content.document.defaultView` returns the same thing as `content`, so let's
use the shortest version.

Differential Revision: https://phabricator.services.mozilla.com/D269023
2025-10-17 16:56:34 +00:00
Julian Descottes 0923d75a63 Bug 1872980 - [devtools] Disable focusableRule in browser_tab_not_selected.js r=nchevobbe,devtools-reviewers
Wrap the call to selectDevicePixelRatio with AccessibilityUtils.setEnv/resetEnv to avoid
intermittent a11y failures

Differential Revision: https://phabricator.services.mozilla.com/D268406
2025-10-13 15:48:01 +00:00
Holger Benl e37b703b01 Bug 1949036 - [devtools] Fix browser_screenshot_button.js intermittent failures. r=devtools-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D265654
2025-09-24 08:35:53 +00:00
Florian Quèze adb44fa5a4 Bug 1989356 - Add run-if = ["os != 'android'"] conditions in desktop only xpcshell test manifests, r=jmaher,application-update-reviewers,search-reviewers,devtools-reviewers,sync-reviewers,places-reviewers,profiler-reviewers,win-reviewers,omc-reviewers,migration-reviewers,urlbar-reviewers,browser-installer-reviewers,profiles-reviewers,layout-reviewers,mossop,mstange,dholbert,gstoll,bytesized,scunnane,nchevobbe,aminomancer.
Differential Revision: https://phabricator.services.mozilla.com/D265322
2025-09-19 20:56:51 +00:00
Hiroyuki Ikezoe 29dcbff43e Bug 1598487 - Use documentElement.client{Width,Height} in testViewportZoomWidthAndHeight. r=botond,bradwerth,devtools-reviewers,ochameau
And specify `<!DOCTYPE html>` in relevant test cases to use standards mode.

The proper window.inner{Width,Height} values depend on the minimum-scale
value, rather documentElement.client{Width,Height} are independent from
the zoom value.

Note that documentElement.clientHeight on quirks mode is diffrent from
the one on standards mode. E.g. if the document is zoomed by 0.5x, then
documentElement.clientHeight on quirks mode is twice the value of the
one on standards mode. I've confirmed the behavior is same in Chrome's
RDM.

Differential Revision: https://phabricator.services.mozilla.com/D264163
2025-09-17 04:04:43 +00:00
Cristina Horotan b3d0851558 Revert "Bug 1598487 - Make window.inner{Height,Width} return the proper value on for documents where the minimum-scale is applied. r=botond,layout-reviewers,emilio" for causing mochitest failures on test_group_double_tap_zoom-2.html
This reverts commit 8ebbc62f8c.

Revert "Bug 1598487 - Add a "minimum-scale=1" meta viewport into get_actions_origin_page(). r=webdriver-reviewers,jdescottes"

This reverts commit 4ef0efd4c3.

Revert "Bug 1598487 - Add a "minimum-scale=1" meta viewport to both of the reference and the test case for test_clip_box_partially_visible. r=webdriver-reviewers,jdescottes"

This reverts commit 426333bc1b.

Revert "Bug 1598487 - Specify a meta viewport tag to avoid scaling down the content. r=layout-reviewers,dshin"

This reverts commit 86c53ef806.

Revert "Bug 1598487 - Use documentElement.client{Width,Height} in PanZoomControllerTest.kt r=botond,geckoview-reviewers"

This reverts commit ca7531474e.

Revert "Bug 1598487 - Use documentElement.client{Width,Height} in testViewportZoomWidthAndHeight. r=botond,bradwerth,devtools-reviewers,ochameau"

This reverts commit b86d915a07.

Revert "Bug 1598487 - Add `scrollbar-width:none` to avoid scrollbar area affecting window.innerWidth. r=emilio"

This reverts commit 539615e702.

Revert "Bug 1598487 - Use document.documentElement.clientHeight rather than window.innerHeight in helper_doubletap_zoom_hscrollable2.html. r=tnikkel"

This reverts commit e69ee818f9.
2025-09-16 06:46:51 +00:00
Hiroyuki Ikezoe b86d915a07 Bug 1598487 - Use documentElement.client{Width,Height} in testViewportZoomWidthAndHeight. r=botond,bradwerth,devtools-reviewers,ochameau
And specify `<!DOCTYPE html>` in relevant test cases to use standards mode.

The proper window.inner{Width,Height} values depend on the minimum-scale
value, rather documentElement.client{Width,Height} are independent from
the zoom value.

Note that documentElement.clientHeight on quirks mode is diffrent from
the one on standards mode. E.g. if the document is zoomed by 0.5x, then
documentElement.clientHeight on quirks mode is twice the value of the
one on standards mode. I've confirmed the behavior is same in Chrome's
RDM.

Differential Revision: https://phabricator.services.mozilla.com/D264163
2025-09-16 02:14:43 +00:00
Holger Benl a8fb4f85a8 Bug 1979518 - [devtools] Always specify the size of the screenshot to be taken. r=ochameau,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D264210
2025-09-15 16:05:49 +00:00
Alexandra Borovova 1df91fa83c Bug 1974167 - [devtools] Use "setOrientationOverride" method instead "setRDMPaneOrientation" for screen orientation emulation. r=devtools-reviewers,jdescottes,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D263098
2025-09-05 12:01:51 +00:00
Magnus Melin ae3f6ada11 Bug 1787457 - Use Services.wm.getMostRecentBrowserWindow() to get most recent browser window in devtools (to work better with Android and Thunderbird). r=devtools-reviewers,profiler-reviewers,ochameau,canaltinova
For Firefox, this will get you exactly the same thing as "navigator:browser".
https://searchfox.org/firefox-main/rev/e02959386f6f89c1476edba10b3902f4e4f3ed4c/xpfe/appshell/nsWindowMediator.cpp#254

Differential Revision: https://phabricator.services.mozilla.com/D263243
2025-09-01 09:31:32 +00:00
Joel Maher 173c4892be Bug 1984523 - Migrate TSAN from Ubuntu 18.04 to 24.04. r=aryx,media-playback-reviewers,webrtc-reviewers,devtools-reviewers,webcompat-reviewers,urlbar-reviewers,twisniewski,karlt,pehrsons,home-newtab-reviewers,nchevobbe,nbarrett
Differential Revision: https://phabricator.services.mozilla.com/D262052
2025-08-22 15:16:30 +00:00
Nicolas Chevobbe 3180589ff4 Bug 1918874 - [devtools] Add a test to check that the JSONViewer isn't used when the JSON is in a multipart response. r=devtools-reviewers,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D260968
2025-08-20 14:39:52 +00:00