Граф коммитов

10225 Коммитов

Автор SHA1 Сообщение Дата
Mark Striemer 7f36c7d341 Bug 1810004 - Allow hr in panel-list to hide on [hidden] r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D166713
2023-01-12 22:22:45 +00:00
Gijs Kruitbosch 56de524863 Bug 1807249 - consolidate and simplify video/audio control position and duration setting, r=mconley
Notes:

- showHours could force the use of hours, and was true if the millisecond duration was >=3600000,
  but inside formatTime we also end up using hours if rounded division of ms duration by 1000 and
  then 3600 was non-0, so it would result in strictly more cases getting hours displayed, e.g.
  a 59 minute 59 second 500ms video would get hours shown anyway. So I removed showHours.
- I consolidated attributes into markup and removed runtime initialization of the duration span
- I reorganized duration+position setting to deal with the labeling in 1 function, and a
  separate function to deal with normalizing the raw ms duration/position (which can be missing
  or infinity) and setting scrubber bounds and the 'modifier' prop which gets used by CSS logic.

Differential Revision: https://phabricator.services.mozilla.com/D166106
2023-01-12 15:22:29 +00:00
Emilio Cobos Álvarez 113c1d0d8a Bug 1792057 - Make sure to focus inner text field when creating / rebuilding edit fields in datetime widget. r=smaug
The blur is a regression from bug 1740989, but it's really uncovering a
regression from bug 1729342, sorta. Before that, we used to focus the
inner text field on rebuild via focusInnerTextBox().

One could argue that the focus fixup rule should really deal with this,
but I guess since content can't really unattach shadow DOM, it's less of
a general issue and more of an implementation detail.

The test uncovers another pre-existing issue (switching from date ->
test was also broken, and we left a bogus ElementState::FOCUS state in
the element).

Differential Revision: https://phabricator.services.mozilla.com/D158167
2023-01-11 22:16:38 +00:00
Anna Yeddi 1d4e77ce4e Bug 1803664 - Provide spinner keyboard navigation tests. r=mconley,kcochrane
Provide reliable keyboard tests for Home/End and PageUp/PageDown for both month and year spinbuttons of the datepicker for `<input type=date>` and `<input type=datetime-local>`. These tests were removed from [the original Datepicker patch 4](https://phabricator.services.mozilla.com/D142743?id=654574) because of failing tests. Using reduced motion pref to utilize instant scrolling behavior to avoid failures during automatic test runs.

Depends on D165646 that implements the respect to the `prefers-reduced-motion` settings and changes the scrolling behavior from `smooth` to `instant` when the pref is on.

Differential Revision: https://phabricator.services.mozilla.com/D166378
2023-01-11 17:14:20 +00:00
Anna Yeddi f914e15607 Bug 1807006 - Respect prefers-reduced-motion in datepicker spinners. r=emilio
Provides a method to scroll a spin button (month or year one, in the case of `<input type=date>` and `<input type=datetime-local>`) without smoothing, based on the user settings.

It also updates the toolkit/content/tests/browser/browser_spinner_keynav.js test to utilize reduced motion pref to avoid intermittent scrolling failing during automated tests.

Differential Revision: https://phabricator.services.mozilla.com/D165646
2023-01-11 17:14:19 +00:00
Anna Yeddi 758c09b223 Bug 1809512 - Use a MutationObserver in two tests in toolkit/content/tests/browser/browser_datetime_datepicker_keynav.js. r=Jamie,mconley
In `toolkit/content/tests/browser/browser_datetime_datepicker_keynav.js` replace 2 instances of `await BrowserTestUtils.waitForCondition()` with `await BrowserTestUtils.waitForMutationCondition()` per [the recommendation](https://phabricator.services.mozilla.com/D166378#anchor-inline-917416), because if possible, we should avoid polling with waitForCondition. If we're waiting for some DOM to change on us, we can use waitForMutationCondition instead, which uses a MutationObserver rather than an interval for polling.

Differential Revision: https://phabricator.services.mozilla.com/D166456
2023-01-11 17:03:58 +00:00
Olli Pettay aec1529203 Bug 1807838, try to translate elements before load event fires, r=emilio
...but call sizeToContent* only after AppWindow::OnChromeLoaded().

Differential Revision: https://phabricator.services.mozilla.com/D166011
2023-01-10 22:47:20 +00:00
Norisz Fay 8dc1a8ef3c Backed out 3 changesets (bug 1804226, bug 1801557) for causing failures on AudioNodeEngineGeneric.h CLOSED TREE
Backed out changeset fc718f9cc51d (bug 1804226)
Backed out changeset 8409212faaf1 (bug 1801557)
Backed out changeset 49c08aab9622 (bug 1801557)
2023-01-10 14:16:40 +02:00
Emilio Cobos Álvarez 6a6ba9ae21 Bug 1808800 - Ensure to activate an ancestor menu if activating a child. r=smaug
This basically implements this chunk of code:

  47c002d363 (l48.565)

In a more reasonable way. This seems rather tricky to test tho, because
this is dependent on the submenu close timer.

Differential Revision: https://phabricator.services.mozilla.com/D166248
2023-01-10 11:43:54 +00:00
serge-sans-paille b172be87b8 Bug 1801557 - import xsimd to third_party r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D162537
2023-01-10 10:22:33 +00:00
Mark Striemer 260e4270fc Bug 1765635 - Extract panel-list from aboutaddons to widgets r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D144224
2023-01-09 22:22:20 +00:00
Nika Layzell 05dc1d3602 Bug 1808630 - Part 1: Clean up after test_edit_contextmenu.html, r=smaug
This fixes the main issue, and makes the test pass by avoiding issues with the
window sticking around after test completion, messing up future runs.

Differential Revision: https://phabricator.services.mozilla.com/D166119
2023-01-09 22:22:05 +00:00
Mark Striemer a610fd5886 Bug 1808741 - Patch lit's styleMap to not set the style attribute on first render r=mtigley
lit calls `element.setAttribute("style", "<our styles>")` on first render of an
element so that it will have the style property set in the markup if it is being
server-side rendered. We don't need that, and it causes CSP errors in
about:logins so this patches out the functionality.

https://github.com/lit/rfcs/issues/13

Differential Revision: https://phabricator.services.mozilla.com/D165240
2023-01-09 22:20:21 +00:00
Cosmin Sabou 4d34b301b5 Backed out changeset fd5889a344a9 (bug 1808800) for causing bug 1809112. CLOSED TREE 2023-01-09 15:21:26 +02:00
Emilio Cobos Álvarez 8f9e643713 Bug 1809019 - Menulists shouldn't be considered to have a menu parent. r=smaug
This worked pre-patch because IsOnMenu() returned true not for all
popups, but only for <menupopup>. Instead, I think it's clearer to just
treat menulists as never-inside-a-menu.

Differential Revision: https://phabricator.services.mozilla.com/D166247
2023-01-09 07:50:29 +00:00
Emilio Cobos Álvarez 941e16e43f Bug 1808800 - Ensure to activate an ancestor menu if activating a child. r=smaug
This basically implements this chunk of code:

  47c002d363 (l48.565)

In a more reasonable way. This seems rather tricky to test tho, because
this is dependent on the submenu close timer.

Differential Revision: https://phabricator.services.mozilla.com/D166248
2023-01-09 07:37:19 +00:00
Sandor Molnar 0947c44095 Backed out changeset f1639812175b (bug 1807249) for causing assertion failure in dom/security/DOMSecurityMonitor.cpp CLOSED TREE 2023-01-07 02:27:58 +02:00
Gijs Kruitbosch 1b5675eb8b Bug 1807249 - consolidate and simplify video/audio control position and duration setting, r=mconley
Notes:

- showHours could force the use of hours, and was true if the millisecond duration was >=3600000,
  but inside formatTime we also end up using hours if rounded division of ms duration by 1000 and
  then 3600 was non-0, so it would result in strictly more cases getting hours displayed, e.g.
  a 59 minute 59 second 500ms video would get hours shown anyway. So I removed showHours.
- I consolidated attributes into markup and removed runtime initialization of the duration span
- I reorganized duration+position setting to deal with the labeling in 1 function, and a
  separate function to deal with normalizing the raw ms duration/position (which can be missing
  or infinity) and setting scrubber bounds and the 'modifier' prop which gets used by CSS logic.

Differential Revision: https://phabricator.services.mozilla.com/D166106
2023-01-07 00:04:17 +00:00
Iulian Moraru 951b7cd353 Backed out changeset f95af8067620 (bug 1807006) for causing bc failures on browser_spinner_keynav.js. CLOSED TREE 2023-01-06 19:16:04 +02:00
Anna Yeddi 3d1ebb1d5b Bug 1807006 - Respect prefers-reduced-motion in datepicker spinners. r=emilio
Provides a method to scroll a spin button (month or year one, in the case of `<input type=date>` and `<input type=datetime-local>`) without smoothing, based on the user settings.

Testing: in `about:config`, set `ui.prefersReducedMotion` to `1` (effective immediately), or set `gtk-enable-animations` to `false` in GTK/GNOME, or follow [an appropriate to your OS instructions to activate Reduce Motion mode](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion#user_preferences).

Differential Revision: https://phabricator.services.mozilla.com/D165646
2023-01-06 16:13:55 +00:00
Kai Engert 652f683b92 Bug 1763826 - Earlier init of MozDialog._l10nButtons. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D166103
2023-01-06 15:19:12 +00:00
Cristian Tuns 3f2b28b9da Backed out changeset da24ae3723ce (bug 1765635) for causing bc failures on browser_html_detail_view.js CLOSED TREE 2023-01-05 14:50:17 -05:00
Mark Striemer 8ffe801580 Bug 1765635 - Extract panel-list from aboutaddons to widgets r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D144224
2023-01-05 16:32:19 +00:00
Emilio Cobos Álvarez 4f1f5e7314 Bug 1805414 - Remove nsMenuFrame and nsMenuParent. r=smaug,Jamie,desktop-theme-reviewers,settings-reviewers,dao
Move most the event handling stuff to the DOM. I've left nsMenuBarFrame
for now, but I will be removing that in the future.

The basic set up is:

  * nsMenuParent becomes XULMenuParentElement (menubar or popup, manages
    the current active menu item)

  * nsMenuFrame -> XULButtonElements that return true for IsMenu().
    Can't use XULMenuElement because of <button type=menu>, which
    behaves like a, well, menu.

This makes the a11y events for menus (DOMMenuItem{Active,Inactive}) make
sense (before that we were firing duplicate Inactive events etc, and the
event order was rather suspicious).

Differential Revision: https://phabricator.services.mozilla.com/D164210
2023-01-04 19:01:13 +00:00
Csoregi Natalia 9807a6e6e8 Backed out changeset f11c529b2407 (bug 1805414) for failures on test_submenuClose.xhtml and nsMenuPopupFrame.cpp. CLOSED TREE 2023-01-04 01:48:30 +02:00
Emilio Cobos Álvarez 3d82727505 Bug 1805414 - Remove nsMenuFrame and nsMenuParent. r=smaug,Jamie,desktop-theme-reviewers,settings-reviewers,dao
Move most the event handling stuff to the DOM. I've left nsMenuBarFrame
for now, but I will be removing that in the future.

The basic set up is:

  * nsMenuParent becomes XULMenuParentElement (menubar or popup, manages
    the current active menu item)

  * nsMenuFrame -> XULButtonElements that return true for IsMenu().
    Can't use XULMenuElement because of <button type=menu>, which
    behaves like a, well, menu.

This makes the a11y events for menus (DOMMenuItem{Active,Inactive}) make
sense (before that we were firing duplicate Inactive events etc, and the
event order was rather suspicious).

Differential Revision: https://phabricator.services.mozilla.com/D164210
2023-01-03 22:06:01 +00:00
Emilio Cobos Álvarez 6913a852ce Bug 1807892 - Fix test_popup_recreate.xhtml on some platforms.
On platforms with scrollbar size > dropmarker width the popup is not
guaranteed to be bigger than the menulist after this patch and
bug 1805694 (given the "menu sizes to popup" behavior changed there).

Ensure the popup is sized to the menulist by widening the later.

MANUAL PUSH: Trivial test fix CLOSED TREE
2022-12-29 22:54:20 +01:00
Marco Castelluccio f69e697461 Bug 1801836 - Remove no longer necessary 'from __future__' imports. r=linter-reviewers,glandium,webdriver-reviewers,perftest-reviewers,geckoview-reviewers,jld,ahal,owlish,afinder DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D165395
2022-12-23 22:45:46 +00:00
Mark Banner 8730eec697 Bug 1806359 - Convert telemetry imports to direct ES imports. r=necko-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,janerik,mconley,sgalich,bytesized,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D165002
2022-12-23 12:37:07 +00:00
Valentin Gosu df13492ee4 Bug 1596845 - Make DNSServices available as `Services.dns` r=necko-reviewers,webdriver-reviewers,kershaw
Depends on D164347

Differential Revision: https://phabricator.services.mozilla.com/D164856
2022-12-23 09:26:17 +00:00
Valentin Gosu 1fe810288f Bug 1596845 - Make custom about:neterror page for TRR mode3 DNS failures r=pbz,fluent-reviewers,settings-reviewers,flod,edgul
This changes about:neterror to show a specific error page when the DNS failure
occurs for a TRR mode3 page load. This offers the user more information about
the failure, and some options.

This page will be further improved at a later stage when we add a better
DNS over HTTPS settings page.

The page is visible when the browser is using DNS over HTTPS without fallback
to native DNS. To achieve this the user sets `network.trr.mode` to `3` then
loads a page such as `http://nonexistant.test`.

If a top level load's channel returns NS_ERROR_UNKNOWN_HOST we look at
whether the page was indeed loaded with an effectiveTRRMode == TRRONLY
(some loads are excluded from using TRR).
When that is true, we present the error page allowing the user to retry,
exclude the domain from TRR, or open the settings page.

Note: This initial implementation will not work if the
`network.dns.disablePrefetch` pref is set to true. In that case nsHttpChannel
does not get an OnLookupComplete callback, so it doesn't have the
effectiveTRRMode and trrSkipReason. This will be fixed in bug 1805372.

Project plan: https://docs.google.com/document/d/12IGABt1eXI276qHduXXbVZqRFrhLN7Ad3gKEgxz81sE
Copy deck: https://docs.google.com/document/d/130UTox8bQbybjYIwvltR4qBg2hWjsGhuNUHypLwUAEQ

Depends on D164642

Differential Revision: https://phabricator.services.mozilla.com/D164347
2022-12-23 09:26:16 +00:00
Marian-Vasile Laza 56b22ee0ba Backed out 9 changesets (bug 1596845) for causing xpcshell failures on test_trr_enterprise_policy.js. CLOSED TREE
Backed out changeset 231acfc052bb (bug 1596845)
Backed out changeset 7d02dad4d720 (bug 1596845)
Backed out changeset b0449eec2671 (bug 1596845)
Backed out changeset 5cd033c9ef7c (bug 1596845)
Backed out changeset 98d583f1d19e (bug 1596845)
Backed out changeset b78bc0049605 (bug 1596845)
Backed out changeset 88919aaff89b (bug 1596845)
Backed out changeset f4adb3e7b8e1 (bug 1596845)
Backed out changeset b171f7ac0b40 (bug 1596845)
2022-12-23 09:21:39 +02:00
Valentin Gosu 6ca2987fe1 Bug 1596845 - Make DNSServices available as `Services.dns` r=necko-reviewers,webdriver-reviewers,kershaw
Depends on D164347

Differential Revision: https://phabricator.services.mozilla.com/D164856
2022-12-23 01:20:03 +00:00
Valentin Gosu b65942a662 Bug 1596845 - Make custom about:neterror page for TRR mode3 DNS failures r=pbz,fluent-reviewers,settings-reviewers,flod,edgul
This changes about:neterror to show a specific error page when the DNS failure
occurs for a TRR mode3 page load. This offers the user more information about
the failure, and some options.

This page will be further improved at a later stage when we add a better
DNS over HTTPS settings page.

The page is visible when the browser is using DNS over HTTPS without fallback
to native DNS. To achieve this the user sets `network.trr.mode` to `3` then
loads a page such as `http://nonexistant.test`.

If a top level load's channel returns NS_ERROR_UNKNOWN_HOST we look at
whether the page was indeed loaded with an effectiveTRRMode == TRRONLY
(some loads are excluded from using TRR).
When that is true, we present the error page allowing the user to retry,
exclude the domain from TRR, or open the settings page.

Note: This initial implementation will not work if the
`network.dns.disablePrefetch` pref is set to true. In that case nsHttpChannel
does not get an OnLookupComplete callback, so it doesn't have the
effectiveTRRMode and trrSkipReason. This will be fixed in bug 1805372.

Project plan: https://docs.google.com/document/d/12IGABt1eXI276qHduXXbVZqRFrhLN7Ad3gKEgxz81sE
Copy deck: https://docs.google.com/document/d/130UTox8bQbybjYIwvltR4qBg2hWjsGhuNUHypLwUAEQ

Depends on D164642

Differential Revision: https://phabricator.services.mozilla.com/D164347
2022-12-23 01:20:02 +00:00
Sandor Molnar 56d5efdcae Backed out 9 changesets (bug 1596845) for causing mochitest failures in browser/base/content/test/about/browser_aboutCertError_telemetry.js
Backed out changeset eb1e34c3041f (bug 1596845)
Backed out changeset af6d41439c60 (bug 1596845)
Backed out changeset f1447dd8df04 (bug 1596845)
Backed out changeset a383f2bbcaae (bug 1596845)
Backed out changeset 950c66dd6133 (bug 1596845)
Backed out changeset ab300239fd69 (bug 1596845)
Backed out changeset 8e1fe024b680 (bug 1596845)
Backed out changeset 80e5048d1f35 (bug 1596845)
Backed out changeset b14a4910d73b (bug 1596845)
2022-12-23 00:56:35 +02:00
Valentin Gosu ff04cde9bd Bug 1596845 - Make DNSServices available as `Services.dns` r=necko-reviewers,webdriver-reviewers,kershaw
Depends on D164347

Differential Revision: https://phabricator.services.mozilla.com/D164856
2022-12-22 21:16:07 +00:00
Valentin Gosu c211b06b14 Bug 1596845 - Make custom about:neterror page for TRR mode3 DNS failures r=pbz,fluent-reviewers,settings-reviewers,flod
This changes about:neterror to show a specific error page when the DNS failure
occurs for a TRR mode3 page load. This offers the user more information about
the failure, and some options.

This page will be further improved at a later stage when we add a better
DNS over HTTPS settings page.

The page is visible when the browser is using DNS over HTTPS without fallback
to native DNS. To achieve this the user sets `network.trr.mode` to `3` then
loads a page such as `http://nonexistant.test`.

If a top level load's channel returns NS_ERROR_UNKNOWN_HOST we look at
whether the page was indeed loaded with an effectiveTRRMode == TRRONLY
(some loads are excluded from using TRR).
When that is true, we present the error page allowing the user to retry,
exclude the domain from TRR, or open the settings page.

Note: This initial implementation will not work if the
`network.dns.disablePrefetch` pref is set to true. In that case nsHttpChannel
does not get an OnLookupComplete callback, so it doesn't have the
effectiveTRRMode and trrSkipReason. This will be fixed in bug 1805372.

Project plan: https://docs.google.com/document/d/12IGABt1eXI276qHduXXbVZqRFrhLN7Ad3gKEgxz81sE
Copy deck: https://docs.google.com/document/d/130UTox8bQbybjYIwvltR4qBg2hWjsGhuNUHypLwUAEQ

Depends on D164642

Differential Revision: https://phabricator.services.mozilla.com/D164347
2022-12-22 21:16:06 +00:00
Anna Yeddi f81766c9fb Bug 1803645 - Adds a check that the focus returned to the input field when a datepicker is closed. r=Jamie
Add a check that the focus returned to the input field and that the Calendar button is focused (when a picker was activated by this button before closing).

Differential Revision: https://phabricator.services.mozilla.com/D165233
2022-12-22 00:40:54 +00:00
Anna Yeddi a487112616 Bug 1804669 - Do not remove a Calendar button from date input on Backspace. r=mconley
Prevent removing a Calendar button when a `Backspace` is pressed while it's focused for `<input type=date>` and `<input type=datetime-local>`.

This patch does not add cleaning the entire field as this is to be decided under [a separate enhancement bug 1806587](https://bugzilla.mozilla.org/show_bug.cgi?id=1806587)

Differential Revision: https://phabricator.services.mozilla.com/D165186
2022-12-21 17:52:49 +00:00
Anna Yeddi 553fbbb6e8 Bug 1801930 - Use Escape to close month-year panel only. r=Jamie
For `<input type=date>` and `<input type=datetime-local>`, when a month-year selection dialog is opened from the datepicker/calendar dialog, `Escape` now would only close the month-year selection panel and would keep the datepicker open, returning the focus to the focusable day/gridcell on the calendar grid.

Differential Revision: https://phabricator.services.mozilla.com/D165117
2022-12-21 17:52:45 +00:00
Emilio Cobos Álvarez ace68cc3b4 Bug 1792319 - Use XUL layout for scrollbar parts. r=dholbert
When scrollbar caching is enabled this worked kinda by chance via the
-moz-box-layout: initial declaration there.

Make it work independently of the scrollbar caching pref.

Differential Revision: https://phabricator.services.mozilla.com/D164893
2022-12-21 16:12:29 +00:00
Hanna Jones 0883df1cbd Bug 1804771 - change toggle to use a button r=mstriemer
This patch changes our toggle implementation to use a button under the hood, rather than a checkbox input. This was done for a couple of reasons:

* We expect clicking on the toggle to have an immediate effect, rather than only resulting in a change after some secondary action like submitting a form.
* We don't currently use or support an indeterminate/mixed state. Our toggles only ever have two states - like on/off.
* Places toggles are currently used in the code tend to be relying on click events rather than change events

I kept the `role="switch"` and `aria-checked` aspects of the implementation because this sounded like what we're trying to build: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Switch_role

I played around with using `aria-pressed`, which effectively turns a button into a toggle button: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-pressed

This had no effect when used together with `role="switch"` and `aria-checked`, so I removed it. If we think just using `aria-pressed` seems more accurate I could switch to that.

Differential Revision: https://phabricator.services.mozilla.com/D164465
2022-12-20 17:36:01 +00:00
Stephen A Pohl d704105be4 Bug 1430892: Prevent accidental selection of an item in a dropdown menu and closing the menu on macOS. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D161310
2022-12-20 16:55:44 +00:00
Emilio Cobos Álvarez 2b72ef3e89 Bug 1801607 - Improve certManager layout. r=mconley,settings-reviewers
Allow the tabbox/tabpanels to shrink, and remove an useless <vbox>.

Differential Revision: https://phabricator.services.mozilla.com/D163660
2022-12-20 09:19:09 +00:00
Anna Yeddi 1f44b4724e Bug 1804698 - Handle Space and Enter keys on month-year spinners of the datepicker. r=Jamie,mconley,kcochrane
Space bar should have identical behavior as the Enter key it should close the month-year selection panel, returning the focus to the focusable grid cell on the calendar (a day). Closing the entire panel would also suffice, because technically the panel with spinners replaces the calendar panel.

Differential Revision: https://phabricator.services.mozilla.com/D164623
2022-12-19 22:19:30 +00:00
Hanna Jones 849ca39946 Bug 1800779 - fix disabled unchecked styles in HCM r=mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D162166
2022-12-19 19:45:46 +00:00
Emilio Cobos Álvarez bbe36d6bf7 Bug 1805694 - Simplify menulist popup layout. r=tnikkel
I decided to split this up from bug 1805414 because it's only
tangentially related to the removal of nsMenuFrame.

We have this sizetopopup attribute and behavior that allows menulists to
be sized to the contents of the popup. The popup also expands to the
menulist rect.

This means that layout is by somewhat cyclic and we need to go out of
our way to support it. However, I think we only care about the first
behavior. We don't have many non-intrinsically-sized menulists, and
if we need we can use HTML <select> instead, which does have that
behavior.

Simplify the setup to make sizetopopup only apply to menulists (we don't
have non-menulist usage anyways), and only work in the "popup depends on
the menulist" direction, not the other way around.

This will allow making the popup a regular out-of-flow element. The
change to test_menulist_paging is not needed (I restored the behavior of
eagerly layout menulists, to fix the <select> popup, but I'd like to fix
that eventually, so I'd rather leave them in, they're harmless).

Differential Revision: https://phabricator.services.mozilla.com/D164693
2022-12-19 16:15:52 +00:00
Eemeli Aro 146a3e1023 Bug 1804829 - Avoid last use of location.hostname on about:neterror page. r=prathiksha
It looks like hostname is sometimes undefined, which triggers a Fluent error.
The HOST_NAME is determined from location.href,
and falls back to an empty string value about which Fluent is much happier.

Differential Revision: https://phabricator.services.mozilla.com/D164538
2022-12-19 10:05:16 +00:00
Emilio Cobos Álvarez b8a0c9a742 Bug 1805500 - Implement panel borders in cocoa using a border rather than shadow. r=mstange,extension-reviewers
My guess is that it was done using shadows to not interfere with the
native look, but actually this just works even with native-looking menus
(like the <select> menulist), because the background-color for those is
set on the menupopup, rather than the ::part(content).

So those have effectively 1px of extra padding (due to the transparent
border), but that seems barely perceptible, and worth the consistency
and simplification.

Differential Revision: https://phabricator.services.mozilla.com/D164716
2022-12-17 01:45:05 +00:00
Cristian Tuns c2f987572a Backed out changeset b9473eda2d5b (bug 1805500) for causing mochitest failures on browser_ext_popup_select_in_oopif.js CLOSED TREE 2022-12-16 19:10:34 -05:00