Closed
Bug 322988
Opened 17 years ago
Closed 17 years ago
Bookmark properties should be available for pages other than the currently-viewed page
Categories
(Firefox :: Bookmarks & History, defect, P1)
Firefox
Bookmarks & History
Tracking
()
RESOLVED
FIXED
Firefox 2 alpha2
People
(Reporter: bugs, Assigned: mozilla)
References
Details
(Keywords: fixed1.8.1)
Attachments
(1 file, 3 obsolete files)
We need a simple info panel for individual bookmarks/places that allow them to be edited. Something really simple is more than enough for right now.
Reporter | ||
Updated•17 years ago
|
Severity: normal → blocker
Priority: -- → P1
Reporter | ||
Comment 2•17 years ago
|
||
*** Bug 317835 has been marked as a duplicate of this bug. ***
Reporter | ||
Updated•17 years ago
|
Target Milestone: --- → Firefox 2 alpha1
Comment 3•17 years ago
|
||
*** Bug 325302 has been marked as a duplicate of this bug. ***
Assignee | ||
Updated•17 years ago
|
Status: NEW → ASSIGNED
Target Milestone: Firefox 2 alpha1 → Firefox 2 alpha2
Updated•17 years ago
|
Summary: Info Panel for individual entries → Info Panel for individual entries (properties)
Assignee | ||
Updated•17 years ago
|
Summary: Info Panel for individual entries (properties) → Bookmark properties should be available for pages other than the currently-viewed page
Comment 4•17 years ago
|
||
Places are enabled starting 20060302 trunk nightly. However bookmark properties is still unavaliable. Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060301 Firefox/1.6a1 ID:2006030201
Comment 5•17 years ago
|
||
*** Bug 329116 has been marked as a duplicate of this bug. ***
I can't seem to view properties or rename a bookmark of the current page either. Better summary for this bug, maybe?
Assignee | ||
Comment 7•17 years ago
|
||
Attachment #213926 -
Flags: superreview?(bugs)
Reporter | ||
Comment 8•17 years ago
|
||
Comment on attachment 213926 [details] [diff] [review] Patch that enables editing bookmark properties from context menu. >+ /** >+ * Save any changes that might have been made while the properties dialog >+ * was open. >+ */ >+ >+ _saveChanges: function PBD_saveChanges() { nit: skip the nl between comment and definition. >+ var urlbox = this._dialogWindow.document.getElementById("edit-urlbar"); >+ if (urlbox.value != this._bookmarkURI.spec) { >+ // TODO delete existing bookmark, create new one with same folder/locations >+ } can you LOG() a message here saying this too, so we don't forget!! >+ /** >+ * This method is called to exit the Bookmark Properties panel. >+ */ >+ >+ _hideBookmarkProperties: >+ function BPP__hideBookmarkProperties() { nit: this will fit on one line, no need to wrap >Index: browser/components/places/content/bookmarkProperties.xul >+ ondialogaccept="BookmarkPropertiesPanel.dialogDone();" >+ xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" onload="BookmarkPropertiesPanel.init(window, window.arguments[0], window.arguments[1]);"> nit: wrap your longer lines: <window id="goat" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" onload="..."> >+ >+ <script type="application/x-javascript" >+ src="chrome://browser/content/places/bookmarkProperties.js"/> nit: line up attributes, you inserted a tab too. never use \t in mozilla code. >Index: browser/components/places/content/controller.js > /** >+ * Opens the bookmark properties for the selected URI Node. >+ */ >+ >+ showBookmarkPropertiesForSelection: >+ function PC_showBookmarkPropertiesForSelection() { nit: again - no newline between comment and defn. >+ _assertURINotString: function PC__assertURINotString(value) { >+ ASSERT((typeof(value) == "object") && !(value instanceof String), "This method should be passed a URI as a nsIURI object, not as a string."); >+ }, nit: wrap long lines >+ _updateControlStates: function PC__updateControlStates() { >+ showHistory: function PC_showHistory() { >+ showBookmarks: function PC_showBookmarks() { >+ _showPlacesView: function PC__showPlacesView(uriString) { controller.js should not know about the structure of the browser window. These functions need to stay in the PlacesBrowserShim object in browser.js >Index: browser/themes/winstripe/browser/places/bookmarkProperties.css > #bookmarkproperties { >- background-color: yellow; >+ background-color: -moz-Dialog; >+ color: -moz-DialogText; >+ font: -moz-dialog; You shouldn't have to do this. Make your <dialog> an actual <dialog> now. This will come for free.
Attachment #213926 -
Flags: superreview?(bugs) → superreview-
Assignee | ||
Comment 9•17 years ago
|
||
Attachment #213926 -
Attachment is obsolete: true
Attachment #214050 -
Flags: superreview?(bugs)
Reporter | ||
Comment 10•17 years ago
|
||
Comment on attachment 214050 [details] [diff] [review] Enables editing bookmark properties from more places, adds shortcut (aka keyword editing), tidies up the PlacesBrowserShim in browser.js >Index: browser/locales/en-US/chrome/browser/places/places.dtd >=================================================================== >RCS file: /cvsroot/mozilla/browser/locales/en-US/chrome/browser/places/places.dtd,v >retrieving revision 1.1.2.3 >diff -u -u -8 -p -r1.1.2.3 places.dtd >--- browser/locales/en-US/chrome/browser/places/places.dtd 28 Feb 2006 22:59:53 -0000 1.1.2.3 >+++ browser/locales/en-US/chrome/browser/places/places.dtd 5 Mar 2006 02:29:19 -0000 >@@ -201,22 +201,22 @@ > <!ENTITY location.status.not_bookmarked > "Star (Off)"> > <!ENTITY location.status.bookmarked > "Star (On)"> > <!ENTITY location.status.bookmark.tooltip > "Add a Bookmark to this page"> > <!ENTITY bookmark.property.panel.title > "Bookmark Properties"> >+<!ENTITY bookmark.property.location >+ "Location"> Separate .dtd file for these please >Index: browser/components/places/content/bookmarkProperties.xul > >+<?xml-stylesheet href="chrome://browser/skin/"?> Don't include the browser skin, include chrome://global/skin/ instead - should be all you need for the dialog. >- <button id="places-link" label="&cmd.show_bookmarks.label;" oncommand="PlacesBrowserShim.dialogShowBookmarks(window);"/> >- <button label="&cmd.delete_bookmark.label;" oncommand="PlacesBrowserShim.dialogDeleteBookmark(window);" align="end"/> >+ <button label="&cmd.delete_bookmark.label;" oncommand="BookmarkPropertiesPanel.dialogDeleteBookmark();" align="end"/> nit: wrap > <spacer flex="1"/> >- <button label="&cmd.hide_bookmark_properties.label;" oncommand="PlacesBrowserShim.dialogDone(window);"/> >+ <button label="&cmd.hide_bookmark_properties.label;" oncommand="BookmarkPropertiesPanel.dialogDone();"/> wrap! >Index: browser/components/places/content/controller.js >+ /* NOTE(jhughes): don't use yet; UI doesn't update correctly 2006-03-04*/ If the UI update doesn't work, file a bug on brettw and cite it here. One more patch.
Attachment #214050 -
Flags: superreview?(bugs) → superreview-
Assignee | ||
Comment 11•17 years ago
|
||
Attachment #214050 -
Attachment is obsolete: true
Attachment #214223 -
Flags: superreview?(bugs)
Assignee | ||
Updated•17 years ago
|
Attachment #214223 -
Flags: review?(annie.sullivan)
Reporter | ||
Comment 12•17 years ago
|
||
Comment on attachment 214223 [details] [diff] [review] Incorporates requests from previous patch (line wrapping, moving some strings to a new DTD file). sr=ben@mozilla.org
Attachment #214223 -
Flags: superreview?(bugs) → superreview+
Comment 13•17 years ago
|
||
Comment on attachment 214223 [details] [diff] [review] Incorporates requests from previous patch (line wrapping, moving some strings to a new DTD file). These are just some pretty small nits: It seems like the terms tags and folders are still used interchangeably in some places -- is there any reason _populateTags(), _createTagElement(), tagClicked(), etc. don't refer to folders? >+ _populateProperties: function BPP__populateProperties() { Can you put comments above this function explaining what it does like you did with all the other functions? >+ /** >+ * Makes a URI from a spec. >+ * @param spec >+ * The string spec of the URI >+ * @returns A URI object for the spec. >+ */ >+ _uri: function PC__uri(spec) { >+ var ios = >+ Cc["@mozilla.org/network/io-service;1"]. >+ getService(Ci.nsIIOService); >+ return ios.newURI(spec, null, null); >+ }, Would it make sense to cache the IO Service here like we cache the bookmarks and history services? >+ _assertURINotString: function PC__assertURINotString(value) { >+ ASSERT((typeof(value) == "object") && !(value instanceof String), "This method should be passed a URI as a nsIURI object, not as a string."); >+ }, Does this function really need to be duplicated in both controller.js and bookmarkProperties.js?
Attachment #214223 -
Flags: superreview?(bugs)
Attachment #214223 -
Flags: superreview+
Attachment #214223 -
Flags: review?(annie.sullivan)
Attachment #214223 -
Flags: review+
Reporter | ||
Comment 14•17 years ago
|
||
*** Bug 329319 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 15•17 years ago
|
||
Attachment #214223 -
Attachment is obsolete: true
Attachment #214223 -
Flags: superreview?(bugs)
Assignee | ||
Comment 16•17 years ago
|
||
Notes from CVS commit: * Allows the user to access Bookmark Properties dialog from context menus. * Adds support for editing the bookmark shortcut (formerly keyword) in the Bookmark Properties dialog. * Improves the appearance of the Bookmark Properties dialog. * Removes dead code from PlacesBrowserShim in browser.js NOTE: This doesn't reflect the final UI for this functionality; rather, this change is intended to add functionality for users of the nightlies. bug=322988 r=annie.sullivan@gmail.com sr=bugs@bengoodger.com
Reporter | ||
Comment 17•17 years ago
|
||
Comment on attachment 214223 [details] [diff] [review] Incorporates requests from previous patch (line wrapping, moving some strings to a new DTD file). sr=ben@mozilla.org
Attachment #214223 -
Flags: superreview+
Assignee | ||
Updated•17 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•17 years ago
|
Keywords: fixed1.8.1
Comment 18•17 years ago
|
||
Nit 1: The dialog is taller than my screen (1024x768, WinXP). The titlebar (with the red X close button) is not reachable. To close the dialog one must (1) make the dialog shorter by dragging the bottom border up (this causes a sliver of the titlebar to appear, enough to grab & drag it), (2) drag the dialog down a bit, and (3) close via red X in upper-right of titlebar. Nit 2: There are no "Cancel" and "OK" buttons (visible). How do we save our changes?
Comment 19•17 years ago
|
||
Peter, see bug 329606 and bug 329761 for the height issue. There appears to be no bug for the fact it is a general UI disaster.
Assignee | ||
Comment 20•17 years ago
|
||
I hear you James (and Lairo). As I mentioned above, this interface is mid-transition, and is likely to change dramatically soon. However, feel free to file bugs against me (or discuss on mozilla.dev.apps.firefox) with particular concerns. (My one request is that they be a little more specific than "general UI disaster". :] )
Comment 21•17 years ago
|
||
Joe, certainly, see bug 329792 and bug 329795.
Assignee | ||
Comment 22•17 years ago
|
||
Thanks, James!
Comment 23•14 years ago
|
||
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.
Description
•