Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: messageResponder.js

Issue 29544706: Noissue - Adapt check for devtools panel support for Firefox (Closed)
Patch Set: Use Services.vc.compare() Created Sept. 15, 2017, 4:49 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« background.js ('K') | « background.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: messageResponder.js
===================================================================
--- a/messageResponder.js
+++ b/messageResponder.js
@@ -42,6 +42,8 @@
SpecialSubscription
} = require("subscriptionClasses");
+ const {Services} = Cu.import("resource://gre/modules/Services.jsm");
+
// Some modules doesn't exist on Firefox. Moreover,
// require() throws an exception on Firefox in that case.
// However, try/catch causes the whole function to to be
@@ -184,7 +186,9 @@
if (message.what == "features")
{
return {
- devToolsPanel: info.platform == "chromium"
+ devToolsPanel: info.platform == "chromium" ||
+ info.application == "firefox" &&
+ Services.vc.compare(info.applicationVersion, "54") >= 0
Manish Jethani 2017/09/15 22:10:21 Since we're going to be getting rid of these Gecko
Sebastian Noack 2017/09/15 22:33:22 Probably we won't get rid of the implementation of
Thomas Greiner 2017/09/18 16:20:02 I'd say it's probably best to stick to what we've
Sebastian Noack 2017/09/18 18:17:28 I've submitted a patch to adblockpluscore, replaci
Manish Jethani 2017/09/19 06:06:59 LGTM, provided we also update the core dependency
Manish Jethani 2017/09/19 06:06:59 Sorry about going off on a bit of a tangent here,
};
}
« background.js ('K') | « background.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld