1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-29 00:42:28 +01:00

Do a better job of finding a scrollable element.

This commit is contained in:
Kris Maglione
2013-04-23 21:23:45 -07:00
parent b375af9357
commit da332e7c2c
2 changed files with 8 additions and 3 deletions

View File

@@ -228,9 +228,14 @@ function properties(obj, prototypes, debugger_) {
// currently.
let filter = function filter(prop) {
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 array.uniq([k for (k in obj)].concat(

View File

@@ -1277,7 +1277,7 @@ var Buffer = Module("Buffer", {
* The pattern used to search for a scrollable element when we have
* no starting point.
*/
SCROLLABLE_SEARCH_SELECTOR: "div",
SCROLLABLE_SEARCH_SELECTOR: "html, body, div",
PageInfo: Struct("PageInfo", "name", "title", "action")
.localize("title"),