From 1c73d171eadfca10881c93ddacb8565f359c1ae8 Mon Sep 17 00:00:00 2001 From: Gomita Date: Thu, 28 Jun 2012 01:38:44 +0900 Subject: [PATCH] drop support for Firefox 3.6 --- chrome/content/flatbm/bookmarksPanel.js | 10 +--------- chrome/content/flatbm/history-panel.js | 10 ++-------- 2 files changed, 3 insertions(+), 17 deletions(-) diff --git a/chrome/content/flatbm/bookmarksPanel.js b/chrome/content/flatbm/bookmarksPanel.js index 81e10d4..ba23571 100644 --- a/chrome/content/flatbm/bookmarksPanel.js +++ b/chrome/content/flatbm/bookmarksPanel.js @@ -44,8 +44,7 @@ var FlatBookmarks = { // init search bar var textbox = document.getElementById("search-box"); var label = document.getElementById("sidebar-search-label"); - textbox.setAttribute("emptytext", label.value.replace(/:$/, "")); // [Firefox3.6] - textbox.setAttribute("placeholder", label.value.replace(/:$/, "")); // [Firefox4] + textbox.setAttribute("placeholder", label.value.replace(/:$/, "")); textbox.setAttribute("accesskey", label.getAttribute("accesskey")); label.hidden = true; // set itemId of root folders @@ -82,11 +81,6 @@ var FlatBookmarks = { ); // this fixes the problem that the old style tree appears in an eye's blink (2) document.documentElement.collapsed = false; - // [Firefox3.6] this fixes the following bug: when Firefox is starting up - // with opening Bookmarks Sidebar, placeholder text does not appear - // NOTE: do this after setting collapsed of documentElement to false - textbox.focus(); - textbox.blur(); }, onOpenFlatContainer: function(aContainer) { @@ -167,8 +161,6 @@ var FlatBookmarks = { PlacesControllerDragHelper.currentDataTransfer = event.dataTransfer; PlacesControllerDragHelper.currentDropTarget = event.target; var ip = new InsertionPoint(itemId, -1, Ci.nsITreeView.DROP_ON, false); - // [Firefox4] PlacesControllerDragHelper.onDrop accepts the second argument - // as dataTransfer object (and does not accept in Firefox3.6) PlacesControllerDragHelper.onDrop(ip, event.dataTransfer); break; default: diff --git a/chrome/content/flatbm/history-panel.js b/chrome/content/flatbm/history-panel.js index 2f08885..20f84f9 100644 --- a/chrome/content/flatbm/history-panel.js +++ b/chrome/content/flatbm/history-panel.js @@ -40,8 +40,7 @@ var FlatHistory = { ); // init search bar var label = document.getElementById("sidebar-search-label"); - gSearchBox.setAttribute("emptytext", label.value.replace(/:$/, "")); // [Firefox3.6] - gSearchBox.setAttribute("placeholder", label.value.replace(/:$/, "")); // [Firefox4] + gSearchBox.setAttribute("placeholder", label.value.replace(/:$/, "")); gSearchBox.setAttribute("accesskey", label.getAttribute("accesskey")); label.hidden = true; // init 'View' button @@ -50,7 +49,7 @@ var FlatHistory = { viewMenu.appendChild(viewButton.firstChild); viewMenu.label = viewButton.label; viewButton.hidden = true; - // [Mac][Firefox4] this fixes the problem: + // [Mac] this fixes the problem: // 'View' button has a blank space without icon since list-style-image is not applied if (window.getComputedStyle(viewMenu, null).listStyleImage == "none") viewMenu.setAttribute("_noiconic", "true"); @@ -71,11 +70,6 @@ var FlatHistory = { this.onPlaceChange(); // this fixes the problem that the old style tree appears in an eye's blink (2) document.documentElement.collapsed = false; - // [Firefox3.6] this fixes the following bug: when Firefox is starting up - // with opening History Sidebar, placeholder text does not appear - // NOTE: do this after setting collapsed of documentElement to false - gSearchBox.focus(); - gSearchBox.blur(); }, onOpenFlatContainer: function(aContainer) {