mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1156710 - [Secure Element] Allow SE access without full ACE checks if certified apps debug is enabled. r=allstars.chh
This commit is contained in:
parent
0d3b907a49
commit
565bba0ce4
@ -9,6 +9,7 @@
|
||||
const { classes: Cc, interfaces: Ci, utils: Cu } = Components;
|
||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
Cu.import("resource://gre/modules/Promise.jsm");
|
||||
Cu.import("resource://gre/modules/Services.jsm");
|
||||
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "DOMApplicationRegistry",
|
||||
"resource://gre/modules/Webapps.jsm");
|
||||
@ -120,6 +121,11 @@ ACEService.prototype = {
|
||||
_rulesManagers: null,
|
||||
|
||||
isAccessAllowed: function isAccessAllowed(localId, seType, aid) {
|
||||
if(!Services.prefs.getBoolPref("devtools.debugger.forbid-certified-apps")) {
|
||||
debug("Certified apps debug enabled, allowing access");
|
||||
return Promise.resolve(true);
|
||||
}
|
||||
|
||||
let manifestURL = DOMApplicationRegistry.getManifestURLByLocalId(localId);
|
||||
if (!manifestURL) {
|
||||
return Promise.reject(Error("Missing manifest for app: " + localId));
|
||||
|
Loading…
Reference in New Issue
Block a user