mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-12 06:08:24 +02:00
Differential Revision: https://phabricator.services.mozilla.com/D4100 --HG-- extra : moz-landing-system : lando
22 lines
382 B
JavaScript
22 lines
382 B
JavaScript
"use strict";
|
|
|
|
this.extension = class extends ExtensionAPI {
|
|
getAPI(context) {
|
|
return {
|
|
extension: {
|
|
get lastError() {
|
|
return context.lastError;
|
|
},
|
|
|
|
isAllowedIncognitoAccess() {
|
|
return context.privateBrowsingAllowed;
|
|
},
|
|
|
|
isAllowedFileSchemeAccess() {
|
|
return false;
|
|
},
|
|
},
|
|
};
|
|
}
|
|
};
|
|
|