mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-19 11:17:59 +01:00
Ported fixes for PM-28.6
Ported fixes from https://github.com/RFDAJE/pentadactyl/tree/fix-palemoon-28.6
This commit is contained in:
@@ -1737,10 +1737,8 @@ var Buffer = Module("Buffer", {
|
|||||||
let timers = new WeakMap;
|
let timers = new WeakMap;
|
||||||
|
|
||||||
return function smoothScrollTo(node, x, y) {
|
return function smoothScrollTo(node, x, y) {
|
||||||
let { options } = overlay.activeModules;
|
let time = overlay.activeModules["scrolltime"];
|
||||||
|
let steps = overlay.activeModules["scrollsteps"];
|
||||||
let time = options["scrolltime"];
|
|
||||||
let steps = options["scrollsteps"];
|
|
||||||
|
|
||||||
let elem = Buffer.Scrollable(node);
|
let elem = Buffer.Scrollable(node);
|
||||||
|
|
||||||
@@ -2420,7 +2418,13 @@ var Buffer = Module("Buffer", {
|
|||||||
|
|
||||||
let elements = Array.from(frames)
|
let elements = Array.from(frames)
|
||||||
.flatMap(win => DOM.XPath(xpath, win.document))
|
.flatMap(win => DOM.XPath(xpath, win.document))
|
||||||
.filter(elem => {
|
.flatMap(elems => {
|
||||||
|
var _tmp=[];
|
||||||
|
for(var i=0; i<elems.snapshotLength; i++) {
|
||||||
|
_tmp.push(elems.snapshotItem(i));
|
||||||
|
}
|
||||||
|
return _tmp;
|
||||||
|
}).filter(elem => {
|
||||||
|
|
||||||
if (isinstance(elem, [Ci.nsIDOMHTMLFrameElement,
|
if (isinstance(elem, [Ci.nsIDOMHTMLFrameElement,
|
||||||
Ci.nsIDOMHTMLIFrameElement]))
|
Ci.nsIDOMHTMLIFrameElement]))
|
||||||
@@ -2428,7 +2432,7 @@ var Buffer = Module("Buffer", {
|
|||||||
|
|
||||||
elem = DOM(elem);
|
elem = DOM(elem);
|
||||||
|
|
||||||
if (elem[0].readOnly || elem[0].disabled || !DOM(elem).isEditable)
|
if (!elem || !elem.length || elem[0].readOnly || elem[0].disabled || !DOM(elem).isEditable)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
let style = elem.style;
|
let style = elem.style;
|
||||||
|
|||||||
@@ -627,7 +627,7 @@ var CommandHive = Class("CommandHive", Contexts.Hive, {
|
|||||||
extra.hive = this;
|
extra.hive = this;
|
||||||
extra.parsedSpecs = Command.parseSpecs(specs);
|
extra.parsedSpecs = Command.parseSpecs(specs);
|
||||||
|
|
||||||
let names = extra.parsedSpecs.flatMap();
|
let names = extra.parsedSpecs;
|
||||||
let name = names[0];
|
let name = names[0];
|
||||||
|
|
||||||
if (this.name != "builtin") {
|
if (this.name != "builtin") {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
em:id="pentadactyl@addons.palemoon.org"
|
em:id="pentadactyl@addons.palemoon.org"
|
||||||
em:type="2"
|
em:type="2"
|
||||||
em:name="Pentadactyl"
|
em:name="Pentadactyl"
|
||||||
em:version="1.2pre-pm-3"
|
em:version="1.2pre-pm-4"
|
||||||
em:description="Pale Moon for Vim and Links addicts"
|
em:description="Pale Moon for Vim and Links addicts"
|
||||||
em:homepageURL="http://5digits.org/pentadactyl"
|
em:homepageURL="http://5digits.org/pentadactyl"
|
||||||
em:bootstrap="true"
|
em:bootstrap="true"
|
||||||
|
|||||||
Reference in New Issue
Block a user