Commit Graph

161 Commits

Author SHA1 Message Date
Joel Maher
3650c36fc2 Bug 1924271 - disable browser_fullscreen_tab_preview.js on linux due to almost perma fail. r=aryx
Differential Revision: https://phabricator.services.mozilla.com/D227051
2024-10-28 16:27:17 +00:00
DJ
b9710f137b Bug 1901826 - prevent tab preview from triggering fullscreen toolbar autohide. r=dao,jswinarton
Differential Revision: https://phabricator.services.mozilla.com/D218432
2024-10-11 17:23:02 +00:00
Norisz Fay
19ae72513a Backed out changeset ceb7a7e46f59 (bug 1901826) for causing bc failures on browser_fullscreen_tab_preview.js CLOSED TREE 2024-09-20 21:05:24 +03:00
DJ
0206f801b0 Bug 1901826 - prevent tab preview from triggering fullscreen toolbar autohide. r=dao,jswinarton
Differential Revision: https://phabricator.services.mozilla.com/D218432
2024-09-20 16:50:23 +00:00
Sandor Molnar
4b8abca79f Backed out changeset 0fab45288998 (bug 1901826) for causing bc perma failures @ browser_fullscreen_tab_preview.js 2024-09-19 00:18:45 +03:00
DJ
e107af3f93 Bug 1901826 - prevent tab preview from triggering fullscreen toolbar autohide. r=dao,jswinarton
Differential Revision: https://phabricator.services.mozilla.com/D218432
2024-09-18 19:46:03 +00:00
Butkovits Atila
d05d0d9a48 Backed out changeset 35f2d2698b1a (bug 1901826) for causing failures at browser_fullscreen_tab_preview.js. CLOSED TREE 2024-09-10 00:48:03 +03:00
DJ
0bd8145a0e Bug 1901826 - prevent tab preview from triggering fullscreen toolbar autohide. r=dao,jswinarton
Differential Revision: https://phabricator.services.mozilla.com/D218432
2024-09-09 14:51:43 +00:00
Sam Foster
b182621f31 Bug 1896914 - Move some of the DOMFullScreen browser test helpers into a sharable test module. r=tabbrowser-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D212974
2024-06-12 19:04:12 +00:00
Marco Bonardo
d2f59c66ad Bug 1626741 - Roll-up other panels when the Address Bar results panel opens. r=NeilDeakin,jteow
Differential Revision: https://phabricator.services.mozilla.com/D210711
2024-05-27 12:24:54 +00:00
Dave Townsend
ab57b0fdc1 Bug 1864896: Autofix unused function arguments (browser/base/content). r=Gijs,application-update-reviewers,tabbrowser-reviewers,places-reviewers,bytesized,dao
Differential Revision: https://phabricator.services.mozilla.com/D202949
2024-03-19 14:59:20 +00:00
Emilio Cobos Álvarez
5a714b595c Bug 1875100 - Propagate top level activeness automatically to top descendants. r=nika,tabbrowser-reviewers,mconley,extension-reviewers,robwu,geckoview-reviewers,owlish,kaya
For that, opt in tabbrowser and the shopping sidebar to manual
activeness management.

Differential Revision: https://phabricator.services.mozilla.com/D198942
2024-02-07 10:58:15 +00:00
Cristian Tuns
77579088f3 Backed out changeset ecd780688279 (bug 1875100) for causing mochitest failures in test_suspend_media_by_inactive_docshell.html 2024-02-07 01:25:21 -05:00
Emilio Cobos Álvarez
a6a14d3ed6 Bug 1875100 - Propagate top level activeness automatically to top descendants. r=nika,tabbrowser-reviewers,mconley,extension-reviewers,robwu,geckoview-reviewers,owlish
For that, opt in tabbrowser and the shopping sidebar to manual
activeness management.

Differential Revision: https://phabricator.services.mozilla.com/D198942
2024-02-06 21:47:37 +00:00
Erik Nordin
5bb63471e3 Bug 1875090 - Rename BrowserTestUtils.is_visible() to isVisible() r=Gijs,settings-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,devtools-reviewers,fxview-reviewers,translations-reviewers,sgalich,bytesized,sfoster
Renames all instances of the snake_case identifier to
camelCase to match more closely to idiomatic JavaScript
and to existing conventions throughout the code base.

