Commit Graph

26426 Commits

Author SHA1 Message Date
Brian
0b327f0974 Bug 1788925 - Convert AboutReader from JSM to ESM. r=Gijs.
Differential Revision: https://phabricator.services.mozilla.com/D157034
2022-09-23 21:19:12 +00:00
Kirk Steuber
ff6db15116 Bug 1756450 - Add AppUpdater.STATUS.INTERNAL_ERROR r=bhearsum,fluent-reviewers,preferences-reviewers,desktop-theme-reviewers,flod
This patch adds a state to AppUpdater to represent when an internal error has occurred. It also adds the appropriate code to the Update UI to be able to handle this state, along with a panel in each UI and a string that can go in the panels to convey to the user that update has failed.

Ideally, it would be good if this message also directed the user to a SUMO article. See Bug 1787309 for details on this. But at the moment, I would prefer to address Bug 1756450 quickly rather than wait for that to be ready.

Differential Revision: https://phabricator.services.mozilla.com/D156998
2022-09-23 19:47:33 +00:00
Evan
7be0d917de Bug 1788783 -Converted Picture in Picture JSM modules to ESMs. r=kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D157039
2022-09-23 18:11:48 +00:00
Emilio Cobos Álvarez
9886d5e3ac Bug 1789168 - Use modern flexbox emulation in the main browser area. r=Gijs
Now that DevTools splitters work this should be doable.

Differential Revision: https://phabricator.services.mozilla.com/D156385
2022-09-23 16:16:49 +00:00
Cristian Tuns
06d4e9b7af Backed out changeset b290a56391fe (bug 1789168) for causing mochitest failures on test_link.html CLOSED TREE 2022-09-22 17:11:58 -04:00
Emilio Cobos Álvarez
a671d8704a Bug 1789168 - Use modern flexbox emulation in the main browser area. r=Gijs
Now that DevTools splitters work this should be doable.

Differential Revision: https://phabricator.services.mozilla.com/D156385
2022-09-22 20:24:37 +00:00
Andrew McCreight
4f8707963c Bug 1792028 - Apply the lazy defineLazyPreferenceGetter workaround to browser-sidebar.js. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D157932
2022-09-22 15:07:57 +00:00
Frederic Wang
9e28d38ae6 Bug 1790009, part 2 - Operator dictionary: Only accept UTF-16 strings of 1 or 2 characters. r=emilio
MathML Core specifies that operators containing a UTF-16 strings whose
length is not 1 or 2 should use the default properties [1]. This
commit removes the obsolete strings of length 3 from our operator
dictionary and tweak updateOperatorDictionary.pl to ensure it only
accepts strings of 1 or 2 characters. This also adds an early return
in LookupOperator to immediately fallback to default properties.

[1] https://w3c.github.io/mathml-core/#dfn-algorithm-to-determine-the-category-of-an-operator

Differential Revision: https://phabricator.services.mozilla.com/D157706
2022-09-22 12:04:07 +00:00
Boris Chiou
4583d70c27 Bug 1789447 - Part 2: Drop @scroll-timeline rule entirely. r=emilio,hiro
This rule is not used in tests and should be removed per spec.

Differential Revision: https://phabricator.services.mozilla.com/D157249
2022-09-22 03:47:11 +00:00
Daisuke Akatsuka
dacc90003d Bug 1790814: Depends on existing tabs to change the tab to open about:addons page. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D157400
2022-09-21 22:58:47 +00:00
Ryan VanderMeulen
a42176cf02 Bug 1784692 - Revert focus behavior for new windows introduced by bug 1770818. a=backout 2022-09-21 14:08:31 -04:00
Nolan Ishii
53730d3c28 Bug 1788932 - Convert browser/actors/BrowserTab* JSM modules to ESMs r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D157036
2022-09-21 18:56:08 +00:00
Emilio Cobos Álvarez
04741b4cd8 Bug 1791691 - Don't close the menu when targeting the profiler info button. r=julienw
This already didn't work for keyboard uses. The button needs
closemenu="none" to do what it says.

Differential Revision: https://phabricator.services.mozilla.com/D157768
2022-09-21 16:43:17 +00:00
Joel Maher
e55c3a53bb Bug 1536208 - removing old aarch64 manifest annotations. r=aryx,application-update-reviewers,bytesized
Differential Revision: https://phabricator.services.mozilla.com/D157677
2022-09-21 15:35:02 +00:00
Tim Giles
39299d1aba Bug 1778450 - Fix tab navigation in toolbar when Firefox View button is not present. r=Gijs
With the addition of the Firefox View button/tabstrip, there is a new
tabstop that is present at the start of the TabsToolbar. When the
Firefox View button is not present, this new tabstop causes tab
navigation to skip over the selected tab and instead focus the new-tab
button. Then, when trying to navigate backwards from the selected tab,
this tabstop at the front of the TabsToolbar forces us to re-focus the
new-tab button. This is because the tabbrowser-arrowscrollbox-periphery
container has zero width/height which causes the tabstop inside of this
container to be skipped over, which then focuses the new-tab button
instead of the selected tab.

This patch allows zero width nodes to be skipped instead of rejected.
This allows the tabstop within the zero width periphery container to be
the first valid element when navigating forward from the tabstrip,
instead of the new-tab-button that is outside of the <tabs> element.
This restores the previous behavior of a selected tab being the first
focusable item when navigating forward from the end of web content, if
there are no items in the tabstrip.

Differential Revision: https://phabricator.services.mozilla.com/D157351
2022-09-21 13:41:25 +00:00
Emilio Cobos Álvarez
d8a3b41034 Bug 1791219 - Fix direction of <select>. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D157576
2022-09-21 02:00:13 +00:00
Itiel
af9cb10879 Bug 1787666 - Make the panel/addon banner items a proper subviewbutton r=sfoster,desktop-theme-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D155796
2022-09-20 21:10:09 +00:00
Andreea Pavel
aeb00aa39c Bug 1786514 - temporarily disable browser_tabdialogbox_content_prompts.js to reduce failure rate r=intermittent-reviewers,MasterWayZ DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D157722
2022-09-20 15:51:37 +00:00
Dão Gottwald
308590ef34 Bug 1789022 - Insert tabs opened from Firefox View at the beginning of the tab strip. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D157724
2022-09-20 13:50:34 +00:00
Dana Keeler
bfbbfa5a3b Bug 1790451 - remove now-unnecessary QueryInterface(Ci.nsITransportSecurityInfo) calls r=jschanck,webdriver-reviewers,necko-reviewers,application-update-reviewers,nalexander,valentin
Differential Revision: https://phabricator.services.mozilla.com/D157166
2022-09-20 03:58:50 +00:00
Niklas Baumgardner
170ca9103e Bug 1790823 - Firefox View button should not be open when added to toolbar. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D157662
2022-09-19 21:54:45 +00:00
Shane Hughes
eb2a79af1d Bug 1791298 - Hide Firefox View from Ctrl Tab panel. r=dao
Only show the Firefox View tab in the Ctrl Tab panel if it's currently selected
(and the same for any other pages that can be simultaneously hidden and
selected, if any are added in the future).

Differential Revision: https://phabricator.services.mozilla.com/D157595
2022-09-19 20:07:36 +00:00
Emilio Cobos Álvarez
20021a15f0 Bug 1790920 - Minor fixes to toolbar key navigation. r=Gijs,extension-reviewers,willdurand
This is the last fix needed for this.

The issue is that command events now are triggered by synthetic click
events (which was not the case before pretty much by chance, a side
effect of how these events were implemented).

If we open a panel by a command event triggered by the synthetic click
event, rather than the real keypress event, we end up not detecting that
it is really a keyboard activation, and not focusing the first navigable
element in the panel for example, which is unfortunate.

This was caught by browser_toolbarButtonKeyPress.js.

We could keep the old behavior of not triggering commands from
dispatchEvent()-ed clicks, but honestly that's kind of bizarre.

Differential Revision: https://phabricator.services.mozilla.com/D157596
2022-09-19 17:02:38 +00:00
Emilio Cobos Álvarez
63996e4f6c Bug 1790920 - Don't check defaultPrevented for click events closing panels. r=Gijs
(To be landed right after the soft freeze is over)

One interesting consequence of my previous patch in this bug, is that
the time at which the XUL element processes the click event is different
(earlier, at bubbling phase rather than after everything).

This caused some test failures caused by the panel autohide, since now
it goes after than the native handling and the native handling
default-prevents to dispatch the XUL command.

Given we don't check key events for defaultPrevented either, it makes
sense to be consistent.

This uncovered an interesting failure, where the "show more tabs" button
in the sync menu starts closing the panel unexpectedly on click. The
right fix is to use closemenu="none" in that button, since otherwise
that button is not keyboard accessible (this is an issue on current
nightly that this patch fixes).

Differential Revision: https://phabricator.services.mozilla.com/D157584
2022-09-19 17:02:37 +00:00
Emilio Cobos Álvarez
1d46b07024 Bug 1790920 - Remove nsButtonBoxFrame. r=smaug
Create XULButtonElement instead to do the event handling. Pretty much a
straight port, this allows these elements to respect CSS display
properly (and use modern flexbox rather than old XUL layout).

