"open bookmarks in tabs" didn't work on Nightly and lately Firefox versions (regression)

This commit is contained in:
Piro / SHIMODA Hiroshi 2011-10-31 23:58:02 +09:00
parent 160af4684d
commit c78abb4cde

View File

@ -233,11 +233,12 @@ var TreeStyleTabBookmarksService = {
).replace( ).replace(
/(browserWindow\.(?:getBrowser\(\)|gBrowser)\.loadTabs\([^;]+\);)/, /(browserWindow\.(?:getBrowser\(\)|gBrowser)\.loadTabs\([^;]+\);)/,
<![CDATA[ <![CDATA[
var TSTResult = browserWindow.TreeStyleTabBookmarksService.handleTabsOpenProcess(where, aEvent, browserWindow, ids, urls, replaceCurrentTab, aFolderTitle); var TSTResult = browserWindow.TreeStyleTabBookmarksService.handleTabsOpenProcess(where, aEvent, browserWindow, ids, urls, typeof replaceCurrentTab == 'undefined' ? undefined : replaceCurrentTab, aFolderTitle);
TSTTreeStructure = TSTResult.treeStructure; TSTTreeStructure = TSTResult.treeStructure;
TSTPreviousTabs = TSTResult.previousTabs; TSTPreviousTabs = TSTResult.previousTabs;
TSTOpenGroupBookmarkBehavior = TSTResult.behavior; TSTOpenGroupBookmarkBehavior = TSTResult.behavior;
replaceCurrentTab = TSTResult.replaceCurrentTab; if (typeof replaceCurrentTab != 'undefined')
replaceCurrentTab = TSTResult.replaceCurrentTab;
$1 $1
]]> ]]>
).replace( ).replace(