You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run chrome.bookmarks.create({'title': 'TITLE', 'url': 'https://URL.com'}); in console
Actual result:
See error
Error in event handler: TypeError: Cannot read property 'children' of undefined
at Object.NodeState.createBookmark (chrome://bookmarks/reducers.js:215:36)
at Object.NodeState.updateNodes (chrome://bookmarks/reducers.js:313:26)
at Store.reduceAction [as reducer_] (chrome://bookmarks/reducers.js:475:24)
at Store.reduce_ (chrome://resources/js/cr/ui/store.js:141:24)
at chrome://resources/js/cr/ui/store.js:121:9
at Store.dispatchInternal_ (chrome://resources/js/cr/ui/store.js:129:7)
at Store.dispatchAsync (chrome://resources/js/cr/ui/store.js:110:12)
at Store.dispatch (chrome://resources/js/cr/ui/store.js:120:12)
at dispatch (chrome://bookmarks/api_listener.js:71:35)
at onBookmarkCreated (chrome://bookmarks/api_listener.js:91:5)
Reload brave://bookmarks/ page
See bookmark is created in Other bookmarks permanent folder
Description
With https://developers.chrome.com/extensions/bookmarks#method-create bookmarks are being created in
Other bookmarks
permanent node.Since
Other bookmarks
node is hidden and moved for all platforms sync-consistency (#5158), bookmark should be created inBookmarks bar
Found while looking on brave/brave-core#3749
Steps to Reproduce
STR:
chrome.bookmarks.create({'title': 'TITLE', 'url': 'https://URL.com'});
in consoleActual result:
Other bookmarks
permanent folderExpected result:
No error, bookmark is created in
Bookmarks bar
Reproduces how often:
Easily reproduced
Brave version (brave://version info)
Version/Channel Information:
Other Additional Information:
Miscellaneous Information:
The text was updated successfully, but these errors were encountered: