mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-25 09:57:32 +09:00
AAAAAAAAAAAAAAAAAAAAAAAAAAA
This commit is contained in:
parent
ae54ac8e28
commit
e0fe6706d1
6 changed files with 4 additions and 24 deletions
|
|
@ -922,9 +922,7 @@ BrowserGlue.prototype = {
|
||||||
AutoCompletePopup.init();
|
AutoCompletePopup.init();
|
||||||
DateTimePickerHelper.init();
|
DateTimePickerHelper.init();
|
||||||
|
|
||||||
if (typeof this._firstWindowLoaded == "function") {
|
this._firstWindowLoaded();
|
||||||
this._firstWindowLoaded();
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -76,12 +76,6 @@ function BrowserAction(options, extension) {
|
||||||
|
|
||||||
BrowserAction.prototype = {
|
BrowserAction.prototype = {
|
||||||
build() {
|
build() {
|
||||||
let areas = {
|
|
||||||
navbar: CustomizableUI.AREA_NAVBAR,
|
|
||||||
menupanel: CustomizableUI.AREA_PANEL,
|
|
||||||
tabstrip: CustomizableUI.AREA_TABSTRIP,
|
|
||||||
personaltoolbar: CustomizableUI.AREA_BOOKMARKS,
|
|
||||||
};
|
|
||||||
let widget = CustomizableUI.createWidget({
|
let widget = CustomizableUI.createWidget({
|
||||||
id: this.id,
|
id: this.id,
|
||||||
viewId: this.viewId,
|
viewId: this.viewId,
|
||||||
|
|
@ -89,8 +83,7 @@ BrowserAction.prototype = {
|
||||||
removable: true,
|
removable: true,
|
||||||
label: this.defaults.title || this.extension.name,
|
label: this.defaults.title || this.extension.name,
|
||||||
tooltiptext: this.defaults.title || "",
|
tooltiptext: this.defaults.title || "",
|
||||||
defaultArea: areas[this.extension.manifest.browser_action.default_area] ||
|
defaultArea: CustomizableUI.AREA_NAVBAR,
|
||||||
CustomizableUI.AREA_NAVBAR,
|
|
||||||
|
|
||||||
onBeforeCreated: document => {
|
onBeforeCreated: document => {
|
||||||
let view = document.createElementNS(XUL_NS, "panelview");
|
let view = document.createElementNS(XUL_NS, "panelview");
|
||||||
|
|
|
||||||
|
|
@ -31,11 +31,6 @@
|
||||||
"browser_style": {
|
"browser_style": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"optional": true
|
"optional": true
|
||||||
},
|
|
||||||
"default_area": {
|
|
||||||
"type": "string",
|
|
||||||
"enum": ["navbar", "menupanel", "tabstrip", "personaltoolbar"],
|
|
||||||
"optional": true
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"optional": true
|
"optional": true
|
||||||
|
|
|
||||||
|
|
@ -2323,16 +2323,11 @@ JSStructuredCloneReader::readHeader()
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Some older IndexedDB writers stored the compatibility marker in the
|
|
||||||
// header. Read those records as durable cross-process data.
|
|
||||||
if (storedScope == JS::StructuredCloneScope::DifferentProcessForIndexedDB) {
|
|
||||||
storedScope = JS::StructuredCloneScope::DifferentProcess;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (allowedScope == JS::StructuredCloneScope::DifferentProcessForIndexedDB) {
|
if (allowedScope == JS::StructuredCloneScope::DifferentProcessForIndexedDB) {
|
||||||
// Bug 1434308 and bug 1458320 - the scopes stored in old IndexedDB
|
// Bug 1434308 and bug 1458320 - the scopes stored in old IndexedDB
|
||||||
// clones are incorrect. Treat them as if they were DifferentProcess.
|
// clones are incorrect. Treat them as if they were DifferentProcess.
|
||||||
allowedScope = JS::StructuredCloneScope::DifferentProcess;
|
allowedScope = JS::StructuredCloneScope::DifferentProcess;
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (storedScope < allowedScope) {
|
if (storedScope < allowedScope) {
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,6 @@ category webextension-scripts notifications chrome://extensions/content/ext-noti
|
||||||
category webextension-scripts i18n chrome://extensions/content/ext-i18n.js
|
category webextension-scripts i18n chrome://extensions/content/ext-i18n.js
|
||||||
category webextension-scripts idle chrome://extensions/content/ext-idle.js
|
category webextension-scripts idle chrome://extensions/content/ext-idle.js
|
||||||
category webextension-scripts webRequest chrome://extensions/content/ext-webRequest.js
|
category webextension-scripts webRequest chrome://extensions/content/ext-webRequest.js
|
||||||
category webextension-scripts dns chrome://extensions/content/ext-dns.js
|
|
||||||
category webextension-scripts webNavigation chrome://extensions/content/ext-webNavigation.js
|
category webextension-scripts webNavigation chrome://extensions/content/ext-webNavigation.js
|
||||||
category webextension-scripts runtime chrome://extensions/content/ext-runtime.js
|
category webextension-scripts runtime chrome://extensions/content/ext-runtime.js
|
||||||
category webextension-scripts extension chrome://extensions/content/ext-extension.js
|
category webextension-scripts extension chrome://extensions/content/ext-extension.js
|
||||||
|
|
|
||||||
|
|
@ -457,7 +457,7 @@
|
||||||
|
|
||||||
<property name="webProgress"
|
<property name="webProgress"
|
||||||
readonly="true"
|
readonly="true"
|
||||||
onget="return this.docShell && this.docShell.QueryInterface(Components.interfaces.nsIInterfaceRequestor).getInterface(Components.interfaces.nsIWebProgress);"/>
|
onget="return this.docShell.QueryInterface(Components.interfaces.nsIInterfaceRequestor).getInterface(Components.interfaces.nsIWebProgress);"/>
|
||||||
|
|
||||||
<field name="_contentWindow">null</field>
|
<field name="_contentWindow">null</field>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue