Commit Graph

224 Commits

Author SHA1 Message Date
Emilio Cobos Álvarez
abab9b2db7 Bug 1788273 - Tweak popup alignment so that it looks good on mirrored wayland popups. r=dao,mak
When these panels had arrows, I guess the bottomcenter topleft alignment
made sense so that you could precisely align the arrow, but that's not
what we do now.

Don't use bottomcenter / leftcenter / rightcenter, since we really want
the sides to align.

This shouldn't change behavior on any platform except Linux + Wayland,
where the alignment looks good now in the case of bug 1784876.

Differential Revision: https://phabricator.services.mozilla.com/D156099
2022-09-02 20:26:29 +00:00
Butkovits Atila
e4a4a23311 Backed out changeset 368a7ce1b104 (bug 1788273) for causing failures at browser_recently_closed_tabs.js. CLOSED TREE 2022-09-02 16:35:55 +03:00
Emilio Cobos Álvarez
72c00adfaa Bug 1788273 - Tweak popup alignment so that it looks good on mirrored wayland popups. r=dao,mak
When these panels had arrows, I guess the bottomcenter topleft alignment
made sense so that you could precisely align the arrow, but that's not
what we do now.

Don't use bottomcenter / leftcenter / rightcenter, since we really want
the sides to align.

This shouldn't change behavior on any platform except Linux + Wayland,
where the alignment looks good now in the case of bug 1784876.

Differential Revision: https://phabricator.services.mozilla.com/D156099
2022-09-02 11:18:54 +00:00
Emilio Cobos Álvarez
2c1499dce8 Bug 1782185 - Fix a typo introduced in bug 1765083. r=Gijs
I confirmed it's the only one, whoops.

Differential Revision: https://phabricator.services.mozilla.com/D153152
2022-07-29 09:52:38 +00:00
Mark Banner
d026f430f6 Bug 1779982 - Migrate places consumers to use ESM imports directly. r=mak,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D152005
2022-07-20 22:34:21 +00:00
smolnar
ee079d37e2 Backed out 8 changesets (bug 1779982, bug 1780017, bug 1780347) for causing doc generate failures. CLOSED TREE
Backed out changeset 3f22c0f99cf1 (bug 1780347)
Backed out changeset 6f20b7e4b21b (bug 1780017)
Backed out changeset ae6062c69aeb (bug 1780017)
Backed out changeset e668d7778d97 (bug 1780017)
Backed out changeset e158fc41594b (bug 1780017)
Backed out changeset d4c69c956271 (bug 1779982)
Backed out changeset 145212fd826d (bug 1779982)
Backed out changeset 54079aaa1857 (bug 1779982)
2022-07-20 22:43:53 +03:00
Mark Banner
8715b062f5 Bug 1779982 - Migrate places consumers to use ESM imports directly. r=mak,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D152005
2022-07-20 15:50:40 +00:00
Iulian Moraru
bc13570de5 Backed out 7 changesets (bug 1779982, bug 1780017) for causing multiple failures. CLOSED TREE
Backed out changeset f33a58aa2f3f (bug 1780017)
Backed out changeset e21c85d61b91 (bug 1780017)
Backed out changeset 213ee5578e7c (bug 1780017)
Backed out changeset ea9b3bf42ea1 (bug 1780017)
Backed out changeset d2d8530f3c4d (bug 1779982)
Backed out changeset 088e5148c307 (bug 1779982)
Backed out changeset 267e08f3868a (bug 1779982)
2022-07-20 15:44:53 +03:00
Mark Banner
2bd76952c1 Bug 1779982 - Migrate places consumers to use ESM imports directly. r=mak,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D152005
2022-07-20 10:36:49 +00:00
ui.sayuree
af637533ab Bug 1777147 - remove DownloadsSubview module reference. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D151862
2022-07-15 14:28:08 +00:00
Tooru Fujisawa
328d63ce7f Bug 1777486 - Part 2: Migrate XPCOMUtils.jsm consumers with automatic migration. r=webdriver-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,kmag,owlish,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D151214
2022-07-12 04:21:34 +00:00
Emilio Cobos Álvarez
aa13814e76 Bug 1765083 - Introduce FocusOptions.focusVisible. r=smaug,pip-reviewers
As per:

 * https://github.com/whatwg/html/issues/7830
 * https://github.com/whatwg/html/pull/8087

Replace the internal preventFocusRing with the new flag.

Differential Revision: https://phabricator.services.mozilla.com/D151326
2022-07-11 22:04:34 +00:00
Andreea Pavel
f009ba2983 Backed out 11 changesets (Bug 1777486) for failing bc at browser_startup.js on a CLOSED TREE
Backed out changeset b6c4c386f1a6 (Bug 1777486)
Backed out changeset 195cc2de8433 (Bug 1777486)
Backed out changeset 20c746fb1648 (Bug 1777486)
Backed out changeset d5fd8173d62d (Bug 1777486)
Backed out changeset 6d758fab5a3e (Bug 1777486)
Backed out changeset e938b601ba15 (Bug 1777486)
Backed out changeset 0c4ea0b9416b (Bug 1777486)
Backed out changeset 0559c53cc668 (Bug 1777486)
Backed out changeset eea573d3a9f9 (Bug 1777486)
Backed out changeset 9ce3a6496a49 (bug 1777486)
Backed out changeset b0867652fc48 (bug 1777486)
2022-07-11 22:24:40 +03:00
Tooru Fujisawa
bf0a8b781b Bug 1777486 - Part 2: Migrate XPCOMUtils.jsm consumers with automatic migration. r=webdriver-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,kmag,owlish,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D151214
2022-07-11 15:09:13 +00:00
Tooru Fujisawa
48c568867c Bug 1667455 - Part 5: Stop importing Services.jsm from chrome-priv JS code, top-level single-line cases. r=kmag,webdriver-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,extension-reviewers,application-update-reviewers,pip-reviewers,twisniewski,m_kato,jdescottes,mconley,AlexandruIonescu,mossop
Differential Revision: https://phabricator.services.mozilla.com/D150894
2022-07-11 12:41:50 +00:00
Marco Bonardo
bad91c5c45 Bug 1765140 - Wrong item is being removed/unblocked in the downloads panel. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D144157
2022-04-21 14:19:07 +00:00
Dão Gottwald
02220ad0fd Bug 1762723 - Use proper dragstart event targets in the download panel. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D142865
2022-04-05 13:21:09 +00:00
Dão Gottwald
f7372f4e9d Bug 1758294 - Download panel context menu acts on the first item in the list instead of the one clicked on. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D142060
2022-03-25 19:04:04 +00:00
Shane Hughes
b2e8360ad3 Bug 1755570 - Add download deleted state to UI. r=Gijs
Add a new property to downloads such that downloaded files deleted from within
Firefox (currently just by the context menu item) are marked "File deleted"
instead of "File moved or missing" (this adds a new translation). Also refactor
downloadsCmd_deleteFile and downloadsCmd_cancel to clean up some related issues.
Add a new download history metadata property so that Firefox can persist this
"File deleted" state between sessions.

This should resolve bug 1755570 as well as bug 1755728. Bug 1755729 is a
separate issue, more like an enhancement, because missing/moved downloads have
never allowed resume/retry. They couldn't be resumed as they were stopped, not
paused. They could conceivably be retried but this would be adding a whole lot
of new core download logic, since the target and saver are in a very different
state for a stopped download with a deleted file than what they'd be if the
download was merely canceled.

So, this patch won't give the user an opportunity to resume/retry deleted
downloads. Previously we had a problem where we made it look like you could
retry a download if you used the "delete file" command while the download was in
progress. This patch will make sure that using the "delete file" command
actually finalizes the download. So it will just fix the immediate problem where
some menuitems and buttons simply don't work in edge cases. A later patch can
implement a new affordance that will allow "retrying" downloads that were
already downloaded/interrupted and deleted, whether from within Firefox or not.

Differential Revision: https://phabricator.services.mozilla.com/D139356
2022-03-16 22:10:18 +00:00
Dão Gottwald
9d5d922987 Bug 1756113 - Bring focus styling in the download panel in line with other panels. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D139323
2022-03-01 15:15:29 +00:00
Neil Deakin
54f0b18e4a Bug 1751014, show keyboard indicator by default when opening the download panel with the keyboard, r=mak
Differential Revision: https://phabricator.services.mozilla.com/D136811
2022-01-31 20:41:47 +00:00
Gijs Kruitbosch
493547f63d Bug 1732129 - don't allow customize mode to permanently break the downloads button in a window, r=mhowell
Both for minimized windows and if there is no anchor, we bail out from showing the panel.
However, only one of those cases currently resets the internal state flag to 'hidden'.
This patch ensures both cases do so, and for good measure ensures that if openPopup
throws (which apparently it can?) we also reset the state in that case, rather than
leaving ourselves with a permanently broken state.

Differential Revision: https://phabricator.services.mozilla.com/D136809
2022-01-25 17:08:59 +00:00
Shane Hughes
e85e908b7d Bug 1749784 - Overhaul DownloadsIndicatorDataCtor to track each download's attention state individually. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D135857
2022-01-21 10:49:43 +00:00
Shane Hughes
f003281461 Bug 1723712 - Disable downloads context menu items when inapplicable. r=Gijs
The "Go To Download Page" menuitem in the downloads panel context menu
currently is always visible, even if the download is missing referrer
info. A download source should ideally always have referrer info,
but it's worth having a fallback so user doesn't see failures.
This patch also adds hiding for the "Copy Location" menuitem in the
unlikely event that a download is lacking a source or the source is
somehow lacking a URL. It implements a test to confirm hiding works.
I checked other downloads panel context menu tests to make sure they
aren't broken by the menuitems potentially being hidden.
This shouldn't close Bug 1723712 since we should ensure all downloads
have referrer info. This is just a stopgap in the meantime.

Differential Revision: https://phabricator.services.mozilla.com/D136457
2022-01-21 10:47:08 +00:00
Gijs Kruitbosch
2c6b368a9c Bug 1749028, r=dveditz,kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D135398
2022-01-13 00:01:14 +00:00
Cristian Tuns
3bd242b7ec Backed out changeset b1d00f32893d (bug 1749028) for causing mochitest failures on test_expandable.xhtml CLOSED TREE 2022-01-12 09:01:36 -05:00
Gijs Kruitbosch
860d33e346 Bug 1749028, r=dveditz,kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D135398
2022-01-12 12:40:20 +00:00
Shane Hughes
148a7d5fa5 Bug 1745624 - Add "Delete" menuitem to downloads panel context menu. r=Gijs,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D135188
2022-01-12 11:07:44 +00:00
Neil Deakin
2449372add Bug 1742530, support key and tab navigation within the downloads panel list, r=mak,desktop-theme-reviewers,dao
Cursor up and down navigate between items and the footer, and tab navigates between the list itself, the button for the selected item, and the footer

Differential Revision: https://phabricator.services.mozilla.com/D133433
2021-12-23 17:24:08 +00:00
Katherine Patenio
ed0b6f975d Bug 1743226 - improve downloads user experience r=mhowell,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D133805
2021-12-21 16:58:35 +00:00
Molly Howell
de8bdb4b40 Bug 1741441 - When the download panel is opened, focus the first item. r=Gijs
As suggested by :jamie, this patch causes focus to move to the item at the top of the list whenever the download panel is shown. In the event that the download panel is opened automatically because a new download has been started, this will have the effect of always bringing the new download directly to the attention of accessibility tools (because the panel itself also receives focus).

Differential Revision: https://phabricator.services.mozilla.com/D133160
2021-12-14 17:48:06 +00:00
Micah Tigley
d3f7dd0517 Bug 1739145 - Create the DownloadSpamProtection module when needed. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D132178
2021-11-26 22:58:01 +00:00
Butkovits Atila
b29a00171e Backed out changeset 0b1c2e4169ab (bug 1739145) for causing failures at browser_download_spam_protection.js. CLOSED TREE 2021-11-26 19:10:38 +02:00
Micah Tigley
31a8b06dc7 Bug 1739145 - Create the DownloadSpamProtection module when needed. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D132178
2021-11-26 16:35:11 +00:00
Ava Katushka ava8katushka
69c0056122 Bug 1725354 - Download panel shows blocked download item. r=mtigley,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D123943
2021-11-23 17:13:39 +00:00
Narcis Beleuzu
b8863df7b0 Backed out changeset a9a15832f816 (bug 1725354) for bc failures on browser_download_privatebrowsing.js 2021-11-05 23:22:42 +02:00
Ava Katushka ava8katushka
cc523e31bb Bug 1725354 - Download panel shows blocked download item. r=mtigley,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D123943
2021-11-05 20:12:43 +00:00
Cristian Tuns
a4c3a9bab0 Backed out changeset b855af57f71a (bug 1725354) for causing mochitest failures on test_third_party_iframes.html CLOSED TREE 2021-11-03 12:45:48 -04:00
Ava Katushka ava8katushka
3ed44717ab Bug 1725354 - Download panel shows blocked download item. r=mtigley,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D123943
2021-11-03 15:31:13 +00:00
Katherine Patenio
78d2b57bcc Bug 1731086 - Add a new context menu item for setting the mimetype entry from about:preferences. r=mtigley,fluent-reviewers,jaws,flod
Differential Revision: https://phabricator.services.mozilla.com/D127592
2021-10-21 16:28:42 +00:00
Gijs Kruitbosch
4d8cc3825a Bug 1715001 - rehash downloads markup and tighten up spacing inside downloads item, r=mhowell
This addresses a few things:

- it doesn't really make sense to have 2 different badge implementations
  for the library and the panel. Just use the panel one for the library.
- remove the old badge itself
- remove a bunch of old CSS to do with the old badge
- rename the 'new' badge now it isn't new anymore
- share the badge styling between the 'all downloads' view (about:downloads
  and the library) and the downloads panel
- use the downloadMainArea for hover styling of the non-button bit, and
  update the JS to set the downloadHoveringButton class appropriately for
  this new reality.
- tighten up hover styles so we don't get a weird double hover for the
  blocked download case
- tighten up margins of the button, badge and progress meter (see also
  https://bugzilla.mozilla.org/show_bug.cgi?id=1725837). This is also
  helped by the fact that the renaming means we now properly hide the
  badge image when the download isn't blocked; the CSS at
  https://searchfox.org/mozilla-central/rev/a1ab92e0b16631465a946b300493e75be0eacc37/browser/components/downloads/content/downloads.css#44-47
  didn't apply to this badge pre-patch.

Differential Revision: https://phabricator.services.mozilla.com/D123169
2021-09-02 09:18:12 +00:00
Ava Katushka ava8katushka
effc31c293 Bug 1718782 - Add telemetry for clicking an in-progress download. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D121857
2021-08-09 20:12:27 +00:00
Ava Katushka ava8katushka
f034da9cb3 Bug 1711053 - Open file after download if user clicked on downloading file. r=mtigley,flod,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D118328
2021-07-09 13:20:29 +00:00
Csoregi Natalia
4db31d3804 Backed out changeset a81a827f54fb (bug 1711053) for failures on browser_download_opens_on_click.js. CLOSED TREE 2021-07-07 13:20:05 +03:00
Ava Katushka ava8katushka
688250a426 Bug 1711053 - Open file after download if user clicked on downloading file. r=mtigley,flod,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D118328
2021-07-07 09:13:28 +00:00
Alexandru Michis
fbed18af9a Backed out changeset c204c9f05b2e (bug 1711053) for causing failures in browser_download_opens_on_click.js
CLOSED TREE
2021-07-05 19:22:36 +03:00
Ava Katushka ava8katushka
8dd4aee5b2 Bug 1711053 - Open file after download if user clicked on downloading file. r=mtigley,flod,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D118328
2021-07-05 14:32:01 +00:00
Mike Conley
cbb2b047d7 Bug 1706777 - Apply ghost-button styling to Downloads Panel's Show In Folder button. r=mak,desktop-theme-reviewers,harry
Differential Revision: https://phabricator.services.mozilla.com/D113192
2021-04-28 19:43:41 +00:00
Gijs Kruitbosch
57fa00aa52 Bug 1707652 - fix display of download context menu items with macOS native menus, r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D113544
2021-04-27 19:37:14 +00:00
Gijs Kruitbosch
4de7e0419d Bug 1707204 - fix download panel item mouse event handlers so the context menu is considered open before popupshown has fired, r=jaws
As a bonus, this is net code removal.

I spent a long time on a test, but ultimately it seems that in an automated test the
conditions in real use don't appear (ie the mouseout event doesn't happen) unless
manually fired from the test, which seems like it isn't worth it.

Differential Revision: https://phabricator.services.mozilla.com/D113431
2021-04-27 19:37:14 +00:00