Commit Graph

139 Commits

Author SHA1 Message Date
Florian Quèze
9bc61f69d8 Bug 1950710 - Migrate histograms to use Glean APIs for FULLSCREEN_CHANGE_MS, r=chutten,pip-reviewers,mconley.
Differential Revision: https://phabricator.services.mozilla.com/D242233
2025-03-26 15:25:39 +00:00
Emilio Cobos Álvarez
d72d48fdeb Bug 1940698 - Use popover for fullscreen / pointer-lock warning. r=dao,desktop-theme-reviewers,tabbrowser-reviewers
So that it shows on top of the fullscreen <browser> element. Note that
the fullscreen toggler and co doesn't need the same treatment, luckily,
because we only use it for the "firefox fullscreen" mode.

Differential Revision: https://phabricator.services.mozilla.com/D233643
2025-01-10 10:45:27 +00:00
Emilio Cobos Álvarez
a127d4a2a3 Bug 1930499 - Only transform urlbar when broken out. r=urlbar-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D228599
2024-11-12 10:48:04 +00:00
Emilio Cobos Álvarez
a1ae05d74e Bug 1928255 - Fix bug 1927111 in a better way. r=urlbar-reviewers,mak
Keep using the static position as we did before. As long as we don't
have anchor positioning this seems better than whack-a-mole-ing every
possible urlbar position change.

In order to make the fullscreen animation work, make our position
computation ignore transforms, which is how anchor positioning would
behave anyways.

Differential Revision: https://phabricator.services.mozilla.com/D227758
2024-11-04 16:11:58 +00:00
Emilio Cobos Álvarez
6e6b254c42 Bug 1927111 - Shift urlbar during macOS fullscreen animation. r=Gijs,sfoster,urlbar-reviewers,mak
See comment for sadness.

Differential Revision: https://phabricator.services.mozilla.com/D226933
2024-10-30 13:09:46 +00:00
Butkovits Atila
f2d9be08fd Backed out 2 changesets (bug 1927111) for causing failures at browser_add_search_engine.js. CLOSED TREE
Backed out changeset b12f12db6d50 (bug 1927111)
Backed out changeset 8afe68ed6509 (bug 1927111)
2024-10-30 02:27:06 +02:00
Emilio Cobos Álvarez
826ab1afd3 Bug 1927111 - Shift urlbar during macOS fullscreen animation. r=Gijs,sfoster,urlbar-reviewers,mak
See comment for sadness.

Differential Revision: https://phabricator.services.mozilla.com/D226933
2024-10-29 22:03:22 +00:00
Simon Friedberger
a100eba108 Bug 1926815 Remove inline event handler from fullscreen warning notification r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D226811
2024-10-28 10:15:35 +00:00
Gijs Kruitbosch
5f661fcd9e Bug 1926120 - go back to also moving the toolbox in macOS fullscreen menubar animation, and add a border/shadow, r=desktop-theme-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D226657
2024-10-24 12:30:50 +00:00
Nikki Sharpley
e12505d0a8 Bug 1921819 - Prevent navigator toolbox from translating on MacOs fullscreen r=sidebar-reviewers,desktop-theme-reviewers,Gijs,dao
As per discussion with UX and @Gijs: https://mozilla.slack.com/archives/C07H21R792A/p1728502631161479

Differential Revision: https://phabricator.services.mozilla.com/D225719
2024-10-17 16:36:54 +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
Emilio Cobos Álvarez
77c40caac6 Bug 1910698 - Remove nsIScriptError.sourceLine. r=smaug,devtools-reviewers,webdriver-reviewers,necko-reviewers,nchevobbe,kershaw,jdescottes,credential-management-reviewers,dimi
Afaict the source lines are not exposed anywhere in the UI.

Differential Revision: https://phabricator.services.mozilla.com/D218115
2024-08-01 17:12:48 +00:00
Emilio Cobos Álvarez
a1485f4c9f Bug 1890651 - Remove unused attributes from our fullscreen code. r=dao,desktop-theme-reviewers
As far as I can tell nothing really looks at inFullscreen in other
elements that are not the root, not in JS nor in CSS, so this code seems
like it can go?

