Release Vulpes OS 2.7-preview.24
This commit is contained in:
parent
49572b6b45
commit
97ef99f827
135 changed files with 7717 additions and 2524 deletions
|
|
@ -187,6 +187,15 @@
|
|||
},
|
||||
|
||||
hasPermission: function wf_hasPermission(app, permission) {
|
||||
// The embedded Gaia browser is the trusted system web client. Newer
|
||||
// Gecko builds no longer expose mozPermissionSettings to this code, so
|
||||
// honour its declared window permission and keep popup navigation in
|
||||
// Gaia instead of letting Gecko open a desktop browser window.
|
||||
if (app && app.manifest && app.manifest.role === 'search' &&
|
||||
permission === 'open-remote-window' && app.manifest.permissions &&
|
||||
app.manifest.permissions['open-remote-window']) {
|
||||
return true;
|
||||
}
|
||||
var mozPerms = navigator.mozPermissionSettings;
|
||||
if (!mozPerms) {
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue