build: update some build dependencies (#43882)
* build: update some build dependencies * build: fix eslint issues after updating * build: disable ts check on busted js example * build: update internal types for stricter event handling * restore url.parse behavior * fix typing issues * sigh * build: update easy deps * build: skip woa engines check
This commit is contained in:
parent
15db63e26d
commit
74af96da16
49 changed files with 1797 additions and 1276 deletions
|
@ -326,8 +326,8 @@ describe('<webview> tag', function () {
|
|||
|
||||
before(() => {
|
||||
const protocol = webviewSession.protocol;
|
||||
protocol.registerStringProtocol(zoomScheme, (request, callback) => {
|
||||
callback('hello');
|
||||
protocol.registerStringProtocol(zoomScheme, (request, respond) => {
|
||||
respond('hello');
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -838,13 +838,13 @@ describe('<webview> tag', function () {
|
|||
|
||||
function setUpRequestHandler (webContentsId: number, requestedPermission: string) {
|
||||
return new Promise<void>((resolve, reject) => {
|
||||
session.fromPartition(partition).setPermissionRequestHandler(function (webContents, permission, callback) {
|
||||
session.fromPartition(partition).setPermissionRequestHandler(function (webContents, permission, allow) {
|
||||
if (webContents.id === webContentsId) {
|
||||
// All midi permission requests are blocked or allowed as midiSysex permissions
|
||||
// since https://chromium-review.googlesource.com/c/chromium/src/+/5154368
|
||||
if (permission === 'midiSysex') {
|
||||
const allowed = requestedPermission === 'midi' || requestedPermission === 'midiSysex';
|
||||
return callback(!allowed);
|
||||
return allow(!allowed);
|
||||
}
|
||||
|
||||
try {
|
||||
|
@ -852,7 +852,7 @@ describe('<webview> tag', function () {
|
|||
} catch (e) {
|
||||
return reject(e);
|
||||
}
|
||||
callback(false);
|
||||
allow(false);
|
||||
resolve();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue