зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1280404
- Implement chrome.webNavigation.onTabReplaced, r=aswan
MozReview-Commit-ID: 6K167oHyqz2 --HG-- extra : rebase_source : 9b5b4caf61de22a94018d6d2a4a11f75f18ff207
This commit is contained in:
Родитель
28e8c3a726
Коммит
679d4fcd37
|
@ -161,6 +161,7 @@ function convertGetFrameResult(tabId, data) {
|
|||
extensions.registerSchemaAPI("webNavigation", "addon_parent", context => {
|
||||
return {
|
||||
webNavigation: {
|
||||
onTabReplaced: ignoreEvent(context, "webNavigation.onTabReplaced"),
|
||||
onBeforeNavigate: new WebNavigationEventManager(context, "onBeforeNavigate").api(),
|
||||
onCommitted: new WebNavigationEventManager(context, "onCommitted").api(),
|
||||
onDOMContentLoaded: new WebNavigationEventManager(context, "onDOMContentLoaded").api(),
|
||||
|
|
|
@ -340,7 +340,6 @@
|
|||
},
|
||||
{
|
||||
"name": "onTabReplaced",
|
||||
"unsupported": true,
|
||||
"type": "function",
|
||||
"description": "Fired when the contents of the tab is replaced by a different (usually previously pre-rendered) tab.",
|
||||
"parameters": [
|
||||
|
|
|
@ -21,6 +21,7 @@ function backgroundScript() {
|
|||
const URL = BASE + "/file_WebNavigation_page1.html";
|
||||
|
||||
const EVENTS = [
|
||||
"onTabReplaced",
|
||||
"onBeforeNavigate",
|
||||
"onCommitted",
|
||||
"onDOMContentLoaded",
|
||||
|
|
Загрузка…
Ссылка в новой задаче