Release Vulpes OS 2.7 Preview 25 for Desktop, Android and Pixel 3a
This commit is contained in:
parent
6a44daeaaa
commit
3a1fba4efe
10 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);
|
||||
|
|
|
|||
|
|
@ -212,7 +212,7 @@
|
|||
line-height: 0.9;
|
||||
margin: -1.4rem 0 0;
|
||||
margin-inline-start: -0.4rem;
|
||||
font-weight: 200;
|
||||
font-weight: 300;
|
||||
font-size: 8.5rem;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
#battery {
|
||||
display: none;
|
||||
background-image: url('images/header_bg.png');
|
||||
background: #404040 url('images/header_bg.png') center / 100% 100% no-repeat;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
|
|
|
|||
|
|
@ -83,11 +83,10 @@ to be available for moz-elements */
|
|||
background-color: black;
|
||||
}
|
||||
|
||||
/* AppChrome would normally provide the theme color for the statusbar.
|
||||
However, when in native full-screen mode, AppChrome isn't visible; just
|
||||
use black for now, as we do with #screen.attention. */
|
||||
/* In full-screen Gaia apps the content is painted beneath the statusbar.
|
||||
Let its header colour show through instead of forcing an unrelated black. */
|
||||
#screen:-moz-full-screen-ancestor #statusbar {
|
||||
background-color: black;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
#screen.utility-tray #statusbar {
|
||||
|
|
|
|||
|
|
@ -179,6 +179,23 @@ suite('battery manager >', function() {
|
|||
assertDisplayed();
|
||||
});
|
||||
|
||||
test('a previous timeout does not hide a new notification', function(done) {
|
||||
subject.hide();
|
||||
subject.TOASTER_TIMEOUT = 50;
|
||||
subject._wasEmptyBatteryNotificationDisplayed = false;
|
||||
MockNavigatorBattery.level = 0.05;
|
||||
sendChargingChange(false);
|
||||
setTimeout(function() {
|
||||
sendChargingChange(true);
|
||||
sendChargingChange(false);
|
||||
setTimeout(function() {
|
||||
assertDisplayed();
|
||||
subject.hide();
|
||||
done();
|
||||
}, 25);
|
||||
}, 30);
|
||||
});
|
||||
|
||||
suite('goes up >', function() {
|
||||
setup(function() {
|
||||
sendLevelChange(0.2);
|
||||
|
|
|
|||
Loading…
Reference in a new issue