mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-24 00:05:46 +01:00
Fix bug.
This commit is contained in:
@@ -1884,7 +1884,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
|||||||
&& root._lightweightTheme
|
&& root._lightweightTheme
|
||||||
&& root._lightweightTheme._lastScreenWidth == null) {
|
&& root._lightweightTheme._lastScreenWidth == null) {
|
||||||
|
|
||||||
this.withSavedValues.call(PrivateBrowsingUtils,
|
dactyl.withSavedValues.call(PrivateBrowsingUtils,
|
||||||
["isWindowPrivate"], function () {
|
["isWindowPrivate"], function () {
|
||||||
PrivateBrowsingUtils.isWindowPrivate = function () false;
|
PrivateBrowsingUtils.isWindowPrivate = function () false;
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Copyright (c) 2006-2008 by Martin Stubenschrott <stubenschrott@vimperator.org>
|
// Copyright (c) 2006-2008 by Martin Stubenschrott <stubenschrott@vimperator.org>
|
||||||
// Copyright (c) 2007-2011 by Doug Kearns <dougkearns@gmail.com>
|
// Copyright (c) 2007-2011 by Doug Kearns <dougkearns@gmail.com>
|
||||||
// Copyright (c) 2008-2012 Kris Maglione <maglione.k at Gmail>
|
// Copyright (c) 2008-2013 Kris Maglione <maglione.k at Gmail>
|
||||||
//
|
//
|
||||||
// This work is licensed for reuse under an MIT license. Details are
|
// This work is licensed for reuse under an MIT license. Details are
|
||||||
// given in the LICENSE.txt file included with this file.
|
// given in the LICENSE.txt file included with this file.
|
||||||
@@ -632,7 +632,8 @@ var Buffer = Module("Buffer", {
|
|||||||
util.reportError(e);
|
util.reportError(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
let link = DOM("link[href]:-moz-any([rev=canonical], [rel=shortlink])", doc);
|
let link = DOM("link[href][rev=canonical], \
|
||||||
|
link[href][rel=shortlink]", doc);
|
||||||
if (link)
|
if (link)
|
||||||
return link.attr("href");
|
return link.attr("href");
|
||||||
|
|
||||||
|
|||||||
@@ -234,11 +234,14 @@ var Cache = Module("Cache", XPCOM(Ci.nsIRequestObserver), {
|
|||||||
|
|
||||||
if (this.queue.length && !this.inQueue) {
|
if (this.queue.length && !this.inQueue) {
|
||||||
// removeEntry does not work properly with queues.
|
// removeEntry does not work properly with queues.
|
||||||
|
let removed = 0;
|
||||||
for each (let [, entry] in this.queue)
|
for each (let [, entry] in this.queue)
|
||||||
if (this.getCacheWriter().hasEntry(entry)) {
|
if (this.getCacheWriter().hasEntry(entry)) {
|
||||||
this.getCacheWriter().removeEntry(entry, false);
|
this.getCacheWriter().removeEntry(entry, false);
|
||||||
this.closeWriter();
|
removed++;
|
||||||
}
|
}
|
||||||
|
if (removed)
|
||||||
|
this.closeWriter();
|
||||||
|
|
||||||
this.queue.splice(0).forEach(function ([time, entry]) {
|
this.queue.splice(0).forEach(function ([time, entry]) {
|
||||||
if (time && Set.has(this.cache, entry)) {
|
if (time && Set.has(this.cache, entry)) {
|
||||||
|
|||||||
@@ -499,8 +499,15 @@ var DOM = Class("DOM", {
|
|||||||
if (DOM(elem).isInput
|
if (DOM(elem).isInput
|
||||||
|| /^(?:hidden|textarea)$/.test(elem.type)
|
|| /^(?:hidden|textarea)$/.test(elem.type)
|
||||||
|| elem.type == "submit" && elem == field
|
|| elem.type == "submit" && elem == field
|
||||||
|| elem.checked && /^(?:checkbox|radio)$/.test(elem.type))
|
|| elem.checked && /^(?:checkbox|radio)$/.test(elem.type)) {
|
||||||
elems.push(encode(elem.name, elem.value, elem === field));
|
|
||||||
|
if (elem !== field)
|
||||||
|
elems.push(encode(elem.name, elem.value));
|
||||||
|
else if (overlay.getData(elem, "had-focus"))
|
||||||
|
elems.push(encode(elem.name, elem.value, true));
|
||||||
|
else
|
||||||
|
elems.push(encode(elem.name, "", true));
|
||||||
|
}
|
||||||
else if (elem instanceof Ci.nsIDOMHTMLSelectElement) {
|
else if (elem instanceof Ci.nsIDOMHTMLSelectElement) {
|
||||||
for (let [, opt] in Iterator(elem.options))
|
for (let [, opt] in Iterator(elem.options))
|
||||||
if (opt.selected)
|
if (opt.selected)
|
||||||
|
|||||||
Reference in New Issue
Block a user