Skip to content

Commit

Permalink
Uniquely prefix DOM ids.
Browse files Browse the repository at this point in the history
Fixes #1401
  • Loading branch information
arantius committed Aug 19, 2011
1 parent 081371a commit 02126f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
4 changes: 2 additions & 2 deletions content/browser.js
Expand Up @@ -246,8 +246,8 @@ GM_BrowserUI.chromeUnload = function() {
* to show our context items.
*/
GM_BrowserUI.contextMenuShowing = function() {
var contextItem = document.getElementById("view-userscript");
var contextSep = document.getElementById("install-userscript-sep");
var contextItem = document.getElementById("greasemonkey-view-userscript");
var contextSep = document.getElementById("greasemonkey-install-sep");

var culprit = document.popupNode;

Expand Down
8 changes: 2 additions & 6 deletions content/browser.xul
Expand Up @@ -22,10 +22,6 @@
<command id="gm_toggle_checked" oncommand="GM_setEnabled(!GM_getEnabled());"/>
</commandset>

<window id="main-window">
<keyset id="userscript-command-keys" insertafter="mainKeyset"></keyset>
</window>

<toolbarpalette id='BrowserToolbarPalette'>
<toolbarbutton id='greasemonkey-tbb' type='menu-button'
class='toolbarbutton-1 chromeclass-toolbar-additional'
Expand All @@ -37,12 +33,12 @@
</toolbarpalette>

<popup id="contentAreaContextMenu">
<menuitem id="view-userscript"
<menuitem id="greasemonkey-view-userscript"
accesskey="&menu.show.accesskey;"
label="&menu.show;"
insertbefore="context-openlink"
oncommand="GM_BrowserUI.viewContextItemClicked(event);" />
<menuseparator id="install-userscript-sep"
<menuseparator id="greasemonkey-install-sep"
insertbefore="context-openlink" />
</popup>

Expand Down

0 comments on commit 02126f1

Please sign in to comment.