mirror of
https://github.com/zen-browser/desktop.git
synced 2026-02-10 05:48:39 +00:00
Fixed PGO builds not fully working
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
const lazy = {};
|
||||
var ZenStartup = {
|
||||
init() {
|
||||
this.logHeader();
|
||||
this.openWatermark();
|
||||
window.SessionStore.promiseInitialized.then(() => {
|
||||
this._changeSidebarLocation();
|
||||
@@ -27,9 +26,12 @@
|
||||
}
|
||||
|
||||
// Fix notification deck
|
||||
document
|
||||
.getElementById('zen-appcontent-navbar-container')
|
||||
.appendChild(document.getElementById('tab-notification-deck-template'));
|
||||
const deckTemplate = document.getElementById('tab-notification-deck-template');
|
||||
if (deckTemplate) {
|
||||
document
|
||||
.getElementById('zen-appcontent-navbar-container')
|
||||
.appendChild(deckTemplate);
|
||||
}
|
||||
|
||||
// Disable smooth scroll
|
||||
gBrowser.tabContainer.arrowScrollbox.smoothScroll = false;
|
||||
@@ -104,21 +106,6 @@
|
||||
gURLBar._initPasteAndGo();
|
||||
gURLBar._initStripOnShare();
|
||||
},
|
||||
|
||||
logHeader() {
|
||||
console.info(`
|
||||
|
||||
Welcome to Zen Browser!
|
||||
|
||||
If you are seeing this message, it means that you have successfully opened Zen's developer console.
|
||||
Here you can see all the logs and errors that Zen is generating.
|
||||
|
||||
If you have any questions or need help, please contact us in any media in https://zen-browser.app/
|
||||
|
||||
Note: This developer console is not the same as the browser console, it has access to Zen's internal functions and variables, including your passwords and other sensitive information. Please do not paste any code here unless you know what you are doing.
|
||||
|
||||
`);
|
||||
},
|
||||
};
|
||||
|
||||
ZenStartup.init();
|
||||
|
||||
@@ -538,7 +538,7 @@ class ZenKeyboardShortcutsLoader {
|
||||
} catch (e) {
|
||||
// Recreate shortcuts file
|
||||
Services.prefs.clearUserPref('zen.keyboard.shortcuts.version');
|
||||
console.error('Error loading shortcuts file', e);
|
||||
console.warn('Error loading shortcuts file', e);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -557,7 +557,6 @@ function zenGetDefaultShortcuts() {
|
||||
// For adding new default shortcuts, add them to inside the migration function
|
||||
// and increment the version number.
|
||||
|
||||
console.info('Zen CKS: Loading default shortcuts...');
|
||||
let keySet = document.getElementById(ZEN_MAIN_KEYSET_ID);
|
||||
let newShortcutList = [];
|
||||
|
||||
|
||||
@@ -1,12 +1,10 @@
|
||||
var ZenPinnedTabsStorage = {
|
||||
async init() {
|
||||
console.log('ZenPinnedTabsStorage: Initializing...');
|
||||
await this._ensureTable();
|
||||
},
|
||||
|
||||
async _ensureTable() {
|
||||
await PlacesUtils.withConnectionWrapper('ZenPinnedTabsStorage._ensureTable', async (db) => {
|
||||
console.log('ZenPinnedTabsStorage: Ensuring tables...');
|
||||
// Create the pins table if it doesn't exist
|
||||
await db.execute(`
|
||||
CREATE TABLE IF NOT EXISTS zen_pins (
|
||||
|
||||
@@ -53,8 +53,6 @@ var gZenStylesheetManager = {
|
||||
|
||||
var gZenThemesImporter = new (class {
|
||||
constructor() {
|
||||
console.info('[ZenThemesImporter]: Initializing Zen Themes Importer');
|
||||
|
||||
try {
|
||||
window.SessionStore.promiseInitialized.then(async () => {
|
||||
if (Services.prefs.getBoolPref('zen.themes.disable-all', false) || Services.appinfo.inSafeMode) {
|
||||
|
||||
@@ -77,6 +77,9 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
|
||||
}
|
||||
|
||||
async _delayedStartup() {
|
||||
if (!this.workspaceEnabled) {
|
||||
return;
|
||||
}
|
||||
await this.initializeWorkspaces();
|
||||
console.info('ZenWorkspaces: ZenWorkspaces initialized');
|
||||
|
||||
|
||||
@@ -6,7 +6,6 @@ var ZenWorkspacesStorage = {
|
||||
PlacesUtils: "resource://gre/modules/PlacesUtils.sys.mjs",
|
||||
});
|
||||
|
||||
console.log('ZenWorkspacesStorage: Initializing...');
|
||||
await this._ensureTable();
|
||||
await ZenWorkspaceBookmarksStorage.init();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user