Closed
Bug 1148466
Opened 10 years ago
Closed 10 years ago
Use new keywords API in BookmarkHTMLUtils and BookmarkJSONUtils
Categories
(Toolkit :: Places, defect)
Toolkit
Places
Tracking
()
People
(Reporter: mak, Assigned: mak)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
54.91 KB,
patch
|
ttaubert
:
review+
|
Details | Diff | Splinter Review |
62.44 KB,
patch
|
lizzard
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
It's possible some of this will already happen with the bookmarks conversion, but still better to track it.
Assignee | ||
Comment 1•10 years ago
|
||
we need this to properly support backup/restore of POST data for keywords, otherwise we are trying to set/read annos that are no more used.
We likely need to uplift the fix to Aurora.
see also http://mxr.mozilla.org/mozilla-central/ident?i=POST_DATA_ANNO
Assignee: nobody → mak77
Status: NEW → ASSIGNED
Assignee | ||
Updated•10 years ago
|
Points: 2 → 3
Flags: in-testsuite?
Updated•10 years ago
|
Iteration: --- → 40.1 - 13 Apr
Flags: qe-verify?
Flags: firefox-backlog+
Comment 2•10 years ago
|
||
Changing bug dependencies based on Bug 1095426 comment 6
Assignee | ||
Comment 3•10 years ago
|
||
I'm sorry for the huge tests changes, they were terrible, this makes them nicer, even if not yet as good as I'd want them.
Btw, what matters is the code changes
Attachment #8590827 -
Flags: review?(ttaubert)
Assignee | ||
Comment 5•10 years ago
|
||
note we should uplift this.
Updated•10 years ago
|
Iteration: 40.1 - 13 Apr → 40.2 - 27 Apr
Comment 6•10 years ago
|
||
Comment on attachment 8590827 [details] [diff] [review]
patch v1
Review of attachment 8590827 [details] [diff] [review]:
-----------------------------------------------------------------
::: toolkit/components/places/BookmarkJSONUtils.jsm
@@ +190,5 @@
> */
> + importFromURL(spec) {
> + return new Promise((resolve, reject) => {
> + let streamObserver = {
> + onStreamComplete: (aLoader, aContext, aStatus, aLength, aResult) => {
Too bad nsIStreamLoaderObserver doesn't have the function annotation.
::: toolkit/components/places/PlacesUtils.jsm
@@ +1811,5 @@
> }
> return exclude;
> };
>
> let rootItem = null, rootItemCreationEx = null;
Can remove |rootItemCreationEx|.
::: toolkit/components/places/tests/unit/test_bookmarks_html_corrupt.js
@@ +79,5 @@
>
> + let entry = yield PlacesUtils.keywords.fetch({ url: bookmarkNode.uri });
> + Assert.equal("test", entry.keyword);
> + Assert.equal("hidden1%3Dbar&text1%3D%25s", entry.postData);
> +
Nit: stray white space
Attachment #8590827 -
Flags: review?(ttaubert) → review+
Assignee | ||
Updated•10 years ago
|
Flags: qe-verify? → qe-verify-
Assignee | ||
Updated•10 years ago
|
Flags: in-testsuite? → in-testsuite+
Comment 8•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
status-firefox40:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
Assignee | ||
Comment 9•10 years ago
|
||
this includes the dependency bug (that is a low risk method addition used only by the patch in this bug)
Approval Request Comment
[Feature/regressing bug #]: new bookmarks keywords API
[User impact if declined]: POST data of keywords is lost on restoring a backup or importing a bookmarks.html file
[Describe test coverage new/current, TreeHerder]: unit test
[Risks and why]: contained changes, has unit tests
[String/UUID change made/needed]: none
Attachment #8593950 -
Flags: approval-mozilla-aurora?
Comment 10•10 years ago
|
||
Comment on attachment 8593950 [details] [diff] [review]
coalesced patch
Approving for uplift to aurora since it looks like we have good test coverage of this fix, and can possibly avoid people losing their keyword data on bookmarks.
Attachment #8593950 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 11•10 years ago
|
||
status-firefox39:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•