Closed
Bug 1379611
Opened 8 years ago
Closed 8 years ago
Use Bookmarks.jsm in editBookmarkOverlay.js
Categories
(Firefox :: Bookmarks & History, enhancement, P1)
Firefox
Bookmarks & History
Tracking
()
People
(Reporter: mak, Assigned: mak)
References
(Blocks 2 open bugs, )
Details
(Keywords: perf, Whiteboard: [reserve-photon-performance] [fxsearch])
Attachments
(3 files)
We should convert synchronous bookmarks usage in editBookmarkOverlay.js
Assignee | ||
Updated•8 years ago
|
Keywords: perf
Whiteboard: [fxsearch] → [reserve-photon-performance] [qf:p2][fxsearch]
Assignee | ||
Updated•8 years ago
|
Assignee | ||
Updated•8 years ago
|
Updated•8 years ago
|
Flags: qe-verify?
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Updated•8 years ago
|
Attachment #8885939 -
Flags: review?(standard8)
Assignee | ||
Comment 4•8 years ago
|
||
This may need an unbitrot against the patches currently landing. But overall it's ready for a first look.
Assignee | ||
Updated•8 years ago
|
Comment 5•8 years ago
|
||
mozreview-review |
Comment on attachment 8885940 [details]
Bug 1379611 - Avoid GetBookmarkURI() synchronous API in editBookmarkOverlay.js.
https://reviewboard.mozilla.org/r/156730/#review161996
Attachment #8885940 -
Flags: review?(standard8) → review+
Comment 6•8 years ago
|
||
mozreview-review |
Comment on attachment 8885939 [details]
Bug 1379611 - Avoid GetFolderIdForItem() synchronous API in editBookmarkOverlay.js.
https://reviewboard.mozilla.org/r/156728/#review161990
::: browser/components/places/content/editBookmarkOverlay.js:1167
(Diff revision 1)
> this._initLoadInSidebar();
> break;
> }
> },
>
> - onItemMoved(aItemId, aOldParent, aOldIndex,
> + onItemMoved(id, oldParentId, oldIndex, newParentId, bewIndex, type, guid,
typo: bewIndex
Attachment #8885939 -
Flags: review?(standard8) → review+
Comment 7•8 years ago
|
||
mozreview-review |
Comment on attachment 8885941 [details]
Bug 1379611 - Avoid GetItemTitle() synchronous API in editBookmarkOverlay.js.
https://reviewboard.mozilla.org/r/156732/#review161998
FYI there's a little bit of bitrot in browser-places.js but it doesn't seem hard to fix.
::: browser/components/places/content/editBookmarkOverlay.js:34
(Diff revision 1)
> // properties of the target folder.
> let itemId = node ? node.itemId : -1;
> - let itemGuid = PlacesUIUtils.useAsyncTransactions && node ?
> + let itemGuid = node ? PlacesUtils.getConcreteItemGuid(node) : null;
> - PlacesUtils.getConcreteItemGuid(node) : null;
> let isItem = itemId != -1;
> - let isFolderShortcut = isItem &&
> + let isFolderShortcut = isItem && node &&
I think we still need the node check here - for legacy add-ons?
::: npm-shrinkwrap.json:770
(Diff revision 1)
> "integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4="
> },
> "minimatch": {
> "version": "3.0.4",
> "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
> - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
> + "integrity": "sha1-UWbihkV/AzBgZL5Ul+jbsMPTIIM=",
Strange, I wonder how the shas are different style. Still we probably don't want to commit this with this bug.
Attachment #8885941 -
Flags: review?(standard8) → review+
Assignee | ||
Comment 8•8 years ago
|
||
mozreview-review-reply |
Comment on attachment 8885941 [details]
Bug 1379611 - Avoid GetItemTitle() synchronous API in editBookmarkOverlay.js.
https://reviewboard.mozilla.org/r/156732/#review161998
> I think we still need the node check here - for legacy add-ons?
I added a node check indeed... but it's not needed, the isItem check already guarantees a node.
But maybe I'm misreading your comment?
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 14•8 years ago
|
||
mozreview-review-reply |
Comment on attachment 8885941 [details]
Bug 1379611 - Avoid GetItemTitle() synchronous API in editBookmarkOverlay.js.
https://reviewboard.mozilla.org/r/156732/#review161998
> I added a node check indeed... but it's not needed, the isItem check already guarantees a node.
> But maybe I'm misreading your comment?
Looking back at the diff, I think I must have been miss-reading. You have certainly added a node check there, so I must have been mixing up which way around things were happening.
Comment 15•8 years ago
|
||
Pushed by mak77@bonardo.net:
https://hg.mozilla.org/integration/autoland/rev/422dc84cfcdc
Avoid GetFolderIdForItem() synchronous API in editBookmarkOverlay.js. r=standard8
https://hg.mozilla.org/integration/autoland/rev/675b048911ab
Avoid GetBookmarkURI() synchronous API in editBookmarkOverlay.js. r=standard8
https://hg.mozilla.org/integration/autoland/rev/c6ea57f05ae9
Avoid GetItemTitle() synchronous API in editBookmarkOverlay.js. r=standard8
Comment 16•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/422dc84cfcdc
https://hg.mozilla.org/mozilla-central/rev/675b048911ab
https://hg.mozilla.org/mozilla-central/rev/c6ea57f05ae9
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox56:
--- → fixed
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → Firefox 56
Updated•8 years ago
|
Iteration: --- → 56.3 - Jul 24
Updated•8 years ago
|
Flags: qe-verify? → qe-verify-
Updated•3 years ago
|
Performance Impact: --- → P2
Whiteboard: [reserve-photon-performance] [qf:p2][fxsearch] → [reserve-photon-performance] [fxsearch]
You need to log in
before you can comment on or make changes to this bug.
Description
•