Commit Graph

33509 Commits

Author SHA1 Message Date
Hanna Jones
bc09027cd8 Bug 1791474 - show more specific message for locked primary password error r=sfoster,fluent-reviewers
* Updated the error message to use the text [here](https://www.figma.com/file/SE4xHgOW84yLiv7vFugm9R/Firefox-View-Stepping-Stone)
* Updated the existing password test to verify the message contents

Differential Revision: https://phabricator.services.mozilla.com/D159787
2022-10-24 18:29:53 +00:00
Emilio Cobos Álvarez
8ab75b80ef Bug 1797052 - Improve behavior of customize mode in small windows. r=Gijs
There was only a min-height: 0 missing. I also cleaned-up a bit because
flex: 1 is the same as flex: 1 1 auto, and flex attribute (which only
sets -moz-box-flex) is not doing anything because it was inside flex
layout (so legacy properties aren't looked at).

Differential Revision: https://phabricator.services.mozilla.com/D160094
2022-10-24 18:26:26 +00:00
Simon Friedberger
b711818491 Bug 1791394 - Add DAP frontend which handles sending/receiving of data. r=chutten,mconley
Differential Revision: https://phabricator.services.mozilla.com/D157752
2022-10-24 17:56:13 +00:00
Emily McMinn
7f463520d0 Bug 1790490 - Added alt tag div & strings for MR onboarding images r=mviar,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D159770
2022-10-24 17:50:06 +00:00
Marian-Vasile Laza
593a27e0c4 Backed out changeset 5da81833a114 (bug 1754772) for causing bc failures on browser_Troubleshoot.js. CLOSED TREE 2022-10-24 18:59:03 +03:00
Jonathan Sudiaman
57d134b77a Bug 1754772 - Add a button to get Places database stats to about:support r=mak,fluent-reviewers
Incorporates the "Places Database Statistics" table from `chrome://browser/content/places/interactionsViewer.html` into the `about:support` page, under the existing "Places Database" table. The table is hidden by default, and it can be toggled on/off using a button. Table contents will always be part of the "Copy text to clipboard" export, regardless of visibility.

Try Job: https://treeherder.mozilla.org/jobs?revision=923a9df8c477f6e2b1f0a2fee3b0291ddbdd32e3&repo=try

Initial state:
{F4177493}

After clicking "Show Statistics":
{F4177495}

Text export:
{F4177496}

Differential Revision: https://phabricator.services.mozilla.com/D158200
2022-10-24 15:19:50 +00:00
Jonathan Sudiaman
e191b258ec Bug 1741028 - Deleting bookmark from tag view doesn't delete bookmark, deletes tag instead (Context menu option is misleading) r=mak,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D159403
2022-10-24 15:10:20 +00:00
Marian-Vasile Laza
22a37b6925 Backed out changeset caddc49839d3 (bug 1793088) for causing bc failures on browser_firefoxview_tab.js. CLOSED TREE 2022-10-24 17:49:47 +03:00
trickypr
4b9c23b007 Bug 1510561 - Part 7: Apply plugin:mozilla/require-jsdoc to browser/components/urlbar. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D159472
2022-10-24 13:32:38 +00:00
trickypr
f28fa5aa80 Bug 1510561 - Part 6: Apply plugin:mozilla/valid-jsdoc to browser/components/urlbar. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D159471
2022-10-24 13:32:37 +00:00
trickypr
ed1b5fe3ae Bug 1510561 - Part 5: Apply plugin:mozilla/require-jsdoc to browser/components/search. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D159470
2022-10-24 13:32:37 +00:00
trickypr
beac0753a6 Bug 1510561 - Part 4: Apply plugin:mozilla/valid-jsdoc to browser/components/search. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D159469
2022-10-24 13:32:36 +00:00
trickypr
fd6c774999 Bug 1510561 - Part 3: Apply plugin:mozilla/require-jsdoc to browser/components/places. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D159468
2022-10-24 13:32:36 +00:00
Kelly Cochrane
3305772c50 Bug 1793088 - Make first available tab focusable when Fx View is open r=dao
Differential Revision: https://phabricator.services.mozilla.com/D159766
2022-10-24 12:32:44 +00:00
Cosmin Sabou
6c2dad886b Bug 1682752 - Disable browser_876926_customize_mode_wrapping.js on linux opt for frequent failures. r=intermittent-reviewers,MasterWayZ DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D159981
2022-10-23 23:34:16 +00:00
Tomislav Jovanovic
586bffe470 Bug 1793629 - Implement attention indicator for the unified extensions button, r=willdurand
Differential Revision: https://phabricator.services.mozilla.com/D158938
2022-10-22 17:21:58 +00:00
Emilio Cobos Álvarez
f1aec2f463 Bug 1796735 - Remove XULPopupElement.autoPosition. r=dao
This was used to prevent reflows due to popuppositioned events during
view transitions.

The previous patch should've prevented the popuppositioned events to
begin with, plus we no longer use arrows that need positioning etc,
which means we shouldn't be triggering the reflows anyways.

Since this is the only consumer of autoPosition = true/false, we can
remove the code supporting it. It's a bit bogus as per the commit
message of the previous patch and, while fixable, it doesn't seem worth
fixing if we can just get rid of it.

Depends on D159936

Differential Revision: https://phabricator.services.mozilla.com/D159937
2022-10-21 13:13:54 +00:00
Emilio Cobos Álvarez
ca1a37b75f Bug 1796735 - Use getBoundsWithoutFlushing rather than getOuterScreenRect to lock the size of the panel. r=dao
getOuterScreenRect doesn't flush layout, so not flushing here should be
fine.

We only care about the CSS width / height, not about the screen
positioning, so this is more accurate.

The flickering in comment 8 (the hover effect in the "restore previous
session" button) happens because the following set of events:

 * We try to lock the size of the panel.
 * The size returned by getOuterScreenRect() is fractionally different
   to the actual size.
 * We get to [1], realize we've changed size (even though fractionally),
   set the origin at 0, 0, and then call SetPopupPosition to fix that
   up.
 * But we've disabled autopositioning[1], so the layout position of the
   panel remains at 0, 0.

This prevents the flickering by using the actual layout size
(getBoundsWithoutFlushing / getBoundingClientRect) rather than the
potentially-rounded getOuterScreenRect, to prevent the resize.

We could fix autoPosition = false, but I don't think it's needed
anymore, so I'm going to try removing it instead. However this change
should still avoid work, so seems worth landing regardless.

[1]: https://searchfox.org/mozilla-central/rev/c5c002f81f08a73e04868e0c2bf0eb113f200b03/layout/xul/nsMenuPopupFrame.cpp#621-626
[2]: https://searchfox.org/mozilla-central/rev/c5c002f81f08a73e04868e0c2bf0eb113f200b03/browser/components/customizableui/PanelMultiView.jsm#668

Depends on D159935

Differential Revision: https://phabricator.services.mozilla.com/D159936
2022-10-21 13:02:06 +00:00
Emilio Cobos Álvarez
5d9735877d Bug 1796735 - Don't use width/height attributes for panel sizing. r=dao
While these work now because I haven't ported popups to modern flexbox,
let's remove usage of these attributes so I don't have to later. This
doesn't change behavior.

Depends on D159934

Differential Revision: https://phabricator.services.mozilla.com/D159935
2022-10-21 13:01:51 +00:00
Emilio Cobos Álvarez
5a21eb2144 Bug 1796735 - Remove useless flex attributes from panelviews. r=dao
These are probably copy-pasta. All panelviews flex because of:

  https://searchfox.org/mozilla-central/rev/c5c002f81f08a73e04868e0c2bf0eb113f200b03/browser/themes/shared/customizableui/panelUI-shared.css#135

Differential Revision: https://phabricator.services.mozilla.com/D159933
2022-10-21 12:52:12 +00:00
Shane Hughes
5b46d59bec Bug 1790660 - Improve MR onboarding progress bar contrast. r=pdahiya,ayeddi
Differential Revision: https://phabricator.services.mozilla.com/D159055
2022-10-21 07:54:03 +00:00
Drew Willcoxon
1405e55fe8 Bug 1796202 - Make Firefox Suggest wait for TelemetryEnvironment initialization before updating the scenario prefs. r=daisuke,chutten
This reverts the fix to bug 1731373 and instead makes Firefox Suggest wait for
TelemetryEnvironment to finish initializing before it starts to update its
preferences. That's what I should have done in the first place, no need for an
observer notification or for TelemetryEnvironment to have to know any details
about Suggest prefs.

This fixes the bug (bug 1796202) and should also avoid the problem for any other
Suggest prefs we add to TelemetryEnvironment in the future.

Differential Revision: https://phabricator.services.mozilla.com/D159820
2022-10-20 22:22:07 +00:00
Niklas Baumgardner
c19d5f3962 Bug 1785734 - Add test for keyboard focus in Firefox View. r=sfoster,ayeddi,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D155253
2022-10-20 18:57:30 +00:00
Mike Conley
7f961f53a7 Bug 1796275 - about:pocket pages should load in the privileged about content process. r=thecount,nika
Differential Revision: https://phabricator.services.mozilla.com/D159786
2022-10-20 16:17:38 +00:00
Noemi Erli
55e26cd909 Backed out changeset 0a1431ca8979 (bug 1793088) for causing failures browser_firefoxview_tab.js CLOSED TREE 2022-10-20 18:53:41 +03:00
Emilio Cobos Álvarez
121f6962a3 Bug 1793359 - Simplify bookmarks popup placement. r=Itiel,dao,mak
By using delegatesanchor="true", we delegate the anchor node to the
first in-flow box (that is the icon), simplifying a lot of the
hard-coded margins in the CSS.

Do that, plus make menupopup[type="arrow"] work consistently, to
simplify the styling of the bookmarks popup a bit.

Differential Revision: https://phabricator.services.mozilla.com/D158569
2022-10-20 15:50:23 +00:00
Kelly Cochrane
1c701caf06 Bug 1793088 - Make first available tab focusable when Fx View is open r=dao
Differential Revision: https://phabricator.services.mozilla.com/D159766
2022-10-20 14:43:31 +00:00
Emilio Cobos Álvarez
2bb0c138c8 Bug 1796179 - Use height rather than XUL attributes for edit bookmark popup's folder tree. r=mstriemer,dao
Differential Revision: https://phabricator.services.mozilla.com/D159720
2022-10-20 13:18:28 +00:00
Emilio Cobos Álvarez
09c17c6025 Bug 1779695 - Unify editBookmark.css. r=dao
And move the rule in the previous patch from places.css to there.

Differential Revision: https://phabricator.services.mozilla.com/D159704
2022-10-20 12:04:10 +00:00
Emilio Cobos Álvarez
827f63b8a4 Bug 1779695 - Use modern flex on in-content pages. r=Gijs,dao,preferences-reviewers
This fixes the edit bookmarks dialog by properly allowing stuff to wrap once
the dialog width has been fixed.

Let's try to do this and opt-out any specific pages that may hit issues,
rather than opting-in one by one, now that's early in the cycle?

Differential Revision: https://phabricator.services.mozilla.com/D159690
2022-10-20 08:36:24 +00:00
Emilio Cobos Álvarez
a354c85b02 Bug 1796199 - Remove script access to XUL layout attributes. r=Gijs
These don't work on emulated flexbox. We only have a couple of uses.

See D159726 for the diagnostic patch I used to catch these.

Differential Revision: https://phabricator.services.mozilla.com/D159727
2022-10-20 08:36:00 +00:00
Norisz Fay
75b81f05b6 Backed out 4 changesets (bug 1791018, bug 1791394) for causing xpcshell failures on test_dap.js CLOSED TREE
Backed out changeset b177970803d5 (bug 1791394)
Backed out changeset f41291f1fa37 (bug 1791018)
Backed out changeset 52ba173b1c2f (bug 1791018)
Backed out changeset e0ebc68e7d18 (bug 1791018)
2022-10-20 07:33:41 +03:00
Simon Friedberger
b3a35965fc Bug 1791394 - Add DAP frontend which handles sending/receiving of data. r=chutten,mconley
Differential Revision: https://phabricator.services.mozilla.com/D157752
2022-10-19 21:42:45 +00:00
Mark Striemer
3b6beb22b1 Bug 1796244 - Don't update package-lock.json in ./mach storybook install r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D159767
2022-10-19 21:24:58 +00:00
Mark Striemer
9ee89eba69 Bug 1796151 - Only bundle files that end with .ftl in storybook's fluent r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D159706
2022-10-19 20:58:27 +00:00
BryanMacoy
62558d8fd6 Bug 1790226 - Convert ContextMenu JSM modules to ESMs. r=mconley.
Differential Revision: https://phabricator.services.mozilla.com/D157041
2022-10-19 20:21:12 +00:00
mleclair
012c4866f3 Bug 1741955: allow value set through about:config for trr mode to precede about:pref r=kershaw,pbz
Differential Revision: https://phabricator.services.mozilla.com/D159369
2022-10-19 20:06:30 +00:00
Butkovits Atila
82536ebfc5 Backed out changeset 39f39360ae48 (bug 1796199) for causing failures at test_panel.xhtml. CLOSED TREE 2022-10-20 00:39:56 +03:00
Gijs Kruitbosch
49893169f5 Bug 1787980 - add a pref for the firefox view tab notification dot and disable it by default, r=niklas
I opted to add a pref and effectively disable things by default rather than
just removing everything, because it seems likely we'll want to re-introduce
this in some form at some point soon, plus this is a much smaller change to
uplift and keeps the test coverage for now, too.

Differential Revision: https://phabricator.services.mozilla.com/D159707
2022-10-19 19:35:57 +00:00
Emilio Cobos Álvarez
5d4865adb2 Bug 1796199 - Remove script access to XUL layout attributes. r=Gijs
These don't work on emulated flexbox. We only have a couple of uses.

See D159726 for the diagnostic patch I used to catch these.

Differential Revision: https://phabricator.services.mozilla.com/D159727
2022-10-19 19:18:04 +00:00
Mike Conley
38730598bb Bug 1795188 - Migrate all uriloader/exthandler JSMs to ESMs. r=kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D159345
2022-10-19 18:34:02 +00:00
Norisz Fay
5909712bf8 Backed out changeset c828a3491696 (bug 1779695) for causing bc failures on browser_connection_dnsoverhttps.js CLOSED TREE 2022-10-19 23:18:35 +03:00
scott
391ec6f20b Bug 1795333 - Pocket newtab adding spoc site id to nimbus variables. r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D159413
2022-10-19 18:12:49 +00:00
Emilio Cobos Álvarez
30bf1aec41 Bug 1779695 - Use modern flex on in-content pages. r=Gijs,dao
This fixes the edit bookmarks dialog by properly allowing stuff to wrap once
the dialog width has been fixed.

Let's try to do this and opt-out any specific pages that may hit issues,
rather than opting-in one by one, now that's early in the cycle?

Differential Revision: https://phabricator.services.mozilla.com/D159690
2022-10-19 17:45:11 +00:00
Gijs Kruitbosch
450ac5ac39 Bug 1794757 - autoplay dialog should wait for translation to finish before showing and determining size to avoid buttons being cut off, r=kpatenio
The sitePermissions code is reused, and all dialogs work OK except the autoplay one.
This is because the autoplay code adds extra content not present in the other
dialogs, and localizes it.
The SubDialog code relies on determining the size of the dialog once the
mozSubDialogReady promise resolves, which it does before fluent puts in l10n data
for the content that was just added. This patch fixes that.

It also, as a driveby, correctly pauses and resumes observing l10n attributes
in the doc when making modifications, to avoid fluent doing a second pass for
the same content.

Differential Revision: https://phabricator.services.mozilla.com/D159543
2022-10-19 14:59:22 +00:00
Mike Conley
810d9bf588 Bug 1795780 - Add the ability to disable a browser migrator at runtime via a pref. r=NeilDeakin,Gijs
It seems that at build time, we already make decisions about what migrators we register
with XPCOM in browser/components/migration/components.conf. This doesn't, however, give
us the ability to turn off a migrator that happens to be misbehaving, nor make it easy
for us to do development of a new migrator without exposing it to the migration dialog
(without doing binary recompiles).

This adds another layer to the enable-ment of our migrators so that they must both
be registered AND enabled in order to appear in the import dialog.

Differential Revision: https://phabricator.services.mozilla.com/D159544
2022-10-19 14:48:46 +00:00
Ben Hearsum
f59763a8d2 Bug 1792163: Private window does not use private icon on taskbar when opening a link from "private" Library into a new private window r=mak
Differential Revision: https://phabricator.services.mozilla.com/D158149
2022-10-19 13:24:08 +00:00
William Durand
7382b32c34 Bug 1795285 - Remove skip-if = condprof on test_ext_manifest.js. r=robwu
That was introduced in Bug 1793925 to workaround a pre-existing issue.

Differential Revision: https://phabricator.services.mozilla.com/D159663
2022-10-19 13:10:12 +00:00
stransky
a7d1331615 Bug 1791529 Ignore empty elements when drop target indicator position is calculated r=emilio
On Wayland drop target position can be a negative value. Drop target area can contain empty elements located at 0,0 with zero size.
If we hit such combination the drop element is placed at 0,0 and we don't consider other valid elements located at negative positions.
That leads to incorrect drop target indicatop placement; it's located at 0,0 coordinates.

In this patch we ignore empty elements and iterate through valid ones only so we correctly place drop indicator even when screen coordinates are negative.

Differential Revision: https://phabricator.services.mozilla.com/D159698
2022-10-19 12:49:37 +00:00
Emilio Cobos Álvarez
8eb4bd796d Bug 1795944 - Remove descriptionheightworkaround. r=Gijs
Stuff wraps properly now with flexbox emulation.

Differential Revision: https://phabricator.services.mozilla.com/D159621
2022-10-19 11:55:29 +00:00