Differential Revision: https://phabricator.services.mozilla.com/D198826
2024-01-19 02:15:33 +00:00
Paul Zuehlcke
f92640530e Bug 1873960 - Test. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D192371
2024-01-15 13:10:15 +00:00
Cristian Tuns
7a6c2388e6 Backed out changeset 056eee9ef326 (bug 1873960) for causing multiple failures(lints and mochitest) CLOSED TREE 2024-01-10 13:00:06 -05:00
Paul Zuehlcke
587338c841 Bug 1873960 - Test. r=Gijs
Depends on D192370

Differential Revision: https://phabricator.services.mozilla.com/D192371
2024-01-10 17:30:10 +00:00
Dão Gottwald
a043334892 Bug 1866284 - Add tests for clearing the status panel when entering DOM fullscreen (bug 1850993) and for not showing network status in DOM fullscreen (bug 1853896). r=mak
Differential Revision: https://phabricator.services.mozilla.com/D196436
2023-12-18 12:35:33 +00:00
Dão Gottwald
4337c357a7 Bug 1794449 - Remove pointless check for close buttons while in DOM fullscreen, and re-enable browser_bug1620341.js. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D192666
2023-11-03 13:46:23 +00:00
Cosmin Sabou
b26bc40b11 Bug 1794449 - Disable browser_bug1620341.js on linux || win !debug for frequent failures. r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D192133
2023-11-02 19:55:21 +00:00
Edgar Chen
a94bc61d21 Bug 1861827 - Disable browser_fullscreen_window_open.js test on mac opt; r=CosminS DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D192546
2023-11-02 18:08:07 +00:00
Tom Marble
ad50861ef9 Bug 1853243 - convert .ini manifests to .toml: batch 5 browser/**/browser.ini r=jmaher,mossop,webcompat-reviewers,twisniewski,search-reviewers,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D188427
2023-09-21 22:47:07 +00:00
Marco Bonardo
6874dffc71 Bug 1852963 - Rename BrowserTestUtils.loadURIString() to .startLoadingURIString(). r=dao
This should make a bit clearer that it is only starting the load, not waiting
for its completion.

Differential Revision: https://phabricator.services.mozilla.com/D188213
2023-09-15 09:16:34 +00:00
Sandor Molnar
5d8dd001ad Backed out 3 changesets (bug 1852963) for causing remote failures on remote/shared/messagehandler/test/browser/browser_session_data.js CLOSED TREE
Backed out changeset 98de7bc404c3 (bug 1852963)
Backed out changeset edf1527c9a99 (bug 1852963)
Backed out changeset 34357750f69c (bug 1852963)
2023-09-14 20:29:06 +03:00
Marco Bonardo
c5fb3dbb49 Bug 1852963 - Rename BrowserTestUtils.loadURIString() to .startLoadingURIString(). r=dao
This should make a bit clearer that it is only starting the load, not waiting
for its completion.

Differential Revision: https://phabricator.services.mozilla.com/D188213
2023-09-14 16:33:13 +00:00
Edgar Chen
42ff57bc49 Bug 1847901 - Should not show fullscreen warning if the user has disabled it explicitly; r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D185977
2023-08-14 15:52:24 +00:00
Cosmin Sabou
06c2e8e972 Bug 1848423 - Temporarily disable browser_fullscreen_warning.js on macOS until a fix is in place. a=test-only 2023-08-12 19:05:09 +03:00
Edgar Chen
51ac31ae8a Bug 1833363 - Add test for fullscreen notification to reappear when mouse is moved to the top of the screen; r=Gijs
Depends on D178166

Differential Revision: https://phabricator.services.mozilla.com/D178174
2023-08-10 03:17:17 +00:00
Edgar Chen
7efb26f8ae Bug 1833363 - Add test for reshowing the fullscreen initial notification; r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D178166
2023-08-10 03:17:17 +00:00
Brad Werth
3b8f8c8922 Bug 1802193 Part 2: Make a test of focus exiting fullscreen work with asynchronous fullscreen transitions. r=edgar
This adds an additional action that is triggered when the fullscreen
transition event is received. That interim action is used to re-focus the
original tab. Without this change, an asynchronous fullscreen transition
will silently swallow the MozAfterPaint event that is necessary to detect
the end of fullscreen.

Before this change, with asynchronous transitions, here's the flow:
1) The test opens Tab 1 which opens Tab 2.
2) Tab 1 enters fullscreen. This transition takes awhile but signals
success early. This is intentional because we want web content to be able
to be fully layed out when the fullscreen transition is complete.
3) Thinking that it has reached fullscreen, the test focuses Tab 2, which
causes a fullscreen exit transition to be queued up but not yet run.
Then Tab 1 is unfocused and a MozAfterPaint message is sent, but nobody is
listening for it so it has no effect. If the fullscreen transition was
synchronous, the actions of Step 6 (below) would happen before the change
in focus and there would be an event listener ready for the MozAfterPaint
event.
4) The test waits for the DOMFullscreenChild to send the
DOMFullscreen:Painted message, which it will do when it receives a
MozAfterPaint event.
5) Enter fullscreen transition completes, exit fullscreen transition
starts.
6) The MozDOMFullscreen:Exited event is sent to the DOMFullscreenChild,
which starts listening for the MozAfterPaint event. This event has
already been sent.
7) Test times out.

