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
a1155fd152
commit
10c6a52abc
@ -9,6 +9,7 @@
|
|||||||
const { classes: Cc, interfaces: Ci, utils: Cu } = Components;
|
const { classes: Cc, interfaces: Ci, utils: Cu } = Components;
|
||||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||||
Cu.import("resource://gre/modules/Promise.jsm");
|
Cu.import("resource://gre/modules/Promise.jsm");
|
||||||
|
Cu.import("resource://gre/modules/Services.jsm");
|
||||||
|
|
||||||
XPCOMUtils.defineLazyModuleGetter(this, "DOMApplicationRegistry",
|
XPCOMUtils.defineLazyModuleGetter(this, "DOMApplicationRegistry",
|
||||||
"resource://gre/modules/Webapps.jsm");
|
"resource://gre/modules/Webapps.jsm");
|
||||||
@ -120,6 +121,11 @@ ACEService.prototype = {
|
|||||||
_rulesManagers: null,
|
_rulesManagers: null,
|
||||||
|
|
||||||
isAccessAllowed: function isAccessAllowed(localId, seType, aid) {
|
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);
|
let manifestURL = DOMApplicationRegistry.getManifestURLByLocalId(localId);
|
||||||
if (!manifestURL) {
|
if (!manifestURL) {
|
||||||
return Promise.reject(Error("Missing manifest for app: " + localId));
|
return Promise.reject(Error("Missing manifest for app: " + localId));
|
||||||
|
Loading…
Reference in New Issue
Block a user