Niklas Baumgardner
940a8e157a
Bug 1813394 - Updated screenshots overlay shrinks with window. r=sfoster
...
Differential Revision: https://phabricator.services.mozilla.com/D168315
2023-03-06 21:23:27 +00:00
Neil Deakin
10a14cb44a
Bug 1815062, modify callers of DownloadPaths.sanitize so that some use the allowInvalidFilenames argument, r=Gijs
...
Callers that use the filename to assign the default filename in a filepicker or save without a filepicker should use the default arguments, callers that validate a filename entered from a filepicker should supply false for compressWhitespaces, and true for allowInvalidFilenames
Differential Revision: https://phabricator.services.mozilla.com/D171002
2023-02-28 18:57:24 +00:00
Niklas Baumgardner
8d87e40736
Bug 1801019 - Add telemetry for screenshots component. r=sfoster
...
Differential Revision: https://phabricator.services.mozilla.com/D164948
2023-02-25 17:26:34 +00:00
Sam Foster
aaece76dd7
Bug 1799211 - Place focus on the first panel button when opening screenshots UI. r=niklas
...
Differential Revision: https://phabricator.services.mozilla.com/D168497
2023-02-24 02:35:25 +00:00
Marian-Vasile Laza
ac8ed92c6a
Backed out changeset d853ddfd853e (bug 1801019) for bc failures on browser_screenshots_telemetry_tests.js. CLOSED TREE
2023-02-23 21:11:16 +02:00
Niklas Baumgardner
4a2f7b7309
Bug 1801019 - Add telemetry for screenshots component. r=sfoster
...
Differential Revision: https://phabricator.services.mozilla.com/D164948
2023-02-23 17:37:01 +00:00
Butkovits Atila
0cf8d92417
Backed out changeset aaf82d1483ad (bug 1801019) for causing failures at browser_screenshots_telemetry_tests.js. CLOSED TREE
2023-02-21 23:04:05 +02:00
Niklas Baumgardner
3b1f991f19
Bug 1801019 - Add telemetry for screenshots component. r=sfoster
...
Differential Revision: https://phabricator.services.mozilla.com/D164948
2023-02-21 19:59:09 +00:00
Niklas Baumgardner
b7a9cc4439
Bug 1799215 - Screenshots overlay buttons should have focus states. r=cmkm
...
Differential Revision: https://phabricator.services.mozilla.com/D167583
2023-01-31 16:20:48 +00:00
Gijs Kruitbosch
b965c4660a
Bug 1795255 - autofix duplicate imports in tests under browser/, r=Standard8
...
Differential Revision: https://phabricator.services.mozilla.com/D166179
2023-01-31 11:48:41 +00:00
Csoregi Natalia
599fee9609
Backed out changeset 13175567352f (bug 1811953) for failures on browser_screenshots_drag_scroll_test.js. CLOSED TREE
2023-01-26 19:21:30 +02:00
Niklas Baumgardner
8653b6d130
Bug 1811953 - Scroll when resizing near the edge. r=sfoster
...
Differential Revision: https://phabricator.services.mozilla.com/D167614
2023-01-26 15:55:32 +00:00
Niklas Baumgardner
a36a35df45
Bug 1743887 - Crop screenshots when larger than max canvas size. r=sfoster,bolsson
...
Differential Revision: https://phabricator.services.mozilla.com/D160565
2023-01-24 23:51:33 +00:00
Neil Deakin
85eaed3782
Bug 1808918, use Untitled as the default filename when saving a file rather than index, r=mak
...
Differential Revision: https://phabricator.services.mozilla.com/D167028
2023-01-23 14:53:21 +00:00
Butkovits Atila
98c250d934
Backed out changeset 39f3534179a7 (bug 1743887) for causing failures at browser_screenshots_test_screenshot_too_big.js.
2023-01-18 03:30:07 +02:00
Niklas Baumgardner
6991fe86f4
Bug 1743887 - Crop screenshots when larger than max canvas size. r=sfoster,bolsson
...
Differential Revision: https://phabricator.services.mozilla.com/D160565
2023-01-17 19:03:33 +00:00
Niklas Baumgardner
e9afb5cf5e
Bug 1799546 - Screenshots buttons have proper contrast on hover. r=sfoster
...
Differential Revision: https://phabricator.services.mozilla.com/D166567
2023-01-12 14:41:18 +00:00
Niklas Baumgardner
a0bed53d66
Bug 1806590 - Downloading screenshot now shows panel in private windows. r=sfoster
...
Differential Revision: https://phabricator.services.mozilla.com/D166341
2023-01-10 22:00:17 +00:00
Emilio Cobos Álvarez
0f61b77b68
Bug 1805415 - Use activateItem() rather than click() to activate menuitems. r=Gijs,extension-reviewers,pip-reviewers,search-reviewers
...
Bug 1805414 will move menu event handling to the DOM.
With that change the current synthetic click behavior of XUL menuitems
breaks. On current central, we rely on nsMenuFrame::HandleEvent not
getting called at all for synthetic clicks, and instead we just fire a
command event synchronously here:
https://searchfox.org/mozilla-central/rev/a0d4f8f112c5c792ae272bf6ce50763ddd23ffa2/dom/xul/nsXULElement.cpp#1071
After my patch the command event is fired properly (potentially
asynchronously too) by the regular menu activation machinery, which is
preferable.
* They fire a command event synchronously (even though on some
platforms like macOS activating a context menu item is async).
* They use a totally different codepath from what a user does.
* They don't deal with native menus, etc.
We have a proper API for this (activateItem) which takes a much more
closer codepath to what users do, requires that the menu is shown, etc.
Use that API instead for testing.
As a benefit, tests now do not need to close the context menu manually
when clicking on a menu item (because we trigger the same code path as
users clicking the menu).
Differential Revision: https://phabricator.services.mozilla.com/D164567
2022-12-15 03:11:55 +00:00
Cristian Tuns
c9c42bc174
Backed out 2 changesets (bug 1805415) for causing dt failures on browser_net_telemetry_throttle_changed.js CLOSED TREE
...
Backed out changeset 5056d7df9f1e (bug 1805415)
Backed out changeset e13513500184 (bug 1805415)
2022-12-14 08:52:21 -05:00
Emilio Cobos Álvarez
9a53f8dea3
Bug 1805415 - Use activateItem() rather than click() to activate menuitems. r=Gijs,extension-reviewers,pip-reviewers,search-reviewers
...
Bug 1805414 will move menu event handling to the DOM.
With that change the current synthetic click behavior of XUL menuitems
breaks. On current central, we rely on nsMenuFrame::HandleEvent not
getting called at all for synthetic clicks, and instead we just fire a
command event synchronously here:
https://searchfox.org/mozilla-central/rev/a0d4f8f112c5c792ae272bf6ce50763ddd23ffa2/dom/xul/nsXULElement.cpp#1071
After my patch the command event is fired properly (potentially
asynchronously too) by the regular menu activation machinery, which is
preferable.
* They fire a command event synchronously (even though on some
platforms like macOS activating a context menu item is async).
* They use a totally different codepath from what a user does.
* They don't deal with native menus, etc.
We have a proper API for this (activateItem) which takes a much more
closer codepath to what users do, requires that the menu is shown, etc.
Use that API instead for testing.
As a benefit, tests now do not need to close the context menu manually
when clicking on a menu item (because we trigger the same code path as
users clicking the menu).
Differential Revision: https://phabricator.services.mozilla.com/D164567
2022-12-14 10:25:17 +00:00
Niklas Baumgardner
ad90b95338
Bug 1785293 - Downloading screenshot respects 'Always ask you where to save files'. r=sfoster
...
Differential Revision: https://phabricator.services.mozilla.com/D158678
2022-12-06 00:06:20 +00:00
Stanca Serban
7d855ec985
Backed out changeset b080b41aecf4 (bug 1785293) for causing bc failures on browser_screenshots_test_escape.js. CLOSED TREE
2022-12-02 16:39:01 +02:00
Niklas Baumgardner
47288cb256
Bug 1785293 - Downloading screenshot respects 'Always ask you where to save files'. r=sfoster
...
Differential Revision: https://phabricator.services.mozilla.com/D158678
2022-12-02 13:45:57 +00:00
Niklas Baumgardner
7aed2f7632
Bug 1801193 - Focus panel buttons when screenshots UI is opened. r=sfoster,cmkm
...
Differential Revision: https://phabricator.services.mozilla.com/D162333
2022-12-01 15:14:21 +00:00
Niklas Baumgardner
d3850811c1
Bug 1799212 - Escape screenshots when panel is focused. r=sfoster
...
Differential Revision: https://phabricator.services.mozilla.com/D162879
2022-12-01 15:14:21 +00:00
Marian-Vasile Laza
56aa734c69
Backed out changeset 1fdf3fc76d06 (bug 1785293) for causing bc failures on browser_screenshots_drag_test.js. CLOSED TREE
2022-11-30 22:53:47 +02:00
Niklas Baumgardner
0dab83bc6a
Bug 1785293 - Downloading screenshot respects 'Always ask you where to save files'. r=sfoster
...
Differential Revision: https://phabricator.services.mozilla.com/D158678
2022-11-30 15:00:33 +00:00
Stanca Serban
461a6c412e
Backed out changeset 075348ac5873 (bug 1801193) for causing bc failures on browser_quickactions.js. CLOSED TREE
2022-11-23 00:48:13 +02:00
Niklas Baumgardner
b2e4bad28f
Bug 1801193 - Focus panel buttons when screenshots UI is opened. r=sfoster,cmkm
...
Differential Revision: https://phabricator.services.mozilla.com/D162333
2022-11-22 21:02:29 +00:00
Stanca Serban
0659f59b13
Backed out changeset 3d00ac0e9b4e (bug 1801193) for causing bc failures on browser_screenshots_test_escape.js. CLOSED TREE
2022-11-22 22:34:14 +02:00
Niklas Baumgardner
651cfc15a0
Bug 1801193 - Focus panel buttons when screenshots UI is opened. r=sfoster,cmkm
...
Differential Revision: https://phabricator.services.mozilla.com/D162333
2022-11-22 19:41:12 +00:00
Cieara Meador
a1f865ad77
Bug 1794142 - Screenshots module buttom HCM r=sfoster
...
Differential Revision: https://phabricator.services.mozilla.com/D162044
2022-11-17 22:50:18 +00:00
Cristian Tuns
640cc43739
Backed out changeset 57d19e70e34c (bug 1794142) for causing mochitest failures in browser_parsable_css.js CLOSED TREE
2022-11-16 16:11:06 -05:00
Cieara Meador
baf02dc8ab
Bug 1794142 - Screenshots module buttom HCM r=sfoster
...
Differential Revision: https://phabricator.services.mozilla.com/D162044
2022-11-16 19:31:49 +00:00
Marian-Vasile Laza
6b363505f3
Backed out changeset 7c0eb6e89712 (bug 1785293) for causing bc failures on browser_screenshots_test_downloads.js. CLOSED TREE
2022-11-11 02:36:29 +02:00
Niklas Baumgardner
a9c238827d
Bug 1785293 - Downloading screenshot respects 'Always ask you where to save files'. r=sfoster
...
Differential Revision: https://phabricator.services.mozilla.com/D158678
2022-11-10 22:21:11 +00:00
Mark Banner
19c189e131
Bug 1798212 - Convert consumers of downloads code to ES modules. r=mak,geckoview-reviewers,extension-reviewers,settings-reviewers,credential-management-reviewers,sgalich,mconley,m_kato
...
Differential Revision: https://phabricator.services.mozilla.com/D161013
2022-11-07 17:56:10 +00:00
Niklas Baumgardner
5a0f9d0c8a
Bug 1748730 - The screenshots overlay and panel are now always in sync. r=sfoster
...
Differential Revision: https://phabricator.services.mozilla.com/D158868
2022-10-28 19:05:18 +00:00
Niklas Baumgardner
4a7cdbfff3
Bug 1791624 - Fix Fluent errors in Screenshots component. r=sfoster
...
Differential Revision: https://phabricator.services.mozilla.com/D158515
2022-10-10 19:52:36 +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
Sandor Molnar
9a4a56ad39
Backed out changeset 45ea391514c0 (bug 1790855) for causing bc failures in browser_contextmenu CLOSED TREE
2022-10-04 06:41:48 +03:00
Niklas Baumgardner
f8ddf4dd71
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 02:09:08 +00:00
Sandor Molnar
624e213832
Backed out changeset d8835c4ab04f (bug 1790855) for causing bc failures in browser/components/screenshots/tests/browser/browser_screenshots_test_toggle_pref.js CLOSED TREE
2022-10-04 04:12:42 +03:00
Niklas Baumgardner
cc57189ab5
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 00:03:56 +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
79b9557a71
Bug 1792398 - Enable ESLint rule 'strict' on mjs files as the directive is not necessary for modules. r=arai,pip-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D158115
2022-09-26 21:47:50 +00:00
Marian-Vasile Laza
b7f6194b8d
Backed out changeset 0679274d6ed5 (bug 1792398) for causing bc failures on browser_sendQuery.js. CLOSED TREE
2022-09-26 22:53:00 +03:00
Mark Banner
5dcae1ed44
Bug 1792398 - Enable ESLint rule 'strict' on mjs files as the directive is not necessary for modules. r=arai,pip-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D158115
2022-09-26 18:51:57 +00:00
Narcis Beleuzu
95ae6b7d0f
Backed out changeset 849faf753208 (bug 1792398) for bc failures on browser_sendQuery.js . CLOSED TREE
2022-09-26 20:44:40 +03:00