playwright-core 1.56.0-alpha-1758818034000 → 1.56.0-alpha-1758839353000
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/client/events.js +1 -2
- package/lib/client/worker.js +0 -7
- package/lib/protocol/validator.js +0 -15
- package/lib/server/chromium/crServiceWorker.js +0 -9
- package/lib/server/dispatchers/pageDispatcher.js +0 -17
- package/lib/server/page.js +1 -2
- package/lib/utils/isomorphic/protocolMetainfo.js +0 -1
- package/lib/vite/htmlReport/index.html +19 -19
- package/lib/vite/recorder/assets/{codeMirrorModule-B_Ipq0Ck.js → codeMirrorModule-DSzN2zIa.js} +1 -1
- package/lib/vite/recorder/assets/index-C9R4Ow6o.css +1 -0
- package/lib/vite/recorder/assets/{index-BzOuKk9Z.js → index-D_7wWtlA.js} +3 -3
- package/lib/vite/recorder/index.html +2 -2
- package/lib/vite/traceViewer/assets/{codeMirrorModule-BM4HDsMD.js → codeMirrorModule-BQ7uiU6G.js} +1 -1
- package/lib/vite/traceViewer/assets/{defaultSettingsView-EalsP0gL.js → defaultSettingsView-DQMaR5Np.js} +34 -34
- package/lib/vite/traceViewer/defaultSettingsView.9p9jOGMp.css +1 -0
- package/lib/vite/traceViewer/index.D8cN1F_S.css +1 -0
- package/lib/vite/traceViewer/{index.lZ_TahbK.js → index.Uk3svdeq.js} +1 -1
- package/lib/vite/traceViewer/index.html +4 -4
- package/lib/vite/traceViewer/uiMode.DtjjOoZQ.css +1 -0
- package/lib/vite/traceViewer/{uiMode.o1w5TCBQ.js → uiMode.YLtJnQDv.js} +1 -1
- package/lib/vite/traceViewer/uiMode.html +4 -4
- package/package.json +1 -1
- package/types/types.d.ts +0 -39
- package/lib/vite/recorder/assets/index-CgG-oz1O.css +0 -1
- package/lib/vite/traceViewer/defaultSettingsView.F2O5BSjd.css +0 -1
- package/lib/vite/traceViewer/index.BFsek2M6.css +0 -1
- package/lib/vite/traceViewer/uiMode.CmsGRTbS.css +0 -1
package/lib/client/events.js
CHANGED
package/lib/client/worker.js
CHANGED
|
@@ -22,7 +22,6 @@ __export(worker_exports, {
|
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(worker_exports);
|
|
24
24
|
var import_channelOwner = require("./channelOwner");
|
|
25
|
-
var import_consoleMessage = require("./consoleMessage");
|
|
26
25
|
var import_errors = require("./errors");
|
|
27
26
|
var import_events = require("./events");
|
|
28
27
|
var import_jsHandle = require("./jsHandle");
|
|
@@ -39,13 +38,7 @@ class Worker extends import_channelOwner.ChannelOwner {
|
|
|
39
38
|
this._context._serviceWorkers.delete(this);
|
|
40
39
|
this.emit(import_events.Events.Worker.Close, this);
|
|
41
40
|
});
|
|
42
|
-
this._channel.on("console", (event) => {
|
|
43
|
-
this.emit(import_events.Events.Worker.Console, new import_consoleMessage.ConsoleMessage(this._page?.context()._platform ?? this._context?._platform, event, null));
|
|
44
|
-
});
|
|
45
41
|
this.once(import_events.Events.Worker.Close, () => this._closedScope.close(this._page?._closeErrorWithReason() || new import_errors.TargetClosedError()));
|
|
46
|
-
this._setEventToSubscriptionMapping(/* @__PURE__ */ new Map([
|
|
47
|
-
[import_events.Events.Worker.Console, "console"]
|
|
48
|
-
]));
|
|
49
42
|
}
|
|
50
43
|
static from(worker) {
|
|
51
44
|
return worker._object;
|
|
@@ -1953,16 +1953,6 @@ import_validatorPrimitives.scheme.WorkerInitializer = (0, import_validatorPrimit
|
|
|
1953
1953
|
url: import_validatorPrimitives.tString
|
|
1954
1954
|
});
|
|
1955
1955
|
import_validatorPrimitives.scheme.WorkerCloseEvent = (0, import_validatorPrimitives.tOptional)((0, import_validatorPrimitives.tObject)({}));
|
|
1956
|
-
import_validatorPrimitives.scheme.WorkerConsoleEvent = (0, import_validatorPrimitives.tObject)({
|
|
1957
|
-
type: import_validatorPrimitives.tString,
|
|
1958
|
-
text: import_validatorPrimitives.tString,
|
|
1959
|
-
args: (0, import_validatorPrimitives.tArray)((0, import_validatorPrimitives.tChannel)(["ElementHandle", "JSHandle"])),
|
|
1960
|
-
location: (0, import_validatorPrimitives.tObject)({
|
|
1961
|
-
url: import_validatorPrimitives.tString,
|
|
1962
|
-
lineNumber: import_validatorPrimitives.tInt,
|
|
1963
|
-
columnNumber: import_validatorPrimitives.tInt
|
|
1964
|
-
})
|
|
1965
|
-
});
|
|
1966
1956
|
import_validatorPrimitives.scheme.WorkerEvaluateExpressionParams = (0, import_validatorPrimitives.tObject)({
|
|
1967
1957
|
expression: import_validatorPrimitives.tString,
|
|
1968
1958
|
isFunction: (0, import_validatorPrimitives.tOptional)(import_validatorPrimitives.tBoolean),
|
|
@@ -1979,11 +1969,6 @@ import_validatorPrimitives.scheme.WorkerEvaluateExpressionHandleParams = (0, imp
|
|
|
1979
1969
|
import_validatorPrimitives.scheme.WorkerEvaluateExpressionHandleResult = (0, import_validatorPrimitives.tObject)({
|
|
1980
1970
|
handle: (0, import_validatorPrimitives.tChannel)(["ElementHandle", "JSHandle"])
|
|
1981
1971
|
});
|
|
1982
|
-
import_validatorPrimitives.scheme.WorkerUpdateSubscriptionParams = (0, import_validatorPrimitives.tObject)({
|
|
1983
|
-
event: (0, import_validatorPrimitives.tEnum)(["console"]),
|
|
1984
|
-
enabled: import_validatorPrimitives.tBoolean
|
|
1985
|
-
});
|
|
1986
|
-
import_validatorPrimitives.scheme.WorkerUpdateSubscriptionResult = (0, import_validatorPrimitives.tOptional)((0, import_validatorPrimitives.tObject)({}));
|
|
1987
1972
|
import_validatorPrimitives.scheme.JSHandleInitializer = (0, import_validatorPrimitives.tObject)({
|
|
1988
1973
|
preview: import_validatorPrimitives.tString
|
|
1989
1974
|
});
|
|
@@ -35,9 +35,7 @@ var import_page = require("../page");
|
|
|
35
35
|
var import_crExecutionContext = require("./crExecutionContext");
|
|
36
36
|
var import_crNetworkManager = require("./crNetworkManager");
|
|
37
37
|
var import_browserContext = require("../browserContext");
|
|
38
|
-
var import_console = require("../console");
|
|
39
38
|
var network = __toESM(require("../network"));
|
|
40
|
-
var import_crProtocolHelper = require("./crProtocolHelper");
|
|
41
39
|
class CRServiceWorker extends import_page.Worker {
|
|
42
40
|
constructor(browserContext, session, url) {
|
|
43
41
|
super(browserContext, url);
|
|
@@ -68,13 +66,6 @@ class CRServiceWorker extends import_page.Worker {
|
|
|
68
66
|
session.on("Inspector.targetReloadedAfterCrash", () => {
|
|
69
67
|
session._sendMayFail("Runtime.runIfWaitingForDebugger", {});
|
|
70
68
|
});
|
|
71
|
-
session.on("Runtime.consoleAPICalled", (event) => {
|
|
72
|
-
if (!this.existingExecutionContext)
|
|
73
|
-
return;
|
|
74
|
-
const args = event.args.map((o) => (0, import_crExecutionContext.createHandle)(this.existingExecutionContext, o));
|
|
75
|
-
const message = new import_console.ConsoleMessage(null, event.type, void 0, args, (0, import_crProtocolHelper.toConsoleMessageLocation)(event.stackTrace));
|
|
76
|
-
this.emit(import_page.Worker.Events.Console, message);
|
|
77
|
-
});
|
|
78
69
|
}
|
|
79
70
|
didClose() {
|
|
80
71
|
this._networkManager?.removeSession(this._session);
|
|
@@ -349,18 +349,7 @@ class WorkerDispatcher extends import_dispatcher.Dispatcher {
|
|
|
349
349
|
url: worker.url
|
|
350
350
|
});
|
|
351
351
|
this._type_Worker = true;
|
|
352
|
-
this._subscriptions = /* @__PURE__ */ new Set();
|
|
353
352
|
this.addObjectListener(import_page.Worker.Events.Close, () => this._dispatchEvent("close"));
|
|
354
|
-
this.addObjectListener(import_page.Worker.Events.Console, (message) => {
|
|
355
|
-
if (!this._subscriptions.has("console"))
|
|
356
|
-
return;
|
|
357
|
-
this._dispatchEvent("console", {
|
|
358
|
-
type: message.type(),
|
|
359
|
-
text: message.text(),
|
|
360
|
-
args: message.args().map((a) => import_jsHandleDispatcher.JSHandleDispatcher.fromJSHandle(this, a)),
|
|
361
|
-
location: message.location()
|
|
362
|
-
});
|
|
363
|
-
});
|
|
364
353
|
}
|
|
365
354
|
static fromNullable(scope, worker) {
|
|
366
355
|
if (!worker)
|
|
@@ -368,12 +357,6 @@ class WorkerDispatcher extends import_dispatcher.Dispatcher {
|
|
|
368
357
|
const result = scope.connection.existingDispatcher(worker);
|
|
369
358
|
return result || new WorkerDispatcher(scope, worker);
|
|
370
359
|
}
|
|
371
|
-
async updateSubscription(params, progress) {
|
|
372
|
-
if (params.enabled)
|
|
373
|
-
this._subscriptions.add(params.event);
|
|
374
|
-
else
|
|
375
|
-
this._subscriptions.delete(params.event);
|
|
376
|
-
}
|
|
377
360
|
async evaluateExpression(params, progress) {
|
|
378
361
|
return { value: (0, import_jsHandleDispatcher.serializeResult)(await progress.race(this._object.evaluateExpression(params.expression, params.isFunction, (0, import_jsHandleDispatcher.parseArgument)(params.arg)))) };
|
|
379
362
|
}
|
package/lib/server/page.js
CHANGED
|
@@ -193,7 +193,6 @@ const methodMetainfo = /* @__PURE__ */ new Map([
|
|
|
193
193
|
["Frame.expect", { title: 'Expect "{expression}"', snapshot: true, pausesBeforeAction: true }],
|
|
194
194
|
["Worker.evaluateExpression", { title: "Evaluate" }],
|
|
195
195
|
["Worker.evaluateExpressionHandle", { title: "Evaluate" }],
|
|
196
|
-
["Worker.updateSubscription", { internal: true }],
|
|
197
196
|
["JSHandle.dispose", { internal: true }],
|
|
198
197
|
["ElementHandle.dispose", { internal: true }],
|
|
199
198
|
["JSHandle.evaluateExpression", { title: "Evaluate", snapshot: true, pausesBeforeAction: true }],
|