Differential Revision: https://phabricator.services.mozilla.com/D207123
2024-04-10 16:45:38 +00:00
Paul Zuehlcke
bf56d79e48 Bug 1876675, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D202932
2024-02-28 17:23:18 +00:00
Makoto Kato
20e52d1dda Bug 1832627 - Popup should be closed. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D197067
2024-01-17 08:48:29 +00:00
Paul Zuehlcke
2d4274179b Bug 1865914 - Part 3, r=Gijs,edgar
Differential Revision: https://phabricator.services.mozilla.com/D194886
2023-12-01 21:22:41 +00:00
Dão Gottwald
5e8489f029 Bug 1850993 - Clear status panel when entering DOM Fullscreen. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D194538
2023-11-25 04:21:34 +00:00
Brad Werth
925f30ab35 Bug 1863134: Stop hiding the nav toolbox when the menubar is animated away. r=edgar
This was done erroneously in an earlier code fix that was trying to fix
the showing and hiding of the menubar. It is not necessary to hide the
nav toolbox when the menubar is animated away. The nav toolbox will be
hidden when the user moves the cursor out of the nav toolbox area.

Differential Revision: https://phabricator.services.mozilla.com/D192972
2023-11-08 23:38:09 +00:00
Paul Zuehlcke
de631f48be Bug 1857430, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D192370
2023-11-07 10:46:42 +00:00
Emilio Cobos Álvarez
ac6913c414 Bug 1854486 - Unify how we set the toolbox background across platforms. r=dao,desktop-theme-reviewers
Turns out macOS relies on the background being set in the toolbox rather
than :root because we slide the toolbox down entirely when the menubar
shows up in full-screen.

Since this is also the set up we have for lightweight themes and Linux,
and we can change Windows to do the same now that Aero is not a thing
anymore, clean-up the code and move all the toolbox background code to a
shared place.

In the future if we want to do something like Mica / Aero on Windows
again, we could do this trivially by setting --toolbox-non-lwt-bgcolor:
transparent or so on the relevant platform's file.

I can write a simpler patch for beta if needed.

Differential Revision: https://phabricator.services.mozilla.com/D189055
2023-09-25 14:04:11 +00:00
Brad Werth
bc065992a7 Bug 1851780: Make macOS menubar appearance force appearance of nav toolbox. r=edgar
Prior to this patch, users with the pref `browser.fullscreen.autohide` set
had to hit a 1-pixel tall element to get the tab bar to appear. If they miss
this shallow element, the macOS menubar will animate down, covering the
target, and it won't be possible to make the tab bar to appear until the
menubar is animated away again.

This patch ensures that any time the macOS menubar is animated down, we also
show the tab bar.

Differential Revision: https://phabricator.services.mozilla.com/D187821
2023-09-15 17:19:43 +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
Gregory Pappas
a57c4f9405 Bug 1845311 - [Part 2] Use ChromeUtils.defineLazyGetter in more places r=arai,webcompat-reviewers,necko-reviewers,extension-reviewers,settings-reviewers,application-update-reviewers,credential-management-reviewers,devtools-reviewers,fxview-reviewers,sync-reviewers,anti-tracking-reviewers,tabbrowser-reviewers,bytesized,twisniewski,sgalich,mak,kershaw,sclements,pbz,robwu,geckoview-reviewers,amejiamarmol
Differential Revision: https://phabricator.services.mozilla.com/D184623
2023-08-01 23:01:02 +00:00
Edgar Chen
b5f3bc3534 Bug 1821884 - Reshow initial fullscreen notification; r=Gijs
Depends on D177790

Differential Revision: https://phabricator.services.mozilla.com/D178339
2023-06-08 08:56:51 +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
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
ebe7425bc8 Bug 1821884 - Reshow initial fullscreen notification; r=Gijs
Depends on D177790

Differential Revision: https://phabricator.services.mozilla.com/D178339
2023-06-07 20:28:10 +00: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
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
0666077666 Bug 1826062 - Automatic fixes for upgrading Prettier to 2.8.8. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,calu
Differential Revision: https://phabricator.services.mozilla.com/D177027
2023-05-20 12:26:53 +00:00
Abhishek Tiwari
cec6f4b2e7 Bug 1820878 - Convert toolkit/mozapps/downloads to ESmodules . r=Standard8,extension-reviewers,application-update-reviewers,bytesized,robwu
Differential Revision: https://phabricator.services.mozilla.com/D172245
2023-04-12 17:32:30 +00:00
Gregory Pappas
0e505f184a Bug 1804264 - Refactor PermissionUI to use JS class r=pbz
Also, esmify.

Differential Revision: https://phabricator.services.mozilla.com/D167074
2023-01-23 21:53:19 +00:00
Noemi Erli
9299cc61f9 Backed out changeset c37b70009a8b (bug 1804264) for causing failures in Geolocation.cpp CLOSED TREE 2023-01-23 19:11:47 +02:00
Gregory Pappas
8972ac3379 Bug 1804264 - Refactor PermissionUI to use JS class r=pbz
Also, esmify.

Differential Revision: https://phabricator.services.mozilla.com/D167074
2023-01-23 16:30:32 +00:00
Mark Banner
34d6fb8d94 Bug 1806503 - Automatically replace Cu.reportError with console.error (browser/actors, browser/base). r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D165068
2022-12-27 10:08:58 +00:00
Neil Deakin
65756040a9 Bug 1801168, initialize the field that gets the fullscr-toggler element properly, as showNavToolbox can be called without it being set yet, this caused the browser_tabswitch_select.js test to fail in verify mode, r=dao
Depends on D162857

Differential Revision: https://phabricator.services.mozilla.com/D163059
2022-11-25 10:36:00 +00:00
Michael Kohler
59a0472aa2 Bug 1749989 - Rename FullScreen.getAutohide to FullScreen.updateAutohideMenuitem r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D148353
2022-07-11 16:24:07 +00:00
Edgar Chen
225e30e4b3 Bug 1756388; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D144193
2022-05-03 19:11:30 +00:00
Mark Banner
d22663f0f9 Bug 1758476 - Remove some unnecessary uses of the target object argument to ChromeUtils.import. r=mossop,webdriver-reviewers,perftest-reviewers,robwu,whimboo,AlexandruIonescu
Differential Revision: https://phabricator.services.mozilla.com/D140518
2022-03-17 22:13:08 +00:00
Cristian Tuns
a180c6cba3 Backed out changeset 528295e7cb0c (bug 1758476) for causing tabswitch failures CLOSED TREE 2022-03-14 12:27:48 -04:00
Mark Banner
beed912c8e Bug 1758476 - Remove some unnecessary uses of the target object argument to ChromeUtils.import. r=mossop,webdriver-reviewers,perftest-reviewers,robwu,whimboo,AlexandruIonescu
Differential Revision: https://phabricator.services.mozilla.com/D140518
2022-03-14 10:19:40 +00:00
Mark Banner
7ea3c792f2 Bug 1758474 - Implement an ESLint rule to disallow passing {} as the target parameter for ChromeUtils.import. r=Gijs,mossop,perftest-reviewers,preferences-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D140517
2022-03-11 16:41:29 +00:00
smolnar
19781d16c7 Backed out changeset 5018856d8fee (bug 1758474) for causing node eslint failure. CLOSED TREE 2022-03-10 11:58:45 +02:00
Mark Banner
de1754318e Bug 1758474 - Implement an ESLint rule to disallow passing {} as the target parameter for ChromeUtils.import. r=Gijs,mossop,perftest-reviewers,preferences-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D140517
2022-03-10 09:25:28 +00:00