wolfgang
wolfgang

Reputation: 7789

what is the xul file for the firefox "Edit this bookmark" Panel called?

okay, i need the xul file for the window which opens up when you try to bookmark a page in firefox,

i tried searching for chrome://browser/content/bookmarks/bookmarksManager.xul.

But i get the following error

File not found

Firefox can't find the file at chrome://browser/content/bookmarks/bookmarksManager.xul.

Check the file name for capitalization or other typing errors.
Check to see if the file was moved, renamed or deleted.

i can view browser.xul and other files but this one seems to be missing, what should i be searching for?

this is the popup i want to create an overlay for enter image description here

Upvotes: 0

Views: 1283

Answers (2)

M.J. Saedy
M.J. Saedy

Reputation: 336

There is no xul window, it is just a panel.

here is code to add a button to the bookmark panel (tested on Firefox 27, i don't know for 30):

let panel = document.getElementById('editBookmarkPanel');
//let lbl = panel.querySelector("#editBookmarkPanelTitle");
//if(lbl) lbl.parentNode.removeChild(lbl);
lbl = document.createElement('button');
lbl.setAttribute('label', 'Cool!');
lbl.setAttribute('id', 'foo');
lbl.setAttribute('oncommand', 'alert("foo")');
panel.appendChild(lbl)

BTW, to find out XUL window locations and almost anything else, install the following extensions: DOM Inspector (of course!) and InspectorWidget and Element Inspector the last two allow you inspect anything using a toolbar button or shift+RightClick.

Upvotes: 1

Noitidart
Noitidart

Reputation: 37238

In Australis the "Edit this bookmark" panel is created on runtime: http://mxr.mozilla.org/mozilla-aurora/source/browser/base/content/browser-places.js#1034

Upvotes: 2

Related Questions