Commit Graph

10810 Commits

Author SHA1 Message Date
Noemi Erli
ac856abc50 Backed out 2 changesets (bug 1793841) for causing Gtest failures CLOSED TREE
Backed out changeset 4d39c423b92e (bug 1793841)
Backed out changeset 5cfb5f595add (bug 1793841)
2022-10-18 04:29:44 +03:00
Dana Keeler
5a52df916d Bug 1793841 - don't serialize securityInfo in browser_aboutCertError_exception.js r=pbz
This test only needs the bytes of the server certificate, not the entire
nsITransportSecurityInfo of the connection.

Differential Revision: https://phabricator.services.mozilla.com/D157994
2022-10-18 00:18:08 +00:00
Matthias Camenzind
aeaaf78870 Bug 1793605 - Flush layout in window.open calls with specified size. r=emilio
Without flushing the layout, new windows appear to the opener to
initially open at the size of the opener instead of the specified size.

We can flush the layout unconditionally when we have a specified size
where we otherwise would make sure that the frame loader has been
reflowed at least once.

Thanks to Emilio for providing the changes to avoid tokenizing the
window features twice.

Differential Revision: https://phabricator.services.mozilla.com/D158584
2022-10-14 16:35:49 +00:00
Cosmin Sabou
e15913ff36 Bug 1764318 - Fix eslint failure. r=lint-fix CLOSED TREE 2022-10-14 00:04:47 +03:00
Edgar Chen
25d9db7fc1 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
Dan Mosedale
d9e282b558 Bug 1794620 - Add assets for infrequent users import dialog, r=emcminn,flod
Differential Revision: https://phabricator.services.mozilla.com/D159134
2022-10-12 18:40:08 +00:00
Eemeli Aro
dc5bf23bc9 Bug 1794423 - Make NetError page loading more synchronous. r=Gijs,fluent-reviewers,flod
Also make a few tests be more robust.

Differential Revision: https://phabricator.services.mozilla.com/D159027
2022-10-12 12:34:36 +00:00
Matthias Camenzind
a0b52a641c Bug 1792839 - [Linux] Only update window size when also calling WindowResized. r=stransky
Updating mBounds.Size() without calling WindowResized leaves the window
temporarily in a state where inner and outer sizes are out of sync.

BrowserParent::UpdatePosition should call BrowserParent::UpdateDimension
with the size during the last update, rather than the current window
size. There is an edge case where a call can happen between a resize and
its reflow, and a second resize could prevent the reflow from changing
the frame loader size, leaving the BrowserChild with an outdated outer
size.

Differential Revision: https://phabricator.services.mozilla.com/D158343
2022-10-11 20:02:49 +00:00
Matthias Camenzind
327b3d1653 Bug 1793609 - [Linux] Wait for OnSizeAllocate while the window becomes visible before updating window size. r=stransky
The first size-allocate is likely (or guaranteed) to be of the size at
the time of the first NativeShow(true) call. Any resize between show and
the first size-allocate will be accounted for in a second size-allocate
signal. If we update and dispatch the window size at the beginning of
such a resize, we end up reverting back to previous size from the first
size-allocate signal before dispatching the size for the resize again
from the second size-allocate signal.

Differential Revision: https://phabricator.services.mozilla.com/D158580
2022-10-11 07:47:39 +00:00
Daisuke Akatsuka
99341cf6fa Bug 1792971: Suppress popup notification while async tab switching. r=adw,zombie
Differential Revision: https://phabricator.services.mozilla.com/D158480
2022-10-11 00:10:26 +00:00
James Picone
e437470a8b Bug 1625945: Intercept wheel events in tabbrowser-tabs if switchByScrolling is true so tabs also switch when it's overflown, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D158077
2022-10-09 08:32:16 +00:00
Eemeli Aro
255747caa7 Bug 1734217 - Clean up neterror element display logic and tests. r=prathiksha
The neterror page serves a number of different use cases, which effectivly pick and choose elements from the page's DOM to display. Previously this logic was partly defined in the HTML, partly in the CSS, and partly in JS, using a couple of different methods. This change normalises all of that such that:
- All optional elements are initially hidden.
- Hiding is always controlled by an element's `hidden` attribute.
- Setting a CSS `display` style does not override the `hidden` attribute.

In addition to making the page easier to reason about, this allows for the CSS styles of the page to not be considered essential for its display, which means that they (and their dependencies) do not need to be included in `toolkit/themes/shared/minimal-toolkit.jar.inc.mn`.

The HTML and CSS of the page are also somewhat simplified, leaving out unused or unnecessary elements and styles.

Some tests affected by these changes are cleaned up to be slightly less flaky. Some are set to be skipped in verify mode under OS X, as they have a tendency to time out in chaos mode.

Differential Revision: https://phabricator.services.mozilla.com/D157726
2022-10-07 18:40:29 +00:00
Eemeli Aro
6df95001ee Bug 1734217 - Merge all about:neterror front-end handling under toolkit. r=mkmelin,smaug,nalexander,flod,Gijs
Following a suggestion from :mkmelin, this seems like an optimal solution: the overriding/duplication in m-c is removed, and all users get a more powerful default choice that they're still able to override with their own, should they so wish.

For clarity and to match other `about:` pages, the shared code is placed under `toolkit/content/`, and all content under `docshell/resources/` is removed.

Differential Revision: https://phabricator.services.mozilla.com/D156478
2022-10-07 18:40:27 +00:00
Eemeli Aro
2f3cbc78a9 Bug 1734217 - Migrate aboutNetError from DTD to Fluent. r=fluent-reviewers,prathiksha,flod
To support and enable the migration, quite a bit of refactoring is needed.

Many of the localised error messages are in fact fragments of HTML, including messages with nesting not supported by Fluent. In the FTL, these have each been split up into multiple messages using a custom migration transform (included directly in the script). This allows for localisers to work with the messages without HTML syntax, but does require the messages' structures to be maintained elsewhere. To that effect, the JS file represents messages as arrays of `[tagName, l10nId, l10nArgs]` tuples from which it builds the messages' elements. This fixex bug 1621895.

Though extensive, the refactoring done here is for the most part limited to what's required by the Fluent migration. For instance, not all issues raised in bug 1722896 are resolved here. Places where the structure was sufficiently messy to have introduced bugs or dead code have been cleaned up a bit, though.

This variant of netError that's used by the browser is not itself overridden by anyone else, which allows for it to be tackled first and independently of the docshell and mobile variants. As a part of its content is still passed in as a query parameter, it's possible that later refactors of the rest of the netError system will allow for further clean-up here.

Differential Revision: https://phabricator.services.mozilla.com/D155951
2022-10-07 18:40:27 +00:00
Niklas Baumgardner
c4c77671ea Bug 1793888 - Removed screenshots pref from known problematic prefs. r=sfoster,mconley
Differential Revision: https://phabricator.services.mozilla.com/D158783
2022-10-06 20:42:12 +00:00
Dana Keeler
8bf7f9c47f Bug 1792136 - remove redundant WindowGlobalActors.getSecurityInfo() API r=nika
This API is only used in the page info dialog, where it is almost always
redundant with nsISecureBrowserUI.secInfo.

The one case where nsISecureBrowserUI.secInfo differs is when a site's
certificate did not validate successfully. Previously, the page info dialog
would show certificate information about a connection as if it had succeeded.
This is misleading, and in any case that information is available in the
certificate error page.

This also fixes situations where the previous API would erroneously show secure
connections as if no certificate had been presented.

Differential Revision: https://phabricator.services.mozilla.com/D158605
2022-10-06 15:17:05 +00:00
Alexandre Poirot
a3b72117bf Bug 1793575 - [devtools] Convert jsdebugger.jsm to jsdebugger.sys.mjs. r=Honza,webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D158571
2022-10-06 14:21:22 +00:00
Niklas Baumgardner
9559227be6 Bug 1790855 - Enable screenshots button on about pages when screenshots component is enabled. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D157355
2022-10-04 13:23:19 +00:00
William Durand
88081727c8 Bug 1788994 - Fix test cases when the unifiedExtensions pref is enabled by default. r=rpl,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D157185
2022-10-04 08:45:57 +00:00
Julian Descottes
1452c80ec5 Bug 1793260 - Fix wrong rename of PerTestCoverageUtils in browser_all_files_referenced.js r=whimboo
I incorrectly updated the extension for this JSM when migrating marionette JSMs.
This one is just an alias, not a real remote JSM.

Differential Revision: https://phabricator.services.mozilla.com/D158440
2022-10-04 08:18:36 +00:00
stransky
7908073525 Bug 1784869 [Linux] Allow call PCompositorBridge::Msg_Resume before first paint on Linux r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D158199
2022-10-03 11:24:31 +00:00
Julian Descottes
a5d45be31c Bug 1790471 - [marionette] Convert /remote/marionette JSM modules to ESM r=webdriver-reviewers,whimboo
Depends on D158295

Differential Revision: https://phabricator.services.mozilla.com/D158296
2022-09-30 11:08:08 +00:00
Julian Descottes
6f7e347cec Bug 1790468 - [remote] Convert /remote/shared JSM modules to ESM r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D158293
2022-09-30 11:08:06 +00:00
Emilio Cobos Álvarez
d55a5fb96c Bug 1792748 - Persist sidebar style attribute rather than width attribute. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D158291
2022-09-30 09:41:32 +00:00
Mark Banner
a49b8ef78f Bug 1792365 - Convert toolkit/modules consumers to use ES module imports directly. r=webdriver-reviewers,perftest-reviewers,geckoview-reviewers,extension-reviewers,preferences-reviewers,desktop-theme-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,robwu,Gijs,sgalich,bytesized,AlexandruIonescu,dao,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D158094
2022-09-29 06:52:34 +00:00
Mark Banner
94440c5a3a Bug 1792365 - Convert various toolkit/modules files to system ES modules. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D158093
2022-09-29 06:52:33 +00:00
Paul Zuehlcke
0b08cdf9e2 Bug 1790100 - Add CookieBannerChild.jsm to browser_startup_content test exception list. r=timhuang,perftest-reviewers,AlexandruIonescu
Depends on D158078

Differential Revision: https://phabricator.services.mozilla.com/D158079
2022-09-28 17:06:40 +00:00
Mark Banner
c34ea601d2 Bug 1634555 - Send event telemetry for search default engine changes. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D157471
2022-09-28 09:40:36 +00:00
Paul Zuehlcke
e7cfc2f19d Bug 1792428 - Remove telemetry probe 'privacy.dfpi_rollout_tcpByDefault_feature'. r=anti-tracking-reviewers,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D158168
2022-09-28 02:33:39 +00:00
Emilio Cobos Álvarez
4ab80589c9 Bug 1689816 - Implement <tabpanels> and <deck> without XUL layout. r=Gijs,Jamie,morgan,preferences-reviewers,mconley,TYLin
Gijs for front-end bits, layout for the new CSS properties and the
removal of nsDeckFrame / nsStackLayout, Jamie and Morgan for the a11y
changes.

As discussed in the bug, the main tricky part here is handling a11y
correctly. For <deck>, that's trivial (just use `visibility: hidden` to
hide the panels visually, while removing the unselected panels from the
a11y tree).

For <tabpanels> however we need to do something special. We do want to
hide stuff visually, but we want to preserve the contents in the a11y
tree.

For that, the easiest fix is introducing a new privileged CSS property
(-moz-subtree-hidden-only-visually), which takes care of not painting
the frame, but marks stuff offscreen in the accessibility tree. This is
not intended to be a property used widely.

Other than that, the changes are relatively straight-forward, though
some of the accessible/mac changes I could get a sanity-check on.

Differential Revision: https://phabricator.services.mozilla.com/D157875
2022-09-27 04:18:16 +00:00
samihda
63d2fa45e5 Bug 1791439 - Reuse overflowTabs test function. r=tgiles
Differential Revision: https://phabricator.services.mozilla.com/D158090
2022-09-26 20:52:55 +00:00
Marian-Vasile Laza
338fc0a451 Backed out changeset 2f74f8f2ed19 (bug 1689816) for causing reftest failures on skip-ink-multiline-position.html. 2022-09-26 23:24:03 +03:00
Emilio Cobos Álvarez
ba878e30c1 Bug 1689816 - Implement <tabpanels> and <deck> without XUL layout. r=Gijs,Jamie,morgan,preferences-reviewers,mconley,TYLin
Gijs for front-end bits, layout for the new CSS properties and the
removal of nsDeckFrame / nsStackLayout, Jamie and Morgan for the a11y
changes.

As discussed in the bug, the main tricky part here is handling a11y
correctly. For <deck>, that's trivial (just use `visibility: hidden` to
hide the panels visually, while removing the unselected panels from the
a11y tree).

For <tabpanels> however we need to do something special. We do want to
hide stuff visually, but we want to preserve the contents in the a11y
tree.

For that, the easiest fix is introducing a new privileged CSS property
(-moz-subtree-hidden-only-visually), which takes care of not painting
the frame, but marks stuff offscreen in the accessibility tree. This is
not intended to be a property used widely.

Other than that, the changes are relatively straight-forward, though
some of the accessible/mac changes I could get a sanity-check on.

Differential Revision: https://phabricator.services.mozilla.com/D157875
2022-09-26 17:40:30 +00:00
Mathew Hodson
f84488ba91 Bug 1776578 - Replace init tasks with add_setup in mochitests. r=application-update-reviewers,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D149486
2022-09-26 13:58:49 +00:00
Emilio Cobos Álvarez
11f34416e8 Bug 1791972 - Simplify dialog stack and rdm styles. r=Gijs,devtools-reviewers,jdescottes
.browserContainer is relatively positioned, so we can position the
tab-modal dialogs absolutely inside it instead of making them part of
the browser stack.

While at it, make the rdm toolbar part of the regular browserContainer,
just like the regular devtools toolbox is. That way there's no need to
do ResizeObserver shenanigans to be able to let it grow. Keep it also
absolutely positioned tho, because we need to overlay the whole
container when the device modal is opened. That's somewhat gross.

This should in general be simpler to understand than the current set-up,
and more performant to since it avoids the dialog stack from forming
part of the browser element's flow.

Differential Revision: https://phabricator.services.mozilla.com/D157912
2022-09-23 22:23:37 +00:00
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
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
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
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
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
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
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
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
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
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
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