1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-22 23:35:46 +01:00
This commit is contained in:
Kris Maglione
2014-01-11 16:06:12 -08:00
7 changed files with 19 additions and 2 deletions

View File

@@ -71,6 +71,8 @@ var AutoCmdHive = Class("AutoCmdHive", Contexts.Hive, {
*/ */
var AutoCommands = Module("autocommands", { var AutoCommands = Module("autocommands", {
init: function () { init: function () {
if (config.haveGecko("26"))
delete config.autocommands.DownloadPost; // FIXME
}, },
get activeHives() contexts.allGroups.autocmd.filter(h => h._store.length), get activeHives() contexts.allGroups.autocmd.filter(h => h._store.length),

View File

@@ -74,6 +74,9 @@
<dl> <dl>
<dt>-sort</dt> <dd>Sort order (see <o>downloadsort</o>) (short name: <em>-s</em>)</dd> <dt>-sort</dt> <dd>Sort order (see <o>downloadsort</o>) (short name: <em>-s</em>)</dd>
</dl> </dl>
<note>
This command is currently unavailable in &dactyl.host; 26 and greater.
</note>
</description> </description>
</item> </item>

View File

@@ -576,8 +576,12 @@
<tags>'dls' 'dlsort' 'downloadsort'</tags> <tags>'dls' 'dlsort' 'downloadsort'</tags>
<spec>'downloadsort' 'dlsort' 'dls'</spec> <spec>'downloadsort' 'dlsort' 'dls'</spec>
<strut/> <strut/>
<!--
<type>&option.downloadsort.type;</type> <type>&option.downloadsort.type;</type>
<default>&option.downloadsort.default;</default> <default>&option.downloadsort.default;</default>
-->
<type>stringlist</type>
<default>-active,+filename</default>
<description> <description>
<p> <p>
<ex>:downloads</ex> sort order, in order of precedence. <ex>:downloads</ex> sort order, in order of precedence.
@@ -596,6 +600,9 @@
<dt>time</dt> <dd>Time remaining</dd> <dt>time</dt> <dd>Time remaining</dd>
<dt>url</dt> <dd>Source URL</dd> <dt>url</dt> <dd>Source URL</dd>
</dl> </dl>
<note>
This option is currently unavailable in &dactyl.host; 26 and greater.
</note>
</description> </description>
</item> </item>

View File

@@ -45,6 +45,9 @@ var ConfigBase = Class("ConfigBase", {
* initialization code. Must call superclass's init function. * initialization code. Must call superclass's init function.
*/ */
init: function init() { init: function init() {
if (config.haveGecko("26"))
this.modules.global = this.modules.global.filter(m => m != "downloads"); // FIXME
this.loadConfig(); this.loadConfig();
this.features.push = deprecated("Set.add", function push(feature) Set.add(this, feature)); this.features.push = deprecated("Set.add", function push(feature) Set.add(this, feature));

View File

@@ -446,6 +446,7 @@ var Sanitizer = Module("sanitizer", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakRef
if (args.bang) if (args.bang)
dactyl.assert(args.length == 0, _("error.trailingCharacters")); dactyl.assert(args.length == 0, _("error.trailingCharacters"));
else { else {
dactyl.assert(args.length, _("error.argumentRequired"));
dactyl.assert(opt.validator(args), _("error.invalidArgument")); dactyl.assert(opt.validator(args), _("error.invalidArgument"));
opt = { __proto__: opt, value: args.slice() }; opt = { __proto__: opt, value: args.slice() };
} }

View File

@@ -32,7 +32,7 @@
<Description <Description
em:id="{ec8030f7-c20a-464f-9b0e-13a3a9e97384}" em:id="{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"
em:minVersion="22.0" em:minVersion="22.0"
em:maxVersion="25.*"/> em:maxVersion="26.*"/>
</em:targetApplication> </em:targetApplication>
</Description> </Description>
</RDF> </RDF>

View File

@@ -13,7 +13,8 @@
<dt>BookmarkRemove</dt> <dd>Triggered after a page's bookmark is removed</dd> <dt>BookmarkRemove</dt> <dd>Triggered after a page's bookmark is removed</dd>
<dt>ColorScheme</dt> <dd>Triggered after a color scheme has been loaded</dd> <dt>ColorScheme</dt> <dd>Triggered after a color scheme has been loaded</dd>
<dt>DOMLoad</dt> <dd>Triggered when a page's DOM content has fully loaded</dd> <dt>DOMLoad</dt> <dd>Triggered when a page's DOM content has fully loaded</dd>
<dt>DownloadPost</dt> <dd>Triggered when a download has completed</dd> <dt>DownloadPost</dt> <dd>Triggered when a download has completed
<note>currently unavailable in &dactyl.host; 26 and greater</note></dd>
<dt>Fullscreen</dt> <dd>Triggered when the browser's fullscreen state changes</dd> <dt>Fullscreen</dt> <dd>Triggered when the browser's fullscreen state changes</dd>
<dt>LocationChange</dt> <dd>Triggered when changing tabs or when navigating to a new location</dd> <dt>LocationChange</dt> <dd>Triggered when changing tabs or when navigating to a new location</dd>
<dt>PageLoadPre</dt> <dd>Triggered after a page load is initiated</dd> <dt>PageLoadPre</dt> <dd>Triggered after a page load is initiated</dd>