Closed
Bug 175232
Opened 23 years ago
Closed 23 years ago
Implement bookmark folder as start-up page
Categories
(Firefox :: Bookmarks & History, enhancement)
Tracking
()
VERIFIED
FIXED
Firebird0.6
People
(Reporter: boullet.marc, Assigned: p_ch)
Details
Attachments
(2 files, 2 obsolete files)
|
2.40 KB,
patch
|
Details | Diff | Splinter Review | |
|
2.61 KB,
patch
|
Details | Diff | Splinter Review |
Mozilla have it. Chimera is planning to have it.
Any plan here ?
Notice that Mozilla implementation is annoying when you're behind a proxy
with authentication since it popups a lot of windows requesting Name+password.
Updated•23 years ago
|
Target Milestone: --- → Phoenix0.5
Comment 1•23 years ago
|
||
This is either worksforme, wontfix, or fixed. The decision was made to allow
multiple start-up URLs to be listed in the startup preference. This was
implemented and is working. I'm resolving this as worksforme since it's
slightly different but covers the same behavior and won'tfix doesn't quite seem
to fit.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
| Reporter | ||
Comment 2•23 years ago
|
||
Asa,
I don't agree with this WFM.
If I follow your reasoning, we could suppress the "Use Bookmark..." button as
well since you can done load the bookmark in a single tab and use the "Use
current Pages" button to register the URL as the homepage.
I have a 15 lines patch I will attach when I'll get the patchmaker working.
So I reopen the bug. Feel free to mark it Won't fix when the patch has been
produced.
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
| Reporter | ||
Comment 3•23 years ago
|
||
s/done // in previous comment.
Patch for bookmark folder homepage
| Assignee | ||
Comment 4•23 years ago
|
||
Comment on attachment 107572 [details] [diff] [review]
patch
Thank you Marc for working on this. I planned to fix that.
> function onOK(aEvent)
> {
> var selection = gBookmarkTree._selection;
>- var url = BookmarksUtils.getProperty(selection.item[0], NC_NS+"URL", gBookmarkTree.tree.database);
>+ if (selection.type[0].indexOf("Folder") == -1)
In this particular case, you should better use selection.isContainer[0]
>+ var url = BookmarksUtils.getProperty(selection.item[0], NC_NS+"URL", gBookmarkTree.tree.database);
>+ else
>+ var url = BookmarksUtils.getURIsFromFolder(selection.item[0], gBookmarkTree.tree.database);
Include the loop here, excluding subfolders. No recursive helper, it could lead
to an insane number of home pages and would not be consistent with the 'open in
tabs' action.
In addition, it would be better not to compute the home page string here so we
could check that empty folders (or folders containing only folders) would not
enable the OK button.
take your time to update your patch, I won't have time unfortunately to
re-review it and check it in before ~10 days.
| Reporter | ||
Comment 5•23 years ago
|
||
Pierre,
Here is a new patch.
I'm wondering if, in updateOK, we could use isContainer[0] instead of 3
comparisons (in our particular case, it should work). BTW, it is not
important.
| Reporter | ||
Comment 6•23 years ago
|
||
Pierre,
Final (?) patch. I get rid of the global variable I introduced.
Good luck for your "exams".
Attachment #107572 -
Attachment is obsolete: true
Attachment #107700 -
Attachment is obsolete: true
Updated•23 years ago
|
Target Milestone: Phoenix0.5 → Phoenix0.6
| Reporter | ||
Comment 7•23 years ago
|
||
This new patch performs a sanity check to ensure that the
number of Uris is not insane.
| Assignee | ||
Comment 8•23 years ago
|
||
I checked in a version that also enable to select multiple bookmarks. Merci Marc!
I postponed the limitation on the number of pages since we should decide a
consistent behaviour for opening a folder in tabs.
Status: REOPENED → RESOLVED
Closed: 23 years ago → 23 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•