Differential Revision: https://phabricator.services.mozilla.com/D157509
2022-09-19 17:02:37 +00:00
Andreea Pavel
d08a04b9bc Bug 1775648 - disable browser_overflowScroll.js on win10_2004 r=intermittent-reviewers,jmaher
Differential Revision: https://phabricator.services.mozilla.com/D157390
2022-09-17 08:14:25 +00:00
Joel Maher
1325c90046 Bug 1790868 - clean up 32 bit annotations for tests that don't run on 32 bit, and general cleanup. r=aryx
Differential Revision: https://phabricator.services.mozilla.com/D157352
2022-09-16 12:40:13 +00:00
William Durand
313a3beac7 Bug 1784223 - Move unified extensions button "after" the overflow menu. r=rpl,dao
This patch also adjusts some `min-width` rules like it was done for the
downloads button. It should work with either buttons OR both, which is
going to happen since the unified extensions button will be most likely
always visible in the toolbar.

Differential Revision: https://phabricator.services.mozilla.com/D154360
2022-09-15 16:34:38 +00:00
Dão Gottwald
1737bdc3e8 Bug 1790593 - Exclude hidden tabs from tab multiselection. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D157466
2022-09-15 14:59:12 +00:00
Shane Hughes
81b5f16022 Bug 1224960 - Resolve access key conflict in pageInfo.xhtml. r=fluent-reviewers,flod
In the Page Info window, the "Select All" button and the "Save As..."
button directly next to it share the same access key (in English). This
is because the "Select All" button shares its strings with the "Select
All" menuitem. This patch just adds a new fluent string for the button
and changes the access keys so they don't overlap.

Differential Revision: https://phabricator.services.mozilla.com/D143666
2022-09-14 23:39:51 +00:00
Dana Keeler
4df6483153 Bug 1790152 - avoid serializing nsITransportSecurityInfo in the certificate error page r=Gijs
Only the bytes of the failed certificate chain are used, so that's all we need
to send across, rather than the entire nsITransportSecurityInfo.

Differential Revision: https://phabricator.services.mozilla.com/D157007
2022-09-14 21:49:53 +00:00
Julian Descottes
41bc0c5d10 Bug 1790753 - [devtools] Track all devtools sockets in DevToolsSocketStatus r=ochameau,Gijs
The DevToolsSocketStatus could be misleading for any usage other than the current one from browser.js since it misses browser toolbox sockets

This patch allows the singleton to track all sockets but changes the API to allow consumers to exclude browser toolbox sockets.

Differential Revision: https://phabricator.services.mozilla.com/D157300
2022-09-14 19:11:22 +00:00
Sarah Clements
e04c7ffb66 Bug 1787979 - keyboard shortcut navigates to the wrong tab from Firefox View tab r=dao
* Remove index: 0 in FirefoxViewHandler.openTab
* Add condition in tabbrowser _selectNextTab for FirefoxView tab
* Fix tests

Differential Revision: https://phabricator.services.mozilla.com/D156688
2022-09-14 15:20:01 +00:00
Marian-Vasile Laza
2e7d3531bc Backed out changeset 9bf0a16672ec (bug 1787979) for causing bc failures on browser_sma_click_element.js. CLOSED TREE 2022-09-14 16:45:04 +03:00
Sarah Clements
26d455d485 Bug 1787979 - keyboard shortcut navigates to the wrong tab from Firefox View tab r=dao
* Remove index: 0 in FirefoxViewHandler.openTab
* Add condition in tabbrowser _selectNextTab for FirefoxView tab
* Fix tests

Differential Revision: https://phabricator.services.mozilla.com/D156688
2022-09-14 11:24:58 +00:00
Nicholas Rishel
140b0f02a3 Bug 1789390 - Remove scheduled and Action Center notifications during uninstall. r=nalexander
Non-MSIX notifications are not removed when Firefox is uninstalled. To handled this we've added a new `uninstall` background task and extended `nsIWindowsAlertService` to deregister notifications on uninstall.

Differential Revision: https://phabricator.services.mozilla.com/D156625
2022-09-14 00:42:43 +00:00
Punam Dahiya
f332fca018 Bug 1789192 - MR Onboarding Mobile Cross promo QRCode for MozillaOnline partner repack r=jprickett,hectorz
Differential Revision: https://phabricator.services.mozilla.com/D157000
2022-09-13 18:35:01 +00:00
Dão Gottwald
dc8c7ad89a Bug 1790592 - Add test for hidden tabs' context menu. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D157203
2022-09-13 13:10:47 +00:00
Dão Gottwald
af3ddd2293 Bug 1783811 - "Move Tab" and "Open in New Container Tab" options should be disabled for the Firefox View tab (and hidden tabs in general) in the "List all tabs" menu. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D154099
2022-09-13 08:45:47 +00:00
Emilio Cobos Álvarez
e8751b0a67 Bug 1790297 - Clean-up -moz-box-emulation-specific rules. r=dao
Most of the display: block stuff isn't needed anymore because we changed
the blockification behavior in bug 1789123.

.tab-stack, and stacks in general now uses CSS grid so doesn't need that
anymore.

DevTools is the only consumer of <xul:iframe> and width/height was
getting ignored in XUL because flexibility takes precedence, so just
remove the relevant declarations.

Differential Revision: https://phabricator.services.mozilla.com/D157070
2022-09-12 13:18:34 +00:00
Emilio Cobos Álvarez
bd0ccbd151 Bug 1790304 - Remove useless rule that makes dialogs unreadable with emulated flexbox. r=dao
Trivial test-case: data:text/html,<script>alert("foo")</script>

The dialog grows because of the grid container, and -moz-box prefers
honoring flexibility to the explicit height, so this declaration is
useless.

Emulated flexbox actually honors it and crops the dialog. Just remove
it.

Differential Revision: https://phabricator.services.mozilla.com/D157069
2022-09-12 13:16:35 +00:00
Emilio Cobos Álvarez
e4bcc13cb9 Bug 1789877 - Hide inactive statuspanel. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D156921
2022-09-12 09:55:30 +00:00
Brian
b5ffb06e87 Bug 1788776 - Convert screenshots component from JSM to ESM. r=niklas.
Differential Revision: https://phabricator.services.mozilla.com/D157038
2022-09-11 19:08:38 +00:00
Eemeli Aro
68c9ba3ebc Bug 1786185 - Migrate XMLPrettyPrint from DTD to FTL. r=gregtatum,smaug,fluent-reviewers,flod
The synchronous DocumentL10n instance that's created here is not exposed on the root document, as that is the user-defined XML document. The localization root that's connected to it is in a closed shadow root.

This localization won't update on locale changes, but that matches what this view was previously doing.

Differential Revision: https://phabricator.services.mozilla.com/D156544
2022-09-10 08:24:25 +00:00
Shane Hughes
3deb6aea98 Bug 1786509 - Fix Spotlight modal overflow scroll behavior. r=pdahiya
Make the dialog frame for Spotlight modal dialogs cover the full window,
prevent the fixed sizing in SubDialog for these dialogs, and vertically
center the dialog relative to its frame. Make the scrollport accommodate
the full Spotlight so it can be scrolled, without wasting any scroll
distance on margins. So, the top margin will shrink with the window,
like the other margins do.

Differential Revision: https://phabricator.services.mozilla.com/D156127
2022-09-10 07:40:14 +00:00
criss
f0ee3574ff Backed out changeset d1823131fc19 (bug 1786509) for causing mochitest failures on browser_modal_resize.js . CLOSED TREE 2022-09-10 08:12:55 +03:00
Shane Hughes
165c9d04bd Bug 1786509 - Fix Spotlight modal overflow scroll behavior. r=pdahiya
Make the dialog frame for Spotlight modal dialogs cover the full window,
prevent the fixed sizing in SubDialog for these dialogs, and vertically
center the dialog relative to its frame. Make the scrollport accommodate
the full Spotlight so it can be scrolled, without wasting any scroll
distance on margins. So, the top margin will shrink with the window,
like the other margins do.

Differential Revision: https://phabricator.services.mozilla.com/D156127
2022-09-10 03:50:16 +00:00
Emilio Cobos Álvarez
a1107cbac0 Bug 1789892 - Simplify statuspanel a bit. r=dao
I'm a bit baffled about bug 1789877. My best theory so far is that we're
inserting the element a bit deeper in the DOM and that causes us to
reflow slightly more stuff when tab-switching, but...

In any case while going through the code the status panel can be
simplified a bit now, so do that.

Differential Revision: https://phabricator.services.mozilla.com/D156876
2022-09-09 19:36:21 +00:00
Calixte
843cc91c4f Bug 1790039 - Update pdf.js to new version a274f63d50ebcd25efe4973283ded17fa1428fd4 r=pdfjs-reviewers,marco
Differential Revision: https://phabricator.services.mozilla.com/D156975
2022-09-09 19:07:34 +00:00
William Durand
e95af623c6 Bug 1790015 - Re-align extension popups when anchored to the unified extensions button. r=rpl
We cannot fully remove `popupOptions` because that wouldn't position the popups correctly in RTL mode.

Differential Revision: https://phabricator.services.mozilla.com/D156960
2022-09-09 17:41:39 +00:00