ライブラリ更新
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5709 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
db430aa502
commit
40d4f86cc9
@ -70,6 +70,7 @@
|
|||||||
http://www.cozmixng.org/repos/piro/fx3-compatibility-lib/trunk/license.txt
|
http://www.cozmixng.org/repos/piro/fx3-compatibility-lib/trunk/license.txt
|
||||||
original:
|
original:
|
||||||
http://www.cozmixng.org/repos/piro/fx3-compatibility-lib/trunk/operationHistory.js
|
http://www.cozmixng.org/repos/piro/fx3-compatibility-lib/trunk/operationHistory.js
|
||||||
|
http://www.cozmixng.org/repos/piro/fx3-compatibility-lib/trunk/operationHistory.test.js
|
||||||
*/
|
*/
|
||||||
(function() {
|
(function() {
|
||||||
const currentRevision = 4;
|
const currentRevision = 4;
|
||||||
@ -216,10 +217,10 @@
|
|||||||
|
|
||||||
getWindowId : function(aWindow)
|
getWindowId : function(aWindow)
|
||||||
{
|
{
|
||||||
var windowId;
|
var windowId = aWindow.document.documentElement.getAttribute(this.kWINDOW_ID);
|
||||||
try {
|
try {
|
||||||
windowId = aWindow.document.documentElement.getAttribute(this.kWINDOW_ID) ||
|
if (!windowId)
|
||||||
this.SessionStore.getWindowValue(aWindow, this.kWINDOW_ID);
|
windowId = this.SessionStore.getWindowValue(aWindow, this.kWINDOW_ID);
|
||||||
}
|
}
|
||||||
catch(e) {
|
catch(e) {
|
||||||
}
|
}
|
||||||
@ -237,7 +238,7 @@
|
|||||||
|
|
||||||
getWindowById : function(aId)
|
getWindowById : function(aId)
|
||||||
{
|
{
|
||||||
var targets = this.WindowMediator.getZOrderDOMWindowEnumerator('*', true);
|
var targets = this.WindowMediator.getZOrderDOMWindowEnumerator(null, true);
|
||||||
while (targets.hasMoreElements())
|
while (targets.hasMoreElements())
|
||||||
{
|
{
|
||||||
let target = targets.getNext().QueryInterface(Ci.nsIDOMWindowInternal);
|
let target = targets.getNext().QueryInterface(Ci.nsIDOMWindowInternal);
|
||||||
@ -257,7 +258,8 @@
|
|||||||
|
|
||||||
init : function()
|
init : function()
|
||||||
{
|
{
|
||||||
var targets = this.WindowMediator.getZOrderDOMWindowEnumerator('navigator:browser', true);
|
// inherit history table from existing window
|
||||||
|
var targets = this.WindowMediator.getZOrderDOMWindowEnumerator(null, true);
|
||||||
while (targets.hasMoreElements())
|
while (targets.hasMoreElements())
|
||||||
{
|
{
|
||||||
let target = targets.getNext().QueryInterface(Ci.nsIDOMWindowInternal);
|
let target = targets.getNext().QueryInterface(Ci.nsIDOMWindowInternal);
|
||||||
|
Loading…
Reference in New Issue
Block a user