feat(firefox-beta): roll to r1415 (#23866)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Andrey Lushnikov <aslushnikov@gmail.com>
This commit is contained in:
Родитель
5821c547aa
Коммит
f85480a12e
|
@ -27,9 +27,9 @@
|
|||
},
|
||||
{
|
||||
"name": "firefox-beta",
|
||||
"revision": "1414",
|
||||
"revision": "1415",
|
||||
"installByDefault": false,
|
||||
"browserVersion": "114.0b3"
|
||||
"browserVersion": "115.0b8"
|
||||
},
|
||||
{
|
||||
"name": "webkit",
|
||||
|
|
|
@ -1031,7 +1031,9 @@ export class Frame extends SdkObject {
|
|||
const actionPromise = func().then(r => result = r).catch(e => error = e);
|
||||
const errorPromise = new Promise<void>(resolve => {
|
||||
listeners.push(eventsHelper.addEventListener(this._page._browserContext, BrowserContext.Events.Console, (message: ConsoleMessage) => {
|
||||
if (message.page() === this._page && message.type() === 'error' && message.text().includes('Content Security Policy')) {
|
||||
if (message.page() !== this._page || message.type() !== 'error')
|
||||
return;
|
||||
if (message.text().includes('Content-Security-Policy') || message.text().includes('Content Security Policy')) {
|
||||
cspMessage = message;
|
||||
resolve();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче