Commit graph

143 commits

Author SHA1 Message Date
Dão Gottwald
2841798b3a 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
d23aad45ef 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
639be938b9 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
d72b9c1a5b 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
d596ebea8e 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
70fdad6676 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
950a3c620d 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
61f8ecc425 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
6cd338149e 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
ec0ce84366 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
16cc649a19 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
522533a595 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
d04111bac7 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
702158715c 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
bf3b3a17de 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
311b4db52d 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
74353bd59a 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
b538b3cd6f 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
ef090af3b4 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
88089567ed 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
0a5fcdfa8f 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
6b54cbe573 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
8219a5c503 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
625c993147 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
4bce59416e 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
f679237a74 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
90e3ec03f1 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
dd4e98580f 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
770336f194 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
5df475dc34 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
17087ede43 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
d019b30646 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
Gijs Kruitbosch
efef52fc92 Bug 1795255 - autofix duplicate imports in tests under browser/, r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D166179
2023-01-31 11:48:41 +00:00
lyavor
6666b03b50 Bug 1811278 - Add disable next line for all browser/base PART 1 r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D167279
2023-01-25 14:27:43 +00:00
Norisz Fay
f01cbc412a Backed out 5 changesets (bug 1811278) for causing lint failures on browser_bug435325.js CLOSED TREE
Backed out changeset 715821104ffa (bug 1811278)
Backed out changeset 6f116715687d (bug 1811278)
Backed out changeset 16e69d940e3f (bug 1811278)
Backed out changeset 9dc0451ca213 (bug 1811278)
Backed out changeset 9f60a414e711 (bug 1811278)
2023-01-25 12:46:52 +02:00
lyavor
8d9ed8359f Bug 1811278 - Add disable next line for all browser/base PART 1 r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D167279
2023-01-25 10:15:37 +00:00
Gijs Kruitbosch
9946c4fcbb Bug 1810995 - update BrowserTestUtils.loadURI consumers to use loadURIString (automated) - browser - r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D167153
2023-01-19 20:16:42 +00:00
Ryan VanderMeulen
6216e2bed8 Bug 1803701 - Clean up the fullscreen browser-chrome test manifest and re-enable some now-passing tests. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D163661
2022-12-02 14:05:17 +00:00
Edgar Chen
bf9b396e44 Bug 1795491 - Disable browser_fullscreen_window_open.js test on mac opt; r=intermittent-reviewers,MasterWayZ
Differential Revision: https://phabricator.services.mozilla.com/D159694
2022-12-01 03:39:28 +00:00
Mark Banner
c1837954be Bug 1799314 - Convert consumers of testing modules to import ES modules direct (browser/). r=Gijs,settings-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D161914
2022-11-17 12:00:30 +00:00
Neil Deakin
260bbc1db2 Bug 1219775 , focus the url bar when opening a new tab while in fullscreen mode, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D161517
2022-11-15 17:15:51 +00:00
Mark Banner
9189ff3f6f Bug 1798018 - Convert consumers of toolkit/modules/tests to import ES modules direct. r=Gijs,webdriver-reviewers,extension-reviewers,settings-reviewers,credential-management-reviewers,sgalich
Differential Revision: https://phabricator.services.mozilla.com/D160664
2022-11-01 13:26:38 +00:00
Norisz Fay
bfa4dfd40b Backed out 2 changesets (bug 1795984) for causing bc failures on browser_fullscreen-window-open.js CLOSED TREE
Backed out changeset 4f1f5ebc134b (bug 1795984)
Backed out changeset f742568d925b (bug 1795984)
2022-10-19 23:46:02 +03:00
Edgar Chen
f4a1a2d3ac Bug 1795984 - Put browser fullscreen tests under fullscreen folder; r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D159633
2022-10-19 14:40:46 +00:00
Cosmin Sabou
9028e81fc2 Bug 1764318 - Fix eslint failure. r=lint-fix CLOSED TREE 2022-10-14 00:04:47 +03:00
Edgar Chen
425420c6d5 Bug 1764318 - Add more test for fullscreen; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D143489
2022-10-13 20:28:59 +00:00
Mark Banner
7428be4a86 Bug 1782008 - Remove now unnecessary .eslintrc.js files. r=webcompat-reviewers,extension-reviewers,media-playback-reviewers,pip-reviewers,denschub,rpl,alwu,mossop
Differential Revision: https://phabricator.services.mozilla.com/D152736
2022-08-03 11:16:20 +00:00
Mark Banner
8a275d4d92 Bug 1780017 - Migrate urlbar consumers to use ESM imports directly. r=adw,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D152057
2022-07-26 15:11:30 +00:00
smolnar
dc4f2d6a41 Backed out 5 changesets (bug 1780017, bug 1780347) for causing bc failures in browser/base/content/test/performance/browser_preferences_usage.js CLOSED TREE
Backed out changeset 86c3a9142535 (bug 1780347)
Backed out changeset 35abe35417a0 (bug 1780017)
Backed out changeset f448f044f028 (bug 1780017)
Backed out changeset a400cbe83084 (bug 1780017)
Backed out changeset 0a23c9e27f01 (bug 1780017)
2022-07-25 21:00:07 +03:00
Mark Banner
539b5dac0d Bug 1780017 - Migrate urlbar consumers to use ESM imports directly. r=adw,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D152057
2022-07-25 12:46:48 +00:00