From 4eef1b070993b59464be1de3e69f695d5d61d816 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Wed, 22 Jun 2011 11:56:21 -0400 Subject: [PATCH] Add 'chrome:*':laissez-faire to 'strictfocus'. --- common/content/events.js | 2 +- common/modules/options.jsm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/content/events.js b/common/content/events.js index 3be14fff..7cb3ded2 100644 --- a/common/content/events.js +++ b/common/content/events.js @@ -1688,7 +1688,7 @@ var Events = Module("events", { options.add(["strictfocus", "sf"], "Prevent scripts from focusing input elements without user intervention", - "sitemap", "*:moderate", + "sitemap", "'chrome:*':laissez-faire,*:moderate", { values: { despotic: "Only allow focus changes when explicitly requested by the user", diff --git a/common/modules/options.jsm b/common/modules/options.jsm index 6f98e157..b930c8fd 100644 --- a/common/modules/options.jsm +++ b/common/modules/options.jsm @@ -437,7 +437,7 @@ var Option = Class("Option", { bang: bang, filter: filter, result: result !== undefined ? result : !bang, - toString: function toString() this.bang + Option.quote(this.filter) + + toString: function toString() this.bang + Option.quote(this.filter, /:/) + (typeof this.result === "boolean" ? "" : ":" + quote(this.result)), }); },