mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-06 04:44:10 +01:00
Whitespace fixes.
--HG-- extra : rebase_source : 7bc98c4cf1a8ca89cfbfb1f96ffe9fa72565c663
This commit is contained in:
@@ -134,7 +134,8 @@ defineModule.time = function time(major, minor, func, self) {
|
||||
let time = Date.now();
|
||||
try {
|
||||
var res = func.apply(self, Array.slice(arguments, 4));
|
||||
} catch (e) {
|
||||
}
|
||||
catch (e) {
|
||||
loaded.util && util.reportError(e);
|
||||
}
|
||||
let delta = Date.now() - time;
|
||||
|
||||
@@ -504,7 +504,8 @@ const Sanitizer = Module("sanitizer", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakR
|
||||
(function rec(frame) {
|
||||
try {
|
||||
res = res.concat(util.subdomains(frame.location.host));
|
||||
} catch (e) {}
|
||||
}
|
||||
catch (e) {}
|
||||
Array.forEach(frame.frames, rec);
|
||||
})(window.content);
|
||||
if (context.filter && !res.some(function (host) host.indexOf(context.filter) >= 0))
|
||||
|
||||
@@ -55,7 +55,6 @@ const Services = Module("Services", {
|
||||
this.add("windowMediator", "@mozilla.org/appshell/window-mediator;1", Ci.nsIWindowMediator);
|
||||
this.add("windowWatcher", "@mozilla.org/embedcomp/window-watcher;1", Ci.nsIWindowWatcher);
|
||||
|
||||
|
||||
this.addClass("file", "@mozilla.org/file/local;1", Ci.nsILocalFile);
|
||||
this.addClass("file:", "@mozilla.org/network/protocol;1?name=file", Ci.nsIFileProtocolHandler);
|
||||
this.addClass("find", "@mozilla.org/embedcomp/rangefind;1", Ci.nsIFind);
|
||||
|
||||
@@ -789,13 +789,13 @@ const Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference])
|
||||
if (field instanceof Ci.nsIDOMHTMLInputElement && field.type == "submit")
|
||||
elems.push(encode(field.name, field.value));
|
||||
|
||||
for (let [,elem] in iter(form.elements)) {
|
||||
for (let [, elem] in iter(form.elements)) {
|
||||
if (set.has(util.editableInputs, elem.type)
|
||||
|| /^(?:hidden|textarea)$/.test(elem.type)
|
||||
|| elem.checked && /^(?:checkbox|radio)$/.test(elem.type))
|
||||
elems.push(encode(elem.name, elem.value, elem === field));
|
||||
else if (elem instanceof Ci.nsIDOMHTMLSelectElement) {
|
||||
for (let [,opt] in Iterator(elem.options))
|
||||
for (let [, opt] in Iterator(elem.options))
|
||||
if (opt.selected)
|
||||
elems.push(encode(elem.name, opt.value));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user