Commit Graph

59 Commits

Author SHA1 Message Date
Csoregi Natalia
010df0501b Backed out changeset e01ec8694924 (bug 1700957) as requested. CLOSED TREE 2021-04-28 18:09:01 +03:00
Emma Malysz
91c90b996d Bug 1700957, graduate browser.proton.doorhangers.enabled pref to main proton pref r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D110135
2021-04-28 03:17:56 +00:00
Butkovits Atila
e3f5ddbc25 Backed out changeset 1c362512f27b (bug 1700957) for causing failures at test_chrome_only_media_queries.html. CLOSED TREE 2021-04-28 05:55:14 +03:00
Emma Malysz
75fb2ad086 Bug 1700957, graduate browser.proton.doorhangers.enabled pref to main proton pref r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D110135
2021-04-28 00:29:45 +00:00
Neil Deakin
9ea279221e Bug 1703002, don't scroll when focusing the textbox in the edit bookmark panel, r=mak
Note that Element.select() always focuses the element without scrolling, so the call to focus()
is redundant, but we'll leave it in anyway in case that changes.

Differential Revision: https://phabricator.services.mozilla.com/D111114
2021-04-08 13:32:45 +00:00
Mike Conley
553db97ffc Bug 1697507 - Restyle bookmarks panel for Proton. r=desktop-theme-reviewers,harry
This updates the styling of the Bookmarks Panel for Proton, and also:

* Fixes menulist sizes on macOS to be 32px tall for size="large", per spec
* Makes text input elements in panels be 32px tall, per spec

Depends on D109376

Differential Revision: https://phabricator.services.mozilla.com/D109638
2021-03-30 17:51:58 +00:00
Dorel Luca
56872eef65 Backed out 2 changesets (bug 1697507, bug 1697491) for Browser-chrome in browser/components/places/tests/browser/browser_bookmark_remove_tags.js. CLOSED TREE
Backed out changeset 83a561e6c1d0 (bug 1697507)
Backed out changeset 319022b89093 (bug 1697491)
2021-03-30 20:17:13 +03:00
Mike Conley
2699b0b497 Bug 1697507 - Restyle bookmarks panel for Proton. r=desktop-theme-reviewers,harry
This updates the styling of the Bookmarks Panel for Proton, and also:

* Fixes menulist sizes on macOS to be 32px tall for size="large", per spec
* Makes text input elements in panels be 32px tall, per spec

Differential Revision: https://phabricator.services.mozilla.com/D109638
2021-03-30 16:40:32 +00:00
Micah Tigley
e4dc9471fb Bug 1693139 - Add label captions for tags and keyword fields. r=Gijs,fluent-reviewers
Depends on D108871

Differential Revision: https://phabricator.services.mozilla.com/D108872
2021-03-30 00:56:36 +00:00
Daisuke Akatsuka
dd7b0db1ba Bug 897954: Remove onBeginUpdateBatch and onEndUpdateBatch functions. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D105441
2021-02-25 01:58:24 +00:00
smolnar
34fc339425 Backed out 3 changesets (bug 897954) for causing node test failures in PlacesFeed. CLOSED TREE
Backed out changeset 0a60eb3f7ba8 (bug 897954)
Backed out changeset 9443814d173b (bug 897954)
Backed out changeset 2e558ac8e419 (bug 897954)
2021-02-25 03:21:58 +02:00
Daisuke Akatsuka
75041c3461 Bug 897954: Remove onBeginUpdateBatch and onEndUpdateBatch functions. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D105441
2021-02-25 00:12:40 +00:00
Marco Bonardo
5fee7240ed Bug 1677408 - Part 4 - Replace onItemVisited with page-visited. r=Standard8
Rather than fetching bookmarks from the disk for each page-visited notification,
we just let the result to recursively find and update children in the memory
structure.

Differential Revision: https://phabricator.services.mozilla.com/D97277
2020-11-23 16:28:04 +00:00
Butkovits Atila
c08d529090 Backed out 7 changesets (bug 1677408) for bustages on nsNavHistory.cpp. CLOSED TREE
Backed out changeset 1e0dc9aaa979 (bug 1677408)
Backed out changeset 4198bc35198c (bug 1677408)
Backed out changeset ff93f264138b (bug 1677408)
Backed out changeset 0f2d72d2ed5a (bug 1677408)
Backed out changeset 996cbd111957 (bug 1677408)
Backed out changeset b0c23854e117 (bug 1677408)
Backed out changeset f7d6cc5e4457 (bug 1677408)
2020-11-23 16:49:31 +02:00
Marco Bonardo
ae29233b62 Bug 1677408 - Part 4 - Replace onItemVisited with page-visited. r=Standard8
Rather than fetching bookmarks from the disk for each page-visited notification,
we just let the result to recursively find and update children in the memory
structure.

