Closed Bug 1081101 Opened 10 years ago Closed 10 years ago

Implement eraseEverything in Bookmarks.jsm

Categories

(Toolkit :: Places, defect)

defect
Not set
normal
Points:
5

Tracking

()

RESOLVED FIXED
mozilla36
Iteration:
36.1

People

(Reporter: mak, Assigned: mak)

References

(Blocks 1 open bug)

Details

Attachments

(2 obsolete files)

Bug 1068009 implements the single removal option, batch removals must still be implemented.
Flags: in-testsuite?
Flags: firefox-backlog+
Points: --- → 5
Flags: qe-verify-
Summary: Implement batch removal options in Bookmarks.jsm → Implement eraseEverything in Bookmarks.jsm
instead of batch removals we will implement an eraseEverything API that is more coherent with our use cases (empty the roots before a restore mostly, plus tests)
Assignee: nobody → mak77
Status: NEW → ASSIGNED
Iteration: --- → 36.1
Attached patch patch v1 (obsolete) (deleted) — Splinter Review
I'm not totally sold on the API name, if you have better ideas, I'm listening. Alternatives to erase could be wipe or empty... alternatives to Everything may be All (but sounds less scary), Store (but it's not very clear) or Roots (but then we must introduce the roots concept in the API)
Attachment #8506233 - Flags: review?(mano)
Attached patch patch v2 (obsolete) (deleted) — Splinter Review
oops I forgot tpo hg add the test
Attachment #8506233 - Attachment is obsolete: true
Attachment #8506233 - Flags: review?(mano)
Attachment #8506237 - Flags: review?(mano)
Comment on attachment 8506237 [details] [diff] [review]
patch v2

Review of attachment 8506237 [details] [diff] [review]:
-----------------------------------------------------------------

Again, at this point I prefer to review one giant patch, but this patch alone looks fine.

::: toolkit/components/places/Bookmarks.jsm
@@ +890,5 @@
> +      if (val !== null) {
> +        Object.defineProperty(item, prop, { value: val
> +                                          , writable: true
> +                                          , enumerable: false
> +                                          , configurable: false });

See my comments on the main bug.
Attachment #8506237 - Flags: review?(mano) → review+
Comment on attachment 8506237 [details] [diff] [review]
patch v2

patch merged into bug Bug 1068009.
Attachment #8506237 - Attachment is obsolete: true
Depends on: 1068009
Flags: in-testsuite? → in-testsuite+
Target Milestone: --- → mozilla36
fixed by Bug 1068009.
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: