diff --git a/xpfe/browser/resources/content/navigator.xul b/xpfe/browser/resources/content/navigator.xul
index 58dab166ef62..03b552e2fe21 100644
--- a/xpfe/browser/resources/content/navigator.xul
+++ b/xpfe/browser/resources/content/navigator.xul
@@ -113,6 +113,9 @@ Contributor(s): ______________________________________. -->
+
+
+
diff --git a/xpfe/components/bookmarks/resources/bookmarks.xul b/xpfe/components/bookmarks/resources/bookmarks.xul
index cec414af74a7..d182bdce264a 100644
--- a/xpfe/components/bookmarks/resources/bookmarks.xul
+++ b/xpfe/components/bookmarks/resources/bookmarks.xul
@@ -48,6 +48,7 @@
+
@@ -102,7 +103,7 @@
-
+
+ observes="cmd_bm_delete"/>
diff --git a/xpfe/components/bookmarks/resources/bookmarksPanel.xul b/xpfe/components/bookmarks/resources/bookmarksPanel.xul
index e8ee75e36fab..03c225224f0e 100644
--- a/xpfe/components/bookmarks/resources/bookmarksPanel.xul
+++ b/xpfe/components/bookmarks/resources/bookmarksPanel.xul
@@ -61,7 +61,7 @@
-
+
diff --git a/xpfe/components/bookmarks/resources/bookmarksTree.js b/xpfe/components/bookmarks/resources/bookmarksTree.js
index 971ed417170f..76479cbeca77 100644
--- a/xpfe/components/bookmarks/resources/bookmarksTree.js
+++ b/xpfe/components/bookmarks/resources/bookmarksTree.js
@@ -367,7 +367,9 @@ BookmarksTree.prototype = {
{
var selectedItem = this.getBestItem();
if (!selectedItem) return "NC:BookmarksRoot";
- while (selectedItem) {
+ // If we don't check for localName we walk the DOM tree up to the window node,
+ // which is Bad.
+ while (selectedItem.localName == "treeitem") {
if (selectedItem.getAttribute("container") == "true")
return NODE_ID(selectedItem);
selectedItem = selectedItem.parentNode.parentNode;
diff --git a/xpfe/components/prefwindow/resources/content/pref-offline.xul b/xpfe/components/prefwindow/resources/content/pref-offline.xul
index a7be14b03e34..dbde690f3c7f 100644
--- a/xpfe/components/prefwindow/resources/content/pref-offline.xul
+++ b/xpfe/components/prefwindow/resources/content/pref-offline.xul
@@ -54,8 +54,6 @@
-
-
-
-
diff --git a/xpfe/components/prefwindow/resources/content/preftree.xul b/xpfe/components/prefwindow/resources/content/preftree.xul
index bcd3b73001ae..44fe6a7a9f0d 100644
--- a/xpfe/components/prefwindow/resources/content/preftree.xul
+++ b/xpfe/components/prefwindow/resources/content/preftree.xul
@@ -139,12 +139,6 @@
-
-
-
-
-
-
@@ -165,6 +159,13 @@
+
+
+
+
+
+
+
diff --git a/xpfe/components/prefwindow/resources/locale/en-US/pref-offline.dtd b/xpfe/components/prefwindow/resources/locale/en-US/pref-offline.dtd
index 10bcf9702fa5..ff2f1187f20d 100644
--- a/xpfe/components/prefwindow/resources/locale/en-US/pref-offline.dtd
+++ b/xpfe/components/prefwindow/resources/locale/en-US/pref-offline.dtd
@@ -4,8 +4,8 @@
-
+