Commit Graph

2029 Commits

Author SHA1 Message Date
Gregory Pappas
a57c4f9405 Bug 1845311 - [Part 2] Use ChromeUtils.defineLazyGetter in more places r=arai,webcompat-reviewers,necko-reviewers,extension-reviewers,settings-reviewers,application-update-reviewers,credential-management-reviewers,devtools-reviewers,fxview-reviewers,sync-reviewers,anti-tracking-reviewers,tabbrowser-reviewers,bytesized,twisniewski,sgalich,mak,kershaw,sclements,pbz,robwu,geckoview-reviewers,amejiamarmol
Differential Revision: https://phabricator.services.mozilla.com/D184623
2023-08-01 23:01:02 +00:00
Daisuke Akatsuka
2bf471ef0b Bug 1829580: Remove nsNavHistory::VisitIdToResultNode() r=mak
Differential Revision: https://phabricator.services.mozilla.com/D183337
2023-07-25 22:47:59 +00:00
Karandeep
eaf5c7d8a6 Bug 1836986 - Hide tags field in the Star ("Bookmark this page") panel when the user has no tags. r=dao,mak
Differential Revision: https://phabricator.services.mozilla.com/D181557
2023-06-25 11:19:13 +00:00
Marco Bonardo
761a9aa462 Bug 1816901 - Stop using promiseItemId in product code. r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D180410
2023-06-24 07:16:51 +00:00
Emilio Cobos Álvarez
45eb2f3d7b Bug 1839066 - Improve selection checks in places-tree. r=mak
This doesn't fix the bug but I saw some exceptions related to having a
non-null view with a null selection that this fixes.

Differential Revision: https://phabricator.services.mozilla.com/D181379
2023-06-20 08:58:10 +00:00
Gijs Kruitbosch
3c6e3c3cab Bug 1838632 - fix edit bookmarks dialog's use of non-standard fluent attributes to use more straightforward switches between messages, r=jsudiaman,fluent-reviewers,flod
Depends on D181229

Differential Revision: https://phabricator.services.mozilla.com/D181230
2023-06-19 16:30:16 +00:00
Dão Gottwald
2b648df481 Bug 1835890 - Make sidebar switcher panel a normal menupopup. r=Itiel,extension-reviewers,mconley,rpl
Differential Revision: https://phabricator.services.mozilla.com/D179877
2023-06-15 14:14:43 +00:00
Katherine Patenio
99d830d71b Bug 1830418 - Convert browser/components/customizableui/CustomizableUI.jsm to ESM r=Standard8,devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D177423
2023-05-24 15:52:34 +00:00
Mark Banner
0666077666 Bug 1826062 - Automatic fixes for upgrading Prettier to 2.8.8. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,calu
Differential Revision: https://phabricator.services.mozilla.com/D177027
2023-05-20 12:26:53 +00:00
Mark Banner
91fde42f7b Bug 1826062 - Automatic fixes for Prettier 2.0.5 upgrade. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,owlish
Differential Revision: https://phabricator.services.mozilla.com/D177025
2023-05-20 12:26:49 +00:00
Marco Bonardo
fe84c45462 Bug 1818461 - Remove the synchronous PlacesUtils.getChildCountForFolder().r=daisuke,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D175532
2023-05-19 12:17:17 +00:00
Jonathan Sudiaman
9fd065c778 Bug 1820979 - Remove instant apply bookmarks panels code r=mak
Remove the `browser.bookmarks.editDialog.delayedApply.enabled` pref, and for all usages in conditional branches, assume that it is `true`. (Since we want to be using delayed apply logic going forward.)

`delayed_apply` spinoffs of tests are removed and merged with their instant apply counterparts. The only test removed without a corresponding spinoff is `browser_editBookmark_tags_liveUpdate.js`. That test is checking whether tags are updated in the edit dialog, if they are updated from a different place. The problem is that we don't really want this behavior anymore. It was previously set to only run with `browser.bookmarks.editDialog.delayedApply.enabled` set to `false`, but now that it's no longer configurable, it made most sense to simply get rid of this test.