Differential Revision: https://phabricator.services.mozilla.com/D97277
2020-11-23 12:56:40 +00:00
Gijs Kruitbosch
dffaa65a4a Bug 1674515 - show the bookmarks toolbar when creating a bookmark there, r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D96329
2020-11-09 23:16:56 +00:00
Csoregi Natalia
6a0cdbf039 Backed out changeset ca520bfdc084 (bug 1674515) for failures on browser_autoshow_bookmarks_toolbar.js. CLOSED TREE 2020-11-09 19:32:08 +02:00
Gijs Kruitbosch
f6a60b989e Bug 1674515 - show the bookmarks toolbar when creating a bookmark there, r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D96329
2020-11-09 16:00:29 +00:00
Gijs Kruitbosch
0a0c86d14c Bug 1432604 - use the last-used folder for new bookmarks, r=mak
Differential Revision: https://phabricator.services.mozilla.com/D94880
2020-11-05 21:08:10 +00:00
Narcis Beleuzu
f5b44dd87b Backed out 4 changesets (bug 1425290, bug 1432604, bug 1665389) for bc failures on browser_bookmarkProperties_addKeywordForThisSearch.js . CLOSED TREE
Backed out changeset 455ff5647429 (bug 1432604)
Backed out changeset cf70da964b70 (bug 1425290)
Backed out changeset e6b38d403cc3 (bug 1425290)
Backed out changeset 09f049232773 (bug 1665389)
2020-11-05 23:01:31 +02:00
Gijs Kruitbosch
393befad12 Bug 1432604 - use the last-used folder for new bookmarks, r=mak
Differential Revision: https://phabricator.services.mozilla.com/D94880
2020-11-04 23:43:05 +00:00
Gijs Kruitbosch
9b68e0e813 Bug 1475489 - stop editing folder names when closing the folder tree in the edit bookmark panel, r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D94227
2020-10-27 13:05:44 +00:00
Jared Wein
64176c986d Bug 727668 - Show bookmarks toolbar on the new tab page. r=Gijs,fluent-reviewers,marionette-reviewers,whimboo
This adds the ability to force the bookmarks toolbar to appear on all pages. The checkbox in the toolbar context menu will reflect if the toolbar will appear outside of the newtab page. The toolbar will always appear on the newtab page. Profiles that already had the toolbar showing will have a migration to keep their experience unchanged.

Differential Revision: https://phabricator.services.mozilla.com/D89222
2020-10-26 02:32:07 +00:00
Marco Bonardo
2126d8e487 Bug 1626016 - Remove createFixupURI and move postData inside URIFixupInfo. r=Gijs,geckoview-reviewers,preferences-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D93189
2020-10-13 10:20:16 +00:00
Kris Maglione
9bddbcfdd1 Bug 1649221: Update ChromeUtils.generateQI callers to pass strings. r=mccr8,remote-protocol-reviewers,marionette-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,preferences-reviewers,agi,whimboo,Bebe,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D81594
2020-07-10 23:58:28 +00:00
Ed Lee
361cbdb4a5 Bug 1620556 - Automatic code fixes for Prettier 1.19.1 upgrade. r=Standard8,remote-protocol-reviewers,marionette-reviewers,webcompat-reviewers,perftest-reviewers,sparky,whimboo,denschub
Differential Revision: https://phabricator.services.mozilla.com/D66128
2020-03-13 23:38:52 +00:00
Marco Bonardo
0e20e092dc Bug 1616460 - Star panel tree view can move bookmarks even when it's not visible. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D64011
2020-02-25 14:04:43 +00:00
Siddhant085
cff5c6c597 Bug 1511700 - Use the new notification system (PlacesObserver) for bookmark removed notifications. r=Standard8,mak
Phasing out the old notification system for OnItemRemoved events.

Differential Revision: https://phabricator.services.mozilla.com/D17753
2020-01-16 18:38:54 +00:00
shindli
c78593bc8c Backed out changeset 1bdfd7c37b02 (bug 1511700) for causing newtab node test failure CLOSED TREE 2020-01-13 22:33:58 +02:00
Siddhant085
841c112b92 Bug 1511700 - Use the new notification system (PlacesObserver) for bookmark removed notifications. r=Standard8,mak
Phasing out the old notification system for OnItemRemoved events.