This change adds an additional action to take place between steps 6 and 7.
That additional action refocuses Tab 1. This makes it send another
MozAfterPaint event which the DOMFullscreenChild is ready to receive.

Differential Revision: https://phabricator.services.mozilla.com/D180884
2023-06-16 16:14:03 +00:00
Edgar Chen
f3495ba6b4 Bug 1821884 - Ensure consistent state for fullscreen/pointerlock warnings; r=Gijs
Fullscreen/PointerLock warnings are initialized with hidden="true", but
change to hidden="" after being shown and hidden again. I think this
started happening when we began using HTML elements instead of XUL as
they handle hidden attribute differently.

Differential Revision: https://phabricator.services.mozilla.com/D177790
2023-06-08 08:56:51 +00:00
Natalia Csoregi
64cf294e7c Backed out changeset e44f4d43b823 (bug 1833091) for causing permafailures on browser_topsites_annotation.js. CLOSED TREE 2023-06-08 03:17:53 +03:00
Iulian Moraru
f9297bcaef Backed out 2 changesets (bug 1821884) for causing bc failures on browser_pointerlock_warning.js. CLOSED TREE
Backed out changeset b843039f6806 (bug 1821884)
Backed out changeset 47ac6b453494 (bug 1821884)
2023-06-08 01:28:45 +03:00
Edgar Chen
3a3fdb92ca Bug 1821884 - Ensure consistent state for fullscreen/pointerlock warnings; r=Gijs
Fullscreen/PointerLock warnings are initialized with hidden="true", but
change to hidden="" after being shown and hidden again. I think this
started happening when we began using HTML elements instead of XUL as
they handle hidden attribute differently.

Differential Revision: https://phabricator.services.mozilla.com/D177790
2023-06-07 20:28:09 +00:00
Marc Seibert
288359ceb2 Bug 1833091 - Replacing all get refs of UrlbarInput 'inputField.value' with '.value'.r=dao
Differential Revision: https://phabricator.services.mozilla.com/D180085
2023-06-07 14:59:13 +00:00
Narcis Beleuzu
ec23d338d8 Backed out changeset 862bd1ab18fd (bug 1833091) for bc failure on browser_ext_webNavigation_urlbar_transitions.js . CLOSED TREE 2023-06-06 19:05:07 +03:00
Marc Seibert
7d202de3f8 Bug 1833091 - Replacing all get refs of UrlbarInput 'inputField.value' with '.value'.r=dao
Differential Revision: https://phabricator.services.mozilla.com/D180085
2023-06-06 13:46:55 +00:00
Masayuki Nakano
1e832a8e55 Bug 1835570 - Map fullscreen menu items and toolbar buttons to the shortcut key correctly r=Gijs
Just forgetting to map them to new `key_enterFullScreen`.  Note that both
`key_enterFullScreen` and `key_exitFullScreen` have same shortcut keys.
Therefore, mapping only to `key_enterFullScreen` must be fine for the
toggle UIs.

This patch does not contain the tests for checking the tooltip label on
the toolbar buttons because the shortcut key information does not appear
in the DOM tree.

Differential Revision: https://phabricator.services.mozilla.com/D179357
2023-05-30 10:01:03 +00:00
Masayuki Nakano
efc5cf1f81 Bug 1821886 - Reserve shortcut keys exiting from the fullscreen mode r=Gijs,edgar,smaug
Chrome for Windows does not dispatch `keydown` event for shortcut keys existing
from the fullscreen mode.  Therefore, we can follow it.

For reserving only shortcut keys in fullscreen mode, we need to duplicate XUL
`<key>` elements which define the shortcut keys (only one in Windows/Linux,
but 3 in macOS).  Then, their `disabled` attributes should be managed when
toggling the fullscreen mode.

Finally, we need to make `XULKeySetGlobalKeyListener` check the `disabled`
attribute **of** `<key>` elements because it's check in `DispatchXULKeyCommand`
in the final step:
https://searchfox.org/mozilla-central/rev/11a4d97a7b5cdfa133f4bda4525649f651703018/dom/events/KeyEventHandler.cpp#315-316

and it stops handling everything with doing nothing. I'm not sure whether this
was intentionally implemented or just a inefficient code which we didn't take
care the performance. However, I think that ignoring the disabled `<key>`
elements is reasonable behavior from `<key>` element users point of view.

(I found only one `<key>` which is disabled by default:
https://searchfox.org/mozilla-central/rev/11a4d97a7b5cdfa133f4bda4525649f651703018/browser/base/content/browser-sets.inc#225-233)

Differential Revision: https://phabricator.services.mozilla.com/D178262
2023-05-24 00:50:17 +00:00
Mark Banner
91fde42f7b Bug 1826062 - Automatic fixes for Prettier 2.0.5 upgrade. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,owlish
Differential Revision: https://phabricator.services.mozilla.com/D177025
2023-05-20 12:26:49 +00:00
Sandor Molnar
c90a9a6f17 Backed out 2 changesets (bug 1802193) for causing mochitest failures in dom/tests/mochitest/pointerlock/test_pointerlock-api.html CLOSED TREE
Backed out changeset e5d64c41cf0b (bug 1802193)
Backed out changeset 8b023b0c3f03 (bug 1802193)
2023-05-12 04:17:50 +03:00
Brad Werth
6f896a6d4d Bug 1802193 Part 2: Make a fullscreen test return window to normal at end of test. r=mac-reviewers,mstange
Differential Revision: https://phabricator.services.mozilla.com/D176572
2023-05-11 18:30:08 +00:00
Edgar Chen
fb3de0f2a0 Bug 1819756 - Add tests for bug 1814597; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D171556
2023-04-11 14:38:34 +00:00
Edgar Chen
228ce744a3 Bug 1820801 - Add fullscreen test for opening a new browser window via ctrl+n; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D171901
2023-03-07 23:29:28 +00:00
Brad Werth
ced50aecd5 Bug 1820641: Make a test that calls window.restore handle zoomed windows. r=mstange
This test expects that a single call to window.restore() will bring the
window to the "normal" state. This is unfortunately not guaranteed since a
window that is zoomed then minimized will restore to the zoomed state.
This could cause the test to fail if window is zoomed at the start of the
test, because it will return to that zoomed state mid-test.

This change defines a general function to ensure that the window is in the
normal state before proceeding, then calls that at the beginning of the
test and in the middle of the test to ensure we are exercising the
transitions we intended to exercise.

Differential Revision: https://phabricator.services.mozilla.com/D171793
2023-03-06 23:36:06 +00:00
Brad Werth
119ee0f99f Bug 1631735 Part 2: Add a fullscreen test that checks event order, and a test of fs->minimize->fs. r=mstange,emilio
The transition from fullscreen to minimize and back is not directly
allowed in macOS, though our test harness can be forced to request it. The
modified test forces this transition explicitly, so we can eliminate it as
an accidental occurrence with other tests.

The transition from minimize to fullscreen fails on Linux and Windows, so
this change marks the entire test as failing on those platforms. New Bugs
have been opened on this issue and those are noted in the fail-if.

Depends on D166450

Differential Revision: https://phabricator.services.mozilla.com/D164248
2023-03-06 19:38:11 +00:00
Sandor Molnar
ebc02547fe Backed out 3 changesets (bug 1631735) for causing assertion failures in xpfe/appshell/AppWindow.cpp
Backed out changeset 1c7dffec620f (bug 1631735)
Backed out changeset 4a7049e0f50d (bug 1631735)
Backed out changeset 0ae84866d35d (bug 1631735)
2023-03-03 04:27:11 +02:00
Brad Werth
7fe6d51d98 Bug 1631735 Part 2: Add a fullscreen test that checks event order, and a test of fs->minimize->fs. r=mstange,emilio
The transition from fullscreen to minimize and back is not directly
allowed in macOS, though our test harness can be forced to request it. The
modified test forces this transition explicitly, so we can eliminate it as
an accidental occurrence with other tests.

The transition from minimize to fullscreen fails on Linux and Windows, so
this change marks the entire test as failing on those platforms. New Bugs
have been opened on this issue and those are noted in the fail-if.

Depends on D166450

Differential Revision: https://phabricator.services.mozilla.com/D164248
2023-03-02 22:26:56 +00:00
Bilal
96a83e012a Bug 1811336 - Converted FullScreenFrame, PerfTestHelpers, StartupContentSubframe, and BlocklistTestProxy to ESM. r=kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D168161
2023-02-07 19:19:30 +00:00