https://treeherder.mozilla.org/jobs?revision=c0741eca62212a75a9dd52fc2c5c2b6c34f9f2d7&repo=try

Differential Revision: https://phabricator.services.mozilla.com/D176370
2023-05-09 21:03:19 +00:00
Katherine Patenio
2139e0fa1e Bug 1830421 - convert CustomizableWidgets, CustomizeMode, DragPositionManager and SearchWidgetTracker in browser/components/customizableui to ESMs r=Standard8,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D176825
2023-05-03 18:05:26 +00:00
Eemeli Aro
2b4fe0fd44 Bug 1830042 - Migrate places prompt strings to Fluent. r=mak,fluent-reviewers,flod
As the remaining places.properties strings are used only for
errors and other dialogs from contexts that require sync localization,
it's better to put them in their own new file placesPrompts.ftl.

Differential Revision: https://phabricator.services.mozilla.com/D176646
2023-05-02 18:34:42 +00:00
Eemeli Aro
fc4f1b6176 Bug 1830042 - Migrate places search & sortby strings to Fluent. r=mak,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D176645
2023-05-02 18:34:41 +00:00
Eemeli Aro
db51c0f57f Bug 1830042 - Migrate detailsPane.noItems and detailsPane.itemsCountLabel strings to Fluent. r=mak,fluent-reviewers,flod
This also allows dropping the PlacesUIUtils getFormattedString() and getPluralString() functions as unused

Depends on D176643

Differential Revision: https://phabricator.services.mozilla.com/D176644
2023-05-02 18:34:41 +00:00
Eemeli Aro
76ff36feab Bug 1830042 - Migrate bookmarksMenuEmptyFolder string to Fluent. r=mak,fluent-reviewers,flod
Depends on D176642

Differential Revision: https://phabricator.services.mozilla.com/D176643
2023-05-02 18:34:41 +00:00
Eemeli Aro
41c3009db2 Bug 1830042 - Migrate placesContext_delete_history and placesContext_createBookmark to Fluent. r=mak,fluent-reviewers,flod
Depends on D176641

Differential Revision: https://phabricator.services.mozilla.com/D176642
2023-05-02 18:34:41 +00:00
Abhishek Tiwari
cec6f4b2e7 Bug 1820878 - Convert toolkit/mozapps/downloads to ESmodules . r=Standard8,extension-reviewers,application-update-reviewers,bytesized,robwu
Differential Revision: https://phabricator.services.mozilla.com/D172245
2023-04-12 17:32:30 +00:00
Marco Bonardo
28afd9f1c3 Bug 1820332 - Dragging URL from address bar results in bookmark with the URL instead of the page title. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D173689
2023-03-27 14:44:50 +00:00
Sarah Clements
34aaa9ccf3 Bug 1819081 - Add telemetry to bookmarks sidebar and library r=mak
* Add histograms for cumulative searches and utilize scalars added in bug 1815906
* Add test coverage

Differential Revision: https://phabricator.services.mozilla.com/D172596
2023-03-22 12:39:40 +00:00
Marian-Vasile Laza
33b5136e0f Backed out changeset 811fbfb31174 (bug 1819081) for bc failures on browser_views_liveupdate.js. 2023-03-20 21:10:18 +02:00
Sarah Clements
17b3b13f2a Bug 1819081 - Add telemetry to bookmarks sidebar and library r=mak
* Add histograms for cumulative searches and utilize scalars added in bug 1815906
* Add test coverage

Differential Revision: https://phabricator.services.mozilla.com/D172596
2023-03-20 17:46:15 +00:00
Emilio Cobos Álvarez
2d3579a0ff Bug 1823088 - Fix flex-basis in the edit bookmark panel. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D172900
2023-03-20 11:36:28 +00:00
Abhishek Tiwari
44d69b39a6 Bug 1821620 - Convert toolkit/components/forgetaboutsite to ES modules r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D172230
2023-03-14 21:36:38 +00:00
Kelly Cochrane
0a91da08b0 Bug 1817251 - Record telemetry for History in sidebar and library when using the context menu r=sclements,mak
Differential Revision: https://phabricator.services.mozilla.com/D171253
2023-03-14 10:29:57 +00:00
Emilio Cobos Álvarez
8d4dbefad6 Bug 1821404 - Use flex-basis: auto on treecols. r=Gijs,settings-reviewers
So that their width property is honored.

