--- a/devtools/shared/specs/tab.js
+++ b/devtools/shared/specs/tab.js
@@ -13,17 +13,16 @@ types.addDictType("tab.attach", {
traits: "json",
});
types.addDictType("tab.detach", {
error: "nullable:string",
type: "nullable:string",
});
-
types.addDictType("tab.switchtoframerequest", {
windowId: "string"
});
types.addDictType("tab.switchtoframeresponse", {
error: "nullable:string",
message: "nullable:string",
});
@@ -40,37 +39,38 @@ types.addDictType("tab.window", {
});
types.addDictType("tab.workers", {
error: "nullable:string",
from: "nullable:string",
});
types.addDictType("tab.reload", {
- options: "nullable:tab.reloadoptions"
+ force: "boolean"
});
-types.addDictType("tab.reloadoptions", {
- force: "boolean"
+types.addDictType("tab.navigateto", {
+ url: "string"
});
types.addDictType("tab.reconfigure", {
options: "nullable:tab.reconfigureoptions"
});
types.addDictType("tab.reconfigureoptions", {
javascriptEnabled: "nullable:boolean",
cacheDisabled: "nullable:boolean",
serviceWorkersTestingEnabled: "nullable:boolean",
performReload: "nullable:boolean"
});
+
types.addDictType("tab.loginpage", {
text: "string",
category: "string",
- flags: "strng"
+ flags: "string"
});
const tabSpec = generateActorSpec({
typeName: "tab",
methods: {
attach: {
request: {},
@@ -81,46 +81,50 @@ const tabSpec = generateActorSpec({
response: RetVal("tab.detach")
},
focus: {
request: {},
response: {}
},
reload: {
request: {
- request: Option(0, "tab.reload"),
+ options: Option(0, "tab.reload"),
},
response: {}
},
navigateTo: {
- request: {},
+ request: {
+ request: Arg(0, "tab.navigateto"),
+ },
response: {}
},
reconfigure: {
request: {
- request: Option(0, "tab.reconfigure")
+ options: Option(0, "tab.reconfigureoptions")
},
response: {}
},
switchToFrame: {
request: {
- request: Arg(0, "tab.switchtoframerequest")
+ windowId: Option(0, "string")
},
response: RetVal("tab.switchtoframeresponse")
},
listFrames: {
request: {},
response: RetVal("tab.listframes")
},
listWorkers: {
request: {},
response: RetVal("tab.workers")
},
logInPage: {
request: {
- request: Arg(0, "tab.loginpage")
+ text: Option(0, "string"),
+ category: Option(0, "string"),
+ flags: Option(0, "string")
},
response: {}
}
},
});
exports.tabSpec = tabSpec;