Commit graph

552 commits

Author SHA1 Message Date
Eemeli Aro
7fc8beef67 Bug 1786055 - Drop find keys from editMenuKeys.inc.xhtml. r=mconley
It would appear that these <key> definitions in editMenuKeys.inc.xhtml
are not actaully used anywhere.

Differential Revision: https://phabricator.services.mozilla.com/D155448
2022-08-26 16:31:40 +00:00
Calixte
5e975b2a83 Bug 1778714 - Fix the pdf download link in the All Downloads view r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D151431
2022-08-08 18:56:24 +00:00
Butkovits Atila
c37d8bfef7 Backed out changeset 724282da88eb (bug 1778714) for causing failures at browser_library_select_all.js. 2022-08-08 18:14:00 +03:00
Calixte
7cdbde51bb Bug 1778714 - Fix the pdf download link in the All Downloads view r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D151431
2022-08-08 13:47:55 +00:00
Emilio Cobos Álvarez
6177804447 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
4bfafd41fa 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
102b779608 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
23086da9b9 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
1108246986 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
e84aaa1b85 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
8f559e5415 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
54623364da 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
c84f2d6726 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
7738a75fdd 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
8cd6ed7409 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
bf93d07148 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
Calixte
93528759ed Bug 1766030 - Add an optional source URL when saving an URL. r=Gijs
In pdf.js, files are saved thanks to a blob but the original URL is lost.
Consequently, the download panel doesn't contain any information about the
origins of a saved pdf.
The saveURL, internalSave and nsITransfer.init functions has now a parameter for this originalURL.

Differential Revision: https://phabricator.services.mozilla.com/D147651
2022-05-31 17:25:29 +00:00
Marco Bonardo
623c23b11d 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
d2a76be362 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
4c3a22357e 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
1eae42ffc3 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
95b15421a5 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
40e2f0d11a 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
ab2dc4b0aa 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
9a2ee2448d 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
d3eafc94e1 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
Mark Banner
4f4dd2fbae Bug 1750974 - Extend our ESLint import-globals-from function to support absolute directories. r=Gijs,mossop
Differential Revision: https://phabricator.services.mozilla.com/D136368
2022-01-20 14:15:34 +00:00
Sam Foster
866fb885cf Bug 1747422 - Rename the allDownloads list box. r=dao
* Having a different id for the container of download items in the download panel vs the all-downloads view (about:downloads and the library/places view) is one of the main reasons we need the %define item, to allow the same included stylesheet to apply to the different markup by virtue of the different selector produced when @item@ is expanded
* As these IDs aren't particularly descriptive, and the distinction isn't meaningful, having each list use the same id allows more direct stylesheet reuse in both places

Differential Revision: https://phabricator.services.mozilla.com/D135399
2022-01-16 10:54:32 +00:00
Gijs Kruitbosch
2aa40d123a Bug 1749028, r=dveditz,kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D135398
2022-01-13 00:01:14 +00:00
Cristian Tuns
cdade0973b 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
0c74c88e49 Bug 1749028, r=dveditz,kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D135398
2022-01-12 12:40:20 +00:00
Shane Hughes
de1c78a4a8 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
5f1ff58926 Bug 371900, remove more now-unneeded empty oncommand attributes, r=bgrins,preferences-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D135243
2022-01-11 20:02:30 +00:00
Neil Deakin
fa63e4a464 Bug 371900, always fire a command event on key elements except for those that are marked not to, r=masayuki
The edit-related commands are special because they are handled by ShortcutKeyDefinitions.cpp yet we have duplicate keys because we want the menu disabled state to update properly, so we don't fire command events on those.

Differential Revision: https://phabricator.services.mozilla.com/D135157
2022-01-11 20:02:29 +00:00
criss
e2948093fb Backed out 2 changesets (bug 371900) for causing bug 1749182 . CLOSED TREE
Backed out changeset e59035c65af3 (bug 371900)
Backed out changeset 6434bce9c7d4 (bug 371900)
2022-01-09 16:26:02 +02:00
Neil Deakin
64a4726936 Bug 371900, remove more now-unneeded empty oncommand attributes, r=bgrins,preferences-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D135243
2022-01-08 18:07:21 +00:00
Neil Deakin
6b88580db1 Bug 371900, always fire a command event on key elements except for those that are marked not to, r=masayuki
The edit-related commands are special because they are handled by ShortcutKeyDefinitions.cpp yet we have duplicate keys because we want the menu disabled state to update properly, so we don't fire command events on those.

Differential Revision: https://phabricator.services.mozilla.com/D135157
2022-01-08 18:07:21 +00:00
Neil Deakin
5a69941e9c 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
473da19fca 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
bf3e47d93b 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
Barret Rennie
d5b5211ad6 Bug 1745350 - Remove OS.File from browser/components/downloads r=Standard8
Depends on D133461

Differential Revision: https://phabricator.services.mozilla.com/D133462
2021-12-10 13:23:54 +00:00
Micah Tigley
0732a24662 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
997b16c37a 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
5840184c47 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
0acad0b8d2 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
497da78210 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
89f2c5883c 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
33910a7b41 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
21c6ae4572 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
159d6f7eeb 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