Differential Revision: https://phabricator.services.mozilla.com/D172163
2023-03-09 20:50:52 +00:00
Jonathan Sudiaman
51deffaf3f Bug 1818673 - Intermittent TV [tier 2] browser/components/places/tests/browser/browser_bookmarkProperties_newFolder.js r=mak
Differential Revision: https://phabricator.services.mozilla.com/D172008
2023-03-09 17:46:00 +00:00
Emilio Cobos Álvarez
cdff2ecc8e Bug 1820534 - Move front-end to modern flexbox. r=Gijs,dao,settings-reviewers,credential-management-reviewers,sgalich,devtools-reviewers,nchevobbe
Done mostly automatically via find/replace following the conversions
specified here:

  https://groups.google.com/a/mozilla.org/g/firefox-dev/c/9sGpF1TNbLk/m/QpU3oTUuAgAJ

For the most part I think the "flex: N N" usage could be simplified to
just "flex: N", but I wanted to preserve behavior (-moz-box-flex sets
both flex-grow and flex-shrink).

I changed legacy layout to also look at the order property rather than
-moz-box-ordinal-group because it made splitters and treecols easier (we
don't need to deal with both orders).

Differential Revision: https://phabricator.services.mozilla.com/D171715
2023-03-08 16:13:57 +00:00
Stanca Serban
5d57898ee6 Backed out changeset c25af897c9bc (bug 1820534) for causing reftests and mochitests failures. 2023-03-08 17:34:42 +02:00
Emilio Cobos Álvarez
e15feb465b Bug 1820534 - Move front-end to modern flexbox. r=Gijs,dao,settings-reviewers,credential-management-reviewers,sgalich,devtools-reviewers,nchevobbe
Done mostly automatically via find/replace following the conversions
specified here:

  https://groups.google.com/a/mozilla.org/g/firefox-dev/c/9sGpF1TNbLk/m/QpU3oTUuAgAJ

For the most part I think the "flex: N N" usage could be simplified to
just "flex: N", but I wanted to preserve behavior (-moz-box-flex sets
both flex-grow and flex-shrink).

I changed legacy layout to also look at the order property rather than
-moz-box-ordinal-group because it made splitters and treecols easier (we
don't need to deal with both orders).

Differential Revision: https://phabricator.services.mozilla.com/D171715
2023-03-08 14:11:35 +00:00
Jonathan Sudiaman
c993969b7b Bug 1820349 - Intermittently, the editbookmark dialogue won't appear when the star button is clicked r=mak
Avoid breaking if `window.arguments[0]` is `null`.

https://treeherder.mozilla.org/jobs?repo=try&revision=4875199ca6018fd8c9557b90c3d1ebda75765488

Differential Revision: https://phabricator.services.mozilla.com/D171758
2023-03-08 13:34:34 +00:00
Kelly Cochrane
e8b015d3ac Bug 1818800 - Only pass library telemetry function in controller.js if opening multiple tabs from Library r=mak
Differential Revision: https://phabricator.services.mozilla.com/D171024
2023-02-26 19:51:10 +00:00
Emilio Cobos Álvarez
0cf94d2451 Bug 1818723 - Allow some elements to shrink with modern flexbox emulation in the places organizer. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D170929
2023-02-24 18:20:21 +00:00
Jonathan Sudiaman
243163addc Bug 1812083 - Enable delayed apply bookmarks in Firefox Nightly r=mak
As expected, the try job flagged a bunch of test failures when flipping the default `delayedApply` pref to `true`. Some of these failures are legitimate issues:

  - When creating a new folder in the tree under "Location", renaming the folder doesn't update its name in the Location field.
  - When right clicking a bookmark in the sidebar, and creating a new folder, the folder doesn't get placed before the bookmark, i.e. the insertion point is ignored.

And as you pointed out, tags were being wiped out on blur in the Star/Toolbar panels. These issues have been fixed. The rest of the failures have been fixed in one of these ways:

  - Update the test to pass regardless of `delayedApply` setting. This was the preferred method.
  - Force the test to use instant apply. This was only done for tests that have an existing delayed apply counterpart.
  - Force the entire test suite to use instant apply. This was only done for one file, namely `browser_bookmark_popup.js`. I'll file a bug to spin off a delayed apply version of this suite.

try job with `delayedApply` enabled: https://treeherder.mozilla.org/jobs?repo=try&revision=50e9cdb65feaec07c9519e928caf62042c3df9a4
try job with `delayedApply` disabled: https://treeherder.mozilla.org/jobs?repo=try&revision=1102b5076a79bf08a0e4b073fdf369af97a16ef7

Differential Revision: https://phabricator.services.mozilla.com/D168690
2023-02-24 00:29:57 +00:00
Kelly Cochrane
053542c7a4 Bug 1818547 - Remove places telemetry function call from browserPlacesViews.js r=mkaply
Differential Revision: https://phabricator.services.mozilla.com/D170788
2023-02-23 21:45:39 +00:00
Butkovits Atila
0487e7778e Backed out changeset 4b449f3b2ab0 (bug 1812083) for causing failures complaining about bookmarks. CLOSED TREE 2023-02-23 16:27:23 +02:00
Jonathan Sudiaman
bdad7c3589 Bug 1812083 - Enable delayed apply bookmarks in Firefox Nightly r=mak
As expected, the try job flagged a bunch of test failures when flipping the default `delayedApply` pref to `true`. Some of these failures are legitimate issues:

  - When creating a new folder in the tree under "Location", renaming the folder doesn't update its name in the Location field.
  - When right clicking a bookmark in the sidebar, and creating a new folder, the folder doesn't get placed before the bookmark, i.e. the insertion point is ignored.

And as you pointed out, tags were being wiped out on blur in the Star/Toolbar panels. These issues have been fixed. The rest of the failures have been fixed in one of these ways:

  - Update the test to pass regardless of `delayedApply` setting. This was the preferred method.
  - Force the test to use instant apply. This was only done for tests that have an existing delayed apply counterpart.
  - Force the entire test suite to use instant apply. This was only done for one file, namely `browser_bookmark_popup.js`. I'll file a bug to spin off a delayed apply version of this suite.

try job with `delayedApply` enabled: https://treeherder.mozilla.org/jobs?repo=try&revision=50e9cdb65feaec07c9519e928caf62042c3df9a4
try job with `delayedApply` disabled: https://treeherder.mozilla.org/jobs?repo=try&revision=1102b5076a79bf08a0e4b073fdf369af97a16ef7

Differential Revision: https://phabricator.services.mozilla.com/D168690
2023-02-23 13:05:50 +00:00
Florian Quèze
aa3f67100a Bug 1818158 - Add an nsINamed implementation on nsITimer callbacks implemented in JS encountered during startup, r=Gijs.
Differential Revision: https://phabricator.services.mozilla.com/D170583
2023-02-22 19:43:42 +00:00
Kelly Cochrane
f5c7d36f53 Bug 1815906 - Add telemetry for History in Library window r=mak
Differential Revision: https://phabricator.services.mozilla.com/D169710
2023-02-22 19:25:52 +00:00
Sarah Clements
e510194733 Bug 1815706 - Update history sidebar telemetry r=mak,mkaply
* fix sidebar click event handling
* Add scalar for total number of history entries per session
* Add test for scalar

Differential Revision: https://phabricator.services.mozilla.com/D169480
2023-02-21 20:33:56 +00:00
Csoregi Natalia
e32a310069 Backed out changeset b26a56aab365 (bug 1815706) for causing failures on browser_sidebar_history_telemetry.js. CLOSED TREE 2023-02-17 21:53:40 +02:00
Sarah Clements
57b0612ae2 Bug 1815706 - Update history sidebar telemetry r=mak,kcochrane
* fix sidebar click event handling
* Add scalar for total number of history entries per session
* Add test for scalar

Differential Revision: https://phabricator.services.mozilla.com/D169480
2023-02-17 18:30:34 +00:00
Butkovits Atila
bd80e99e24 Backed out changeset 8107b1fc07e0 (bug 1812083) for causing failures at browser_bookmarks_change_url.js. CLOSED TREE 2023-02-17 07:14:36 +02:00
Jonathan Sudiaman
2a43ccaee5 Bug 1812083 - Enable delayed apply bookmarks in Firefox Nightly r=mak
As expected, the try job flagged a bunch of test failures when flipping the default `delayedApply` pref to `true`. Some of these failures are legitimate issues:

  - When creating a new folder in the tree under "Location", renaming the folder doesn't update its name in the Location field.
  - When right clicking a bookmark in the sidebar, and creating a new folder, the folder doesn't get placed before the bookmark, i.e. the insertion point is ignored.

And as you pointed out, tags were being wiped out on blur in the Star/Toolbar panels. These issues have been fixed. The rest of the failures have been fixed in one of these ways:

  - Update the test to pass regardless of `delayedApply` setting. This was the preferred method.
  - Force the test to use instant apply. This was only done for tests that have an existing delayed apply counterpart.
  - Force the entire test suite to use instant apply. This was only done for one file, namely `browser_bookmark_popup.js`. I'll file a bug to spin off a delayed apply version of this suite.

try job with `delayedApply` enabled: https://treeherder.mozilla.org/jobs?repo=try&revision=50e9cdb65feaec07c9519e928caf62042c3df9a4
try job with `delayedApply` disabled: https://treeherder.mozilla.org/jobs?repo=try&revision=1102b5076a79bf08a0e4b073fdf369af97a16ef7

Differential Revision: https://phabricator.services.mozilla.com/D168690
2023-02-17 03:57:03 +00:00
Butkovits Atila
552356e774 Backed out changeset 26989b0e17cc (bug 1812083) for causing failures at browser_bookmark_popup.js. CLOSED TREE 2023-02-16 20:36:42 +02:00
Jonathan Sudiaman
31bd79658d Bug 1812083 - Enable delayed apply bookmarks in Firefox Nightly r=mak
As expected, the try job flagged a bunch of test failures when flipping the default `delayedApply` pref to `true`. Some of these failures are legitimate issues:

  - When creating a new folder in the tree under "Location", renaming the folder doesn't update its name in the Location field.
  - When right clicking a bookmark in the sidebar, and creating a new folder, the folder doesn't get placed before the bookmark, i.e. the insertion point is ignored.

And as you pointed out, tags were being wiped out on blur in the Star/Toolbar panels. These issues have been fixed. The rest of the failures have been fixed in one of these ways:

  - Update the test to pass regardless of `delayedApply` setting. This was the preferred method.
  - Force the test to use instant apply. This was only done for tests that have an existing delayed apply counterpart.
  - Force the entire test suite to use instant apply. This was only done for one file, namely `browser_bookmark_popup.js`. I'll file a bug to spin off a delayed apply version of this suite.

try job with `delayedApply` enabled: https://treeherder.mozilla.org/jobs?repo=try&revision=50e9cdb65feaec07c9519e928caf62042c3df9a4
try job with `delayedApply` disabled: https://treeherder.mozilla.org/jobs?repo=try&revision=1102b5076a79bf08a0e4b073fdf369af97a16ef7

Differential Revision: https://phabricator.services.mozilla.com/D168690
2023-02-16 17:31:49 +00:00
Daisuke Akatsuka
5060016d38 Bug 1678629: Apply bookmark-keyword-changed event. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D130440
2023-02-09 21:21:51 +00:00
Emilio Cobos Álvarez
9b8daaecdb Bug 1815238 - Fix places window left panel width with flexbox emulation enabled. r=Gijs
Use CSS rather than width attributes so that this keeps working when
flexbox emulation is used. Without this patch the width almost
collapses, which is not great!

Differential Revision: https://phabricator.services.mozilla.com/D168964
2023-02-07 08:49:58 +00:00
Daisuke Akatsuka
0093b10e7f Bug 1678628: Use PageVisitRemoved event instead of cleartime event. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D129603
2023-02-06 21:17:18 +00:00