mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-14 14:55:51 +01:00
Fix more cross-window object issues.
This commit is contained in:
@@ -1000,11 +1000,10 @@ var CommandLine = Module("commandline", {
|
||||
if (privateData == "never-save")
|
||||
return;
|
||||
|
||||
this.store = this.store.filter(line => (line.value || line) != str);
|
||||
dactyl.trapErrors(function () {
|
||||
this.store.push({ value: str, timestamp: Date.now() * 1000, privateData: privateData });
|
||||
}, this);
|
||||
this.store = this.store.slice(Math.max(0, this.store.length - options["history"]));
|
||||
let store = Array.filter(this.store, line => (line.value || line) != str);
|
||||
dactyl.trapErrors(
|
||||
() => store.push({ value: str, timestamp: Date.now() * 1000, privateData: privateData }));
|
||||
this.store = store.slice(Math.max(0, store.length - options["history"]));
|
||||
},
|
||||
/**
|
||||
* @property {function} Returns whether a data item should be
|
||||
|
||||
@@ -63,7 +63,8 @@ var Marks = Module("marks", {
|
||||
let mark = this.Mark();
|
||||
|
||||
if (Marks.isURLMark(name)) {
|
||||
mark.tab = util.weakReference(tabs.getTab());
|
||||
// FIXME: Disabled due to cross-compartment magic.
|
||||
// mark.tab = util.weakReference(tabs.getTab());
|
||||
this._urlMarks.set(name, mark);
|
||||
var message = "mark.addURL";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user