1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-06 20:24:12 +01:00

Make buffer.UR[LI] nsIURI objects. Fix bug in chrome-data:.

This commit is contained in:
Kris Maglione
2011-01-03 22:00:53 -05:00
parent ec554ac6c9
commit d661d60cb6
11 changed files with 46 additions and 38 deletions

View File

@@ -207,7 +207,7 @@ var AutoCommands = Module("autocommands", {
return void dactyl.echomsg("No matching autocommands");
let [event, url] = args;
let defaultURL = url || buffer.URL;
let defaultURL = url || buffer.URL.spec;
let validEvents = Object.keys(config.autocommands);
// TODO: add command validators
@@ -224,7 +224,7 @@ var AutoCommands = Module("autocommands", {
for (let i = 0; i < tabs.count; i++) {
tabs.select(i);
// if no url arg is specified use the current buffer's URL
autocommands.trigger(event, { url: url || buffer.URL });
autocommands.trigger(event, { url: url || buffer.URL.spec });
}
tabs.select(current);