mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-05 16:25:46 +01:00
Do a better job of finding a scrollable element.
This commit is contained in:
@@ -228,9 +228,14 @@ function properties(obj, prototypes, debugger_) {
|
|||||||
// currently.
|
// currently.
|
||||||
let filter = function filter(prop) {
|
let filter = function filter(prop) {
|
||||||
try {
|
try {
|
||||||
return k in obj;
|
return prop in obj;
|
||||||
|
}
|
||||||
|
catch (e) {
|
||||||
|
util.reportError("Filtering properties for " +
|
||||||
|
String.quote(obj) + ", " +
|
||||||
|
"error checking presence of " +
|
||||||
|
String.quote(prop) + ": " + e);
|
||||||
}
|
}
|
||||||
catch (e) {}
|
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
return array.uniq([k for (k in obj)].concat(
|
return array.uniq([k for (k in obj)].concat(
|
||||||
|
|||||||
@@ -1277,7 +1277,7 @@ var Buffer = Module("Buffer", {
|
|||||||
* The pattern used to search for a scrollable element when we have
|
* The pattern used to search for a scrollable element when we have
|
||||||
* no starting point.
|
* no starting point.
|
||||||
*/
|
*/
|
||||||
SCROLLABLE_SEARCH_SELECTOR: "div",
|
SCROLLABLE_SEARCH_SELECTOR: "html, body, div",
|
||||||
|
|
||||||
PageInfo: Struct("PageInfo", "name", "title", "action")
|
PageInfo: Struct("PageInfo", "name", "title", "action")
|
||||||
.localize("title"),
|
.localize("title"),
|
||||||
|
|||||||
Reference in New Issue
Block a user