Closed Bug 458044 Opened 17 years ago Closed 17 years ago

addPanel always opens added links INSIDE the sidebar

Categories

(Firefox :: Bookmarks & History, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 214530

People

(Reporter: bugzilla, Unassigned)

Details

When (unprivileged) JS code is using window.sidebar.addPanel() to add a bookmark to the FF sidebar, the added link ALWAYS has the 'open this link in the sidebar' property set. Now I remember it always used to be the policy of Mozilla not to allow unprivileged JS to add bookmarks at all; that was the user's responsibility. Maybe the Firefox ethos has changed here, which is fine, but surely either you should not allow any adding of bookmarks using window.sidebar.addPanel(), or you should perhaps add a param to it that lets you specify NOT to open the bookmark in the sidebar? The majority of webpages are just going to want to add a regular bookmark that opens in the browser window/tab.
Agreed, I was just about to file this bug. As a developer, I often need to pass a specific URL to bookmark, which is not the one in the location bar. I can provide a link for the user to click on, but the bookmark, once saved, is loaded in the sidebar.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.