Closed Bug 329842 Opened 18 years ago Closed 17 years ago

Add support for POST keywords

Categories

(Firefox :: Bookmarks & History, defect, P3)

defect

Tracking

()

VERIFIED FIXED
Firefox 3 alpha5

People

(Reporter: brettw, Assigned: asaf)

References

Details

(Whiteboard: [Fx2-parity])

Attachments

(1 file, 3 obsolete files)

See bug 318817
Priority: -- → P2
Target Milestone: --- → Firefox 2 alpha2
Whiteboard: swag: 1d
Blocks: 329281
Bug 261124 is the new search service, which may be used to handle keyword searches in the future. If that doesn't work out, we'll do this bug instead for FF2.
No longer blocks: 329281
Depends on: 261124
Summary: Add support for POST keywords → Add support for POST keywords to nsNavBookmarksService
Priority: P2 → P3
Target Milestone: Firefox 2 alpha2 → Firefox 3 alpha2
I suppose this is the bug for the broken post keyword search in trunk.
Flags: blocking1.9a1?
Blocks: 317881
Assignee: brettw → nobody
Whiteboard: swag: 1d → [Fx2-parity]
Blocks: 370099, 370959
No longer blocks: 317881
Blocks: 317881
No longer blocks: 370959
Flags: blocking1.9a1?
Attached patch fix v1 (obsolete) — Splinter Review
stores anno against URI, as it's not specific to the bookmark, but to the URI. also, not unsetting on undo-create-bookmark, b/c again, it's not specific to the bookmark, and it'll get removed when the URI gets removed from moz_places.
Assignee: nobody → dietrich
Status: NEW → ASSIGNED
Attachment #262089 - Flags: review?(mano)
Comment on attachment 262089 [details] [diff] [review]
fix v1

I disagree; setting the annotation on the bookmarked URI is fine, but undoing a command should undo everything it did. For code sanity & readability, you may want to aggregate a "edit keyword" transaction w/ PlacesCreateItemTransaction rather than passing the keyword & post data to PlacesCreateItemTransaction/
Attachment #262089 - Flags: review?(mano) → review-
Attached patch fix v2 - fixes mano's comments (obsolete) — Splinter Review
Attachment #262089 - Attachment is obsolete: true
Attachment #262313 - Flags: review?(mano)
Comment on attachment 262313 [details] [diff] [review]
fix v2 - fixes mano's comments

Aggregate !- childTransacrtions. As in,  s/PlacesEditBookmarkKeywordTransaction/PlacesEditURLKeywordTransaction

and make it take a url rather than a bookmark identifier.
Attachment #262313 - Flags: review?(mano) → review-
(In reply to comment #6)
> (From update of attachment 262313 [details] [diff] [review])
> Aggregate !- childTransacrtions. As in, 
> s/PlacesEditBookmarkKeywordTransaction/PlacesEditURLKeywordTransaction
> 
> and make it take a url rather than a bookmark identifier.
> 

mano, do you mean PlacesEditURLPOSTDataTransaction? the keyword is associated with the bookmark, the post data with the url.
Ew, why the difference? I somehow read it like you're making both uri-based (kinda makes sense).
(In reply to comment #8)
> Ew, why the difference? I somehow read it like you're making both uri-based
> (kinda makes sense).
> 

keywords don't make sense to be bookmark-centric at all, as a keyword can only resolve to a single uri. however, solving that problem is not for this bug. having the post data be bookmark-centric doesn't really buy us anything, just complicates the keywords api (eg: having GetKeywordForURI have 2 out parameters or something). the current patch behaves like the old bookmarks, but allows us to eventually move towards uri-centric keywords if we want, w/o breaking the navbookmarksservice keywords api.

No longer blocks: 370099
Flags: blocking-firefox3+
Target Milestone: Firefox 3 alpha2 → Firefox 3 alpha5
Blocks: 370079
Blocks: 370099
No longer blocks: 370079
Attached patch patch (obsolete) — Splinter Review
with import/export support.
Assignee: dietrich → mano
Attachment #262313 - Attachment is obsolete: true
Attachment #264812 - Attachment is patch: true
Attachment #264812 - Attachment mime type: application/octet-stream → text/plain
Attachment #264812 - Flags: review?(sspitzer)
Comment on attachment 264812 [details] [diff] [review]
patch

as discussed over irc, please fix "this.annoataions" (and re-test undo/redo)
Attachment #264812 - Flags: review?(sspitzer) → review+
Attached patch for checkinSplinter Review
Attachment #264812 - Attachment is obsolete: true
mozilla/browser/base/content/browser.js 1.784
mozilla/browser/components/places/content/bookmarkProperties.js 1.47
mozilla/browser/components/places/content/controller.js 1.150
mozilla/browser/components/places/content/utils.js 1.37
mozilla/browser/components/places/src/nsPlacesImportExportService.cpp 1.7
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Summary: Add support for POST keywords to nsNavBookmarksService → Add support for POST keywords
Bug 387833 says "I can has testcase, plz?"
Flags: in-testsuite?
387833 is verified. Does that mean that this is verified as well?

That was verified in Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.9a7pre) Gecko/200707120404 Minefield/3.0a7pre
This has been verified and Tracy added a test case for this.
Status: RESOLVED → VERIFIED
Flags: in-litmus+
This works now, but POST keyword bookmarks still don't get imported properly from earlier Firefox versions.
> This works now, but POST keyword bookmarks still don't get imported properly
> from earlier Firefox versions.

zoinks.  spun that off to bug #390747
No longer blocks: 390747
Depends on: 390747
Flags: in-testsuite?
Bug 451915 - move Firefox/Places bugs to Firefox/Bookmarks and History. Remove all bugspam from this move by filtering for the string "places-to-b-and-h".

In Thunderbird 3.0b, you do that as follows:
Tools | Message Filters
Make sure the correct account is selected. Click "New"
Conditions: Body   contains   places-to-b-and-h
Change the action to "Delete Message".
Select "Manually Run" from the dropdown at the top.
Click OK.

Select the filter in the list, make sure "Inbox" is selected at the bottom, and click "Run Now". This should delete all the bugspam. You can then delete the filter.

Gerv
Component: Places → Bookmarks & History
QA Contact: places → bookmarks
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: