Release Vulpes OS 2.7 Preview 25 for Desktop, Android and Pixel 3a
This commit is contained in:
parent
6a44daeaaa
commit
3a1fba4efe
6 changed files with 1301 additions and 196 deletions
|
|
@ -544,15 +544,12 @@
|
|||
return;
|
||||
}
|
||||
|
||||
if (!this.isMaximized() && this.app.isBrowser()) {
|
||||
if (this.pinned) {
|
||||
this.app.element.classList.add('collapsible');
|
||||
this.scrollable.scrollTop = 0;
|
||||
}
|
||||
this.maximize();
|
||||
} else {
|
||||
window.dispatchEvent(new CustomEvent('global-search-request'));
|
||||
if (!this.isMaximized() && this.app.isBrowser() && this.pinned) {
|
||||
this.app.element.classList.add('collapsible');
|
||||
this.scrollable.scrollTop = 0;
|
||||
}
|
||||
// Rocketbar expands a collapsed toolbar before focusing the address field.
|
||||
window.dispatchEvent(new CustomEvent('global-search-request'));
|
||||
};
|
||||
|
||||
AppChrome.prototype.onClickSiteIcon = function onClickSiteIcon() {
|
||||
|
|
|
|||
|
|
@ -696,6 +696,14 @@
|
|||
icc: null
|
||||
};
|
||||
|
||||
// Desktop and Android builds do not expose the legacy Gaia SIM manager.
|
||||
// Usage metrics must still be able to close their dialog on those hosts.
|
||||
if (typeof SIMSlotManager === 'undefined' ||
|
||||
!SIMSlotManager.noSIMCardConnectedToNetwork ||
|
||||
!SIMSlotManager.getSlots) {
|
||||
return simInfo;
|
||||
}
|
||||
|
||||
if (SIMSlotManager.noSIMCardConnectedToNetwork()) {
|
||||
// No connected SIMs
|
||||
return simInfo;
|
||||
|
|
|
|||
|
|
@ -136,10 +136,13 @@
|
|||
},
|
||||
|
||||
hide: function bm_hide() {
|
||||
if (this._toasterTimeout) {
|
||||
clearTimeout(this._toasterTimeout);
|
||||
this._toasterTimeout = null;
|
||||
}
|
||||
var overlayCss = this.overlay.classList;
|
||||
if (overlayCss.contains('battery')) {
|
||||
this.overlay.classList.remove('battery');
|
||||
this._toasterTimeout = null;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -164,9 +164,30 @@
|
|||
this.publish('-deactivated');
|
||||
this.service.request('unregisterHierarchy', this);
|
||||
|
||||
var timeout;
|
||||
function transOsLogo(event) {
|
||||
if (!self.osLogo || (event && (event.target !== self.osLogo ||
|
||||
event.propertyName !== 'opacity'))) return;
|
||||
clearTimeout(timeout);
|
||||
self.osLogo.removeEventListener('transitionend', transOsLogo);
|
||||
self.osLogo.parentNode.removeChild(self.osLogo);
|
||||
delete self.osLogo; // Don't entrain the DOM nodes.
|
||||
window.performance.mark('osLogoEnd');
|
||||
window.dispatchEvent(new CustomEvent('logohidden'));
|
||||
if (callback) {
|
||||
callback();
|
||||
}
|
||||
}
|
||||
function hideOsLogo() {
|
||||
self.osLogo.addEventListener('transitionend', transOsLogo);
|
||||
self.osLogo.classList.add('hide');
|
||||
// A suspended compositor can leave the opacity transition at time zero.
|
||||
timeout = setTimeout(transOsLogo, 3500);
|
||||
}
|
||||
|
||||
// No carrier logo - Just animate OS logo.
|
||||
if (!this.poweronLogoLoader.found) {
|
||||
this.osLogo.classList.add('hide');
|
||||
hideOsLogo();
|
||||
|
||||
// Has carrier logo - Animate carrier logo, then OS logo.
|
||||
} else {
|
||||
|
|
@ -201,21 +222,12 @@
|
|||
self.carrierLogo.parentNode.removeChild(self.carrierLogo);
|
||||
delete self.carrierLogo; // Don't entrain the DOM nodes.
|
||||
|
||||
self.osLogo.classList.add('hide');
|
||||
hideOsLogo();
|
||||
self.carrierPowerOnElement = null;
|
||||
});
|
||||
}
|
||||
|
||||
self.osLogo.addEventListener('transitionend', function transOsLogo() {
|
||||
self.osLogo.removeEventListener('transitionend', transOsLogo);
|
||||
self.osLogo.parentNode.removeChild(self.osLogo);
|
||||
delete self.osLogo; // Don't entrain the DOM nodes.
|
||||
window.performance.mark('osLogoEnd');
|
||||
window.dispatchEvent(new CustomEvent('logohidden'));
|
||||
if (callback) {
|
||||
callback();
|
||||
}
|
||||
});
|
||||
|
||||
},
|
||||
|
||||
poweroff: function(reboot) {
|
||||
|
|
|
|||
|
|
@ -447,6 +447,12 @@
|
|||
this.input.blur();
|
||||
}
|
||||
this.input.focus();
|
||||
// On Wayland a web view can retain window focus even though Gaia
|
||||
// selected the address field. No focusin is delivered in that case.
|
||||
if (window.VulpesNativeInput && !document.hasFocus() &&
|
||||
document.activeElement === this.input) {
|
||||
this.input.dispatchEvent(new Event('vulpes-address-focus', {bubbles:true}));
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@
|
|||
|
||||
// when wifi is really disabled, emit event to notify QuickSettings
|
||||
wifiManager.ondisabled = function onWifiDisabled() {
|
||||
this._enabled = false;
|
||||
self._enabled = false;
|
||||
var evt = document.createEvent('CustomEvent');
|
||||
evt.initCustomEvent('wifi-disabled',
|
||||
/* canBubble */ true, /* cancelable */ false, null);
|
||||
|
|
|
|||
Loading…
Reference in a new issue