diff --git a/mozilla/xpfe/browser/resources/content/navigator.xul b/mozilla/xpfe/browser/resources/content/navigator.xul
index 127c8184992..9ceb21618f0 100644
--- a/mozilla/xpfe/browser/resources/content/navigator.xul
+++ b/mozilla/xpfe/browser/resources/content/navigator.xul
@@ -251,6 +251,7 @@ Contributor(s): ______________________________________. -->
ondragover="nsDragAndDrop.dragOver(event, bookmarksButtonObserver);"
template="bookmarksMenuTemplate">
@@ -261,7 +262,7 @@ Contributor(s): ______________________________________. -->
-
+
diff --git a/mozilla/xpfe/browser/resources/content/personalToolbar.js b/mozilla/xpfe/browser/resources/content/personalToolbar.js
index 5e94603a35d..90afe8ed9ab 100644
--- a/mozilla/xpfe/browser/resources/content/personalToolbar.js
+++ b/mozilla/xpfe/browser/resources/content/personalToolbar.js
@@ -499,5 +499,24 @@ function BM_navigatorLoad(aEvent)
}
}
+
+// An interim workaround for 101131 - Bookmarks Toolbar button nonfunctional.
+// This simply checks to see if the bookmark menu is empty (aside from static
+// items) when it is opened and if it is, prompts a rebuild.
+// The best fix for this is more time consuming, and relies on document
+// s without content (referencing a remote by id)
+// be noted as 'waiting' for a template to load from somewhere. When the
+// ::Merge function in nsXULDocument is called and a template node inserted,
+// the id of the template to be inserted is looked up in the map of waiting
+// references, and then the template builder hooked up.
+function checkBookmarksMenuTemplateBuilder()
+{
+ var lastStaticSeparator = document.getElementById("lastStaticSeparator");
+ if (!lastStaticSeparator.nextSibling) {
+ var button = document.getElementById("bookmarks-button");
+ button.builder.rebuild();
+ }
+}
+
addEventListener("load", BM_navigatorLoad, false);