Differential Revision: https://phabricator.services.mozilla.com/D17753
2020-01-13 16:25:39 +00:00
fluks
1cb49f0898 Bug 1230453 - Add a hidden preference to change the number of folders in the recent list of the "bookmark this page" popup. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D43679
2019-10-22 07:57:49 +00:00
Tim Nguyen
cf28796916 Bug 1586997 - Fix focusing the first input of edit bookmark dialogs. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D48955
2019-10-11 14:16:42 +00:00
monikamaheshwari
edb30ffaec Bug 1578683 Turn on ESLint rule prefer-boolean-length-check for toolkit and browser r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D45629
2019-09-14 09:39:26 +00:00
Victor Porof
8eb72fd3fc Bug 1561435 - Format browser/components/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D36042
2019-07-05 09:53:32 +02:00
Victor Porof
07a8b5ebf6 Bug 1523957 - Convert trees to custom elements, r=bgrins, mak, standard8, MattN
***
Bug 1523957 - Part 0: Whitespace changes in tree.js, r=bgrins
***
Bug 1523957 - Part 1.1: Naively convert tree to a custom element, r=bgrins
***
Bug 1523957 - Part 1.2: Properly mixin BaseControl and extend XULTreeElement, r=bgrins
***
Bug 1523957 - Part 1.3: Use Shadow DOM for slotting children, r=bgrins
***
Bug 1523957 - Part 1.4: Properly handle key events in combination with shift modifiers, r=bgrins
***
Bug 1523957 - Part 1.5: Lint for the lint gods in tree.js, r=bgrins, standard8
***
Bug 1523957 - Part 2.1: Naively convert places-tree to a custom element, preserving history, r=bgrins
***
Bug 1523957 - Part 2.2: Lint for the lint gods in places-tree.js, r=bgrins
***
Bug 1523957 - Part 2.3: Fix browser_passwordmgr_editing.js, r=MattN
***
Bug 1523957 - Part 2.4: Fix browser_bookmarksProperties.js, r=bgrins
***
Bug 1523957 - Part 2.5: Make the edit bookmark tree lazily constructed so there aren't any trees left in the browser window markup, r=bgrins
***
Bug 1523957 - Part 2.6: Add eslint globals to places-tree.js, r=bgrins, standard8
2019-02-21 15:39:53 +01:00
Kris Maglione
856fa07b17 Bug 1514594: Part 3 - Change ChromeUtils.import API.
***
Bug 1514594: Part 3a - Change ChromeUtils.import to return an exports object; not pollute global. r=mccr8

This changes the behavior of ChromeUtils.import() to return an exports object,
rather than a module global, in all cases except when `null` is passed as a
second argument, and changes the default behavior not to pollute the global
scope with the module's exports. Thus, the following code written for the old
model:

  ChromeUtils.import("resource://gre/modules/Services.jsm");

is approximately the same as the following, in the new model:

  var {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");

Since the two behaviors are mutually incompatible, this patch will land with a
scripted rewrite to update all existing callers to use the new model rather
than the old.
***
Bug 1514594: Part 3b - Mass rewrite all JS code to use the new ChromeUtils.import API. rs=Gijs

This was done using the followng script:

https://bitbucket.org/kmaglione/m-c-rewrites/src/tip/processors/cu-import-exports.jsm
***
Bug 1514594: Part 3c - Update ESLint plugin for ChromeUtils.import API changes. r=Standard8

Differential Revision: https://phabricator.services.mozilla.com/D16747
***
Bug 1514594: Part 3d - Remove/fix hundreds of duplicate imports from sync tests. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16748
***
Bug 1514594: Part 3e - Remove no-op ChromeUtils.import() calls. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16749
***
Bug 1514594: Part 3f.1 - Cleanup various test corner cases after mass rewrite. r=Gijs
***
Bug 1514594: Part 3f.2 - Cleanup various non-test corner cases after mass rewrite. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16750
2019-01-17 10:18:31 -08:00
James Lee
9366fd6f82 Bug 1507809 - Remove 'ExcludeReadOnlyFolders' option from places' queries r=Standard8
Removed all references to 'ExcludeReadOnlyFolders' since Firefox doesn't
(and will not) support read only folders.

Differential Revision: https://phabricator.services.mozilla.com/D12821
2018-11-26 13:18:05 +00:00
Marco Bonardo
54feed2b6f Bug 1506461 - Enable inline suggestions for bookmark tags autocomplete. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D11773
2018-11-21 15:10:53 +00:00
Tim Nguyen
9a6dfae124 Bug 1502731 - Remove @hudButton@ and @hudButtonPressed@. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D10004
2018-10-30 19:04:23 +00:00
Marco Bonardo
cf3bc2c524 Bug 1502655 - Remove remaining frontend livemarks code. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D9992
2018-10-29 13:18:17 +00:00
Mark Banner
65e9033a90 Bug 1494046 - Improve how the folder icon is selected on the folder list in the bookmark popup window. r=mak
Change to using an event listener to follow when the selection changes more accurately. Also switch to using GUIDs as they are better defined than indexes.

Differential Revision: https://phabricator.services.mozilla.com/D7537
2018-10-23 15:52:22 +00:00
Mark Banner
084180b4d8 Bug 1501337 - Fix a leak and uncleared listeners in places code relating to the edit bookmarks views. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D9546
2018-10-23 17:58:43 +00:00
Doug Thayer
98d7bd0923 Bug 1426245 - Replace OnItemAdded with bookmark-item-added r=mak
See https://docs.google.com/document/d/1G45vfd6RXFXwNz7i4FV40lDCU0ao-JX_bZdgJV4tLjk/edit#
for further info. This essentially follows the same philosophy as
the onVisits migration.

MozReview-Commit-ID: I4bOvFH0ZQR

Depends on D4605

Differential Revision: https://phabricator.services.mozilla.com/D4606
2018-10-09 14:47:27 +00:00
Brindusan Cristian
b22191b1ac Backed out changeset 2f1229c179d3 (bug 1494046) for browser-chrome failures in browser_bookmark_add_tags.js. CLOSED TREE 2018-10-04 13:07:28 +03:00
Mark Banner
4458229bcc Bug 1494046 - Improve how the folder icon is selected on the folder list in the bookmark popup window. r=mak
Change to using an event listener to follow when the selection changes more accurately. Also switch to using GUIDs as they are better defined than indexes.

Differential Revision: https://phabricator.services.mozilla.com/D7537
2018-10-04 08:54:25 +00:00
Brendan Dahl
532fe1f6b0 Bug 1485426 - Use createXULElement instead of createElement in XUL docs. r=bgrins
Preparing for transitioning to XHTML.

MozReview-Commit-ID: JLlmUxsvhIB

Differential Revision: https://phabricator.services.mozilla.com/D4265
2018-08-25 00:16:27 +00:00
Mark Banner
7e98ad6bc5 Bug 1476228 - Enable comma-dangle ESLint rule for Places directories. r=mikedeboer
MozReview-Commit-ID: K8HcZfyF4Sz

Differential Revision: https://phabricator.services.mozilla.com/D3796
2018-08-22 15:44:43 +00:00
Brian Grinstead
1c86f46ecd Bug 1479125 - Migrate calls that expect an element to be returned to use element variation firstChild etc to firstElementChild etc;r=Paolo
This allows the JS to work in HTML documents, where whitespace is preserved. In XUL
documents, whitespace is ignored when parsing so text nodes are generally not returned.

The following changes were made, with manual cleanups as necessary (i.e. when firstChild actually
refers to a text node, or when firstChild is used in a loop to empty out an element):

  firstChild->firstElementChild
  lastChild->lastElementChild
  nextSibling->nextElementSibling
  previousSibling->previousElementSibling
  childNodes->children

MozReview-Commit-ID: 95NQ8syBhYw
2018-08-08 15:22:53 -07:00
Marco Bonardo
4b97fba72b Bug 1452067 - Move AllTags to an async method in the bookmarking API. r=Standard8
The tagging API is moving to the bookmarking API, this is one step

Differential Revision: https://phabricator.services.mozilla.com/D2316
2018-07-25 14:04:14 +00:00
Paolo Amadini
dd84440e70 Bug 1472748 - Convert the listbox in "editBookmarkPanel.inc.xul" to "richlistbox". r=mak
This uses the same event handling as the "listbox" and "listitem-checkbox" bindings that are scheduled for removal, and copies the required styles locally.

There is no need to preserve the scroll position explicitly anymore, because "richlistbox" handles scrolling like regular elements, and we don't want to persist the position when the selector is closed and reopened.

MozReview-Commit-ID: 4gYhwlprPN7
2018-07-13 15:37:31 +01:00