mirror of
https://github.com/github/codeql.git
synced 2026-04-28 18:25:24 +02:00
add extra promise test for chrome-remote-interface
This commit is contained in:
@@ -60,6 +60,10 @@ var server = http.createServer(async function(req, res) {
|
||||
var client = await CDP(options);
|
||||
client.Page.navigate({url: tainted}); // NOT OK.
|
||||
|
||||
CDP(options).catch((ignored) => {}).then((client) => {
|
||||
client.Page.navigate({url: tainted}); // NOT OK.
|
||||
})
|
||||
|
||||
CDP(options, (client) => {
|
||||
client.Page.navigate({url: tainted}); // NOT OK.
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user