Socket
Socket
Sign inDemoInstall

playwright-core

Package Overview
Dependencies
Maintainers
4
Versions
4543
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

playwright-core - npm Package Compare versions

Comparing version 1.48.0-alpha-2024-09-23 to 1.48.0-alpha-2024-09-24

lib/generated/pollingRecorderSource.js

4

browsers.json

@@ -12,5 +12,5 @@ {

"name": "chromium-tip-of-tree",
"revision": "1261",
"revision": "1262",
"installByDefault": false,
"browserVersion": "131.0.6726.0"
"browserVersion": "131.0.6734.0"
},

@@ -17,0 +17,0 @@ {

@@ -589,7 +589,7 @@ "use strict";

const delegate = new _crExecutionContext.CRExecutionContext(this._client, contextPayload);
let worldName;
if (contextPayload.auxData && !!contextPayload.auxData.isDefault) worldName = 'main';else if (contextPayload.name === UTILITY_WORLD_NAME) worldName = 'utility';else return;
let worldName = null;
if (contextPayload.auxData && !!contextPayload.auxData.isDefault) worldName = 'main';else if (contextPayload.name === UTILITY_WORLD_NAME) worldName = 'utility';
const context = new dom.FrameExecutionContext(delegate, frame, worldName);
context[contextDelegateSymbol] = delegate;
frame._contextCreated(worldName, context);
if (worldName) frame._contextCreated(worldName, context);
this._contextIdToContext.set(contextPayload.id, context);

@@ -596,0 +596,0 @@ }

@@ -124,7 +124,7 @@ "use strict";

const delegate = new _ffExecutionContext.FFExecutionContext(this._session, executionContextId);
let worldName;
if (auxData.name === UTILITY_WORLD_NAME) worldName = 'utility';else if (!auxData.name) worldName = 'main';else return;
let worldName = null;
if (auxData.name === UTILITY_WORLD_NAME) worldName = 'utility';else if (!auxData.name) worldName = 'main';
const context = new dom.FrameExecutionContext(delegate, frame, worldName);
context[contextDelegateSymbol] = delegate;
frame._contextCreated(worldName, context);
if (worldName) frame._contextCreated(worldName, context);
this._contextIdToContext.set(executionContextId, context);

@@ -131,0 +131,0 @@ }

@@ -9,3 +9,3 @@ "use strict";

var _events = require("events");
var recorderSource = _interopRequireWildcard(require("../../generated/recorderSource"));
var recorderSource = _interopRequireWildcard(require("../../generated/pollingRecorderSource"));
var _utils = require("../../utils");

@@ -53,2 +53,4 @@ var _timeoutRunner = require("../../utils/timeoutRunner");

this._listeners = [];
this._codegenMode = void 0;
this._codegenMode = codegenMode;
this._context = context;

@@ -147,8 +149,10 @@ this._params = params;

this._collection.setEnabled(enabled);
if (enabled) this._context.tracing.startChunk({
name: 'trace',
title: 'trace'
}).catch(() => {});else this._context.tracing.stopChunk({
mode: 'discard'
}).catch(() => {});
if (this._codegenMode === 'trace-events') {
if (enabled) this._context.tracing.startChunk({
name: 'trace',
title: 'trace'
}).catch(() => {});else this._context.tracing.stopChunk({
mode: 'discard'
}).catch(() => {});
}
}

@@ -155,0 +159,0 @@ dispose() {

@@ -464,7 +464,7 @@ "use strict";

const delegate = new _wkExecutionContext.WKExecutionContext(this._session, contextPayload.id);
let worldName;
if (contextPayload.type === 'normal') worldName = 'main';else if (contextPayload.type === 'user' && contextPayload.name === UTILITY_WORLD_NAME) worldName = 'utility';else return;
let worldName = null;
if (contextPayload.type === 'normal') worldName = 'main';else if (contextPayload.type === 'user' && contextPayload.name === UTILITY_WORLD_NAME) worldName = 'utility';
const context = new dom.FrameExecutionContext(delegate, frame, worldName);
context[contextDelegateSymbol] = delegate;
frame._contextCreated(worldName, context);
if (worldName) frame._contextCreated(worldName, context);
this._contextIdToContext.set(contextPayload.id, context);

@@ -1077,3 +1077,3 @@ }

this._page._frameManager.requestReceivedResponse(response);
if (response.status() === 204) {
if (response.status() === 204 && request.request.isNavigationRequest()) {
this._onLoadingFailed(session, {

@@ -1080,0 +1080,0 @@ requestId: event.requestId,

{
"name": "playwright-core",
"version": "1.48.0-alpha-2024-09-23",
"version": "1.48.0-alpha-2024-09-24",
"description": "A high-level API to automate web browsers",

@@ -5,0 +5,0 @@ "repository": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc