patchright-core 1.55.1 → 1.55.3
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/bin/reinstall_chrome_beta_mac.sh +1 -1
- package/bin/reinstall_chrome_stable_mac.sh +1 -1
- package/bin/reinstall_msedge_beta_mac.sh +1 -1
- package/bin/reinstall_msedge_dev_mac.sh +1 -1
- package/bin/reinstall_msedge_stable_mac.sh +1 -1
- package/browsers.json +4 -4
- package/lib/client/locator.js +5 -5
- package/lib/generated/injectedScriptSource.js +1 -1
- package/lib/server/browserContext.js +1 -3
- package/lib/server/chromium/chromiumSwitches.js +0 -1
- package/lib/server/chromium/crNetworkManager.js +146 -27
- package/lib/server/chromium/crServiceWorker.js +10 -0
- package/lib/server/deviceDescriptorsSource.json +54 -54
- package/lib/server/frames.js +17 -13
- package/lib/vite/htmlReport/index.html +1 -1
- package/lib/vite/traceViewer/assets/{codeMirrorModule-Di48jgWx.js → codeMirrorModule-DsmF_DpA.js} +1 -1
- package/lib/vite/traceViewer/assets/{defaultSettingsView-szBn8781.js → defaultSettingsView-Cd59AFK5.js} +3 -3
- package/lib/vite/traceViewer/{index.DQvXoPLL.js → index.BivEwfRr.js} +1 -1
- package/lib/vite/traceViewer/index.html +2 -2
- package/lib/vite/traceViewer/{uiMode.dBV3oN9h.js → uiMode.BDvz7Y9W.js} +1 -1
- package/lib/vite/traceViewer/uiMode.html +2 -2
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ set -x
|
|
|
4
4
|
|
|
5
5
|
rm -rf "/Applications/Google Chrome Beta.app"
|
|
6
6
|
cd /tmp
|
|
7
|
-
curl --retry 3 -o ./googlechromebeta.dmg
|
|
7
|
+
curl --retry 3 -o ./googlechromebeta.dmg https://dl.google.com/chrome/mac/universal/beta/googlechromebeta.dmg
|
|
8
8
|
hdiutil attach -nobrowse -quiet -noautofsck -noautoopen -mountpoint /Volumes/googlechromebeta.dmg ./googlechromebeta.dmg
|
|
9
9
|
cp -pR "/Volumes/googlechromebeta.dmg/Google Chrome Beta.app" /Applications
|
|
10
10
|
hdiutil detach /Volumes/googlechromebeta.dmg
|
|
@@ -4,7 +4,7 @@ set -x
|
|
|
4
4
|
|
|
5
5
|
rm -rf "/Applications/Google Chrome.app"
|
|
6
6
|
cd /tmp
|
|
7
|
-
curl --retry 3 -o ./googlechrome.dmg
|
|
7
|
+
curl --retry 3 -o ./googlechrome.dmg https://dl.google.com/chrome/mac/universal/stable/GGRO/googlechrome.dmg
|
|
8
8
|
hdiutil attach -nobrowse -quiet -noautofsck -noautoopen -mountpoint /Volumes/googlechrome.dmg ./googlechrome.dmg
|
|
9
9
|
cp -pR "/Volumes/googlechrome.dmg/Google Chrome.app" /Applications
|
|
10
10
|
hdiutil detach /Volumes/googlechrome.dmg
|
|
@@ -3,7 +3,7 @@ set -e
|
|
|
3
3
|
set -x
|
|
4
4
|
|
|
5
5
|
cd /tmp
|
|
6
|
-
curl --retry 3 -o ./msedge_beta.pkg
|
|
6
|
+
curl --retry 3 -o ./msedge_beta.pkg "$1"
|
|
7
7
|
# Note: there's no way to uninstall previously installed MSEdge.
|
|
8
8
|
# However, running PKG again seems to update installation.
|
|
9
9
|
sudo installer -pkg /tmp/msedge_beta.pkg -target /
|
|
@@ -3,7 +3,7 @@ set -e
|
|
|
3
3
|
set -x
|
|
4
4
|
|
|
5
5
|
cd /tmp
|
|
6
|
-
curl --retry 3 -o ./msedge_dev.pkg
|
|
6
|
+
curl --retry 3 -o ./msedge_dev.pkg "$1"
|
|
7
7
|
# Note: there's no way to uninstall previously installed MSEdge.
|
|
8
8
|
# However, running PKG again seems to update installation.
|
|
9
9
|
sudo installer -pkg /tmp/msedge_dev.pkg -target /
|
|
@@ -3,7 +3,7 @@ set -e
|
|
|
3
3
|
set -x
|
|
4
4
|
|
|
5
5
|
cd /tmp
|
|
6
|
-
curl --retry 3 -o ./msedge_stable.pkg
|
|
6
|
+
curl --retry 3 -o ./msedge_stable.pkg "$1"
|
|
7
7
|
# Note: there's no way to uninstall previously installed MSEdge.
|
|
8
8
|
# However, running PKG again seems to update installation.
|
|
9
9
|
sudo installer -pkg /tmp/msedge_stable.pkg -target /
|
package/browsers.json
CHANGED
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
"browsers": [
|
|
4
4
|
{
|
|
5
5
|
"name": "chromium",
|
|
6
|
-
"revision": "
|
|
6
|
+
"revision": "1193",
|
|
7
7
|
"installByDefault": true,
|
|
8
|
-
"browserVersion": "140.0.7339.
|
|
8
|
+
"browserVersion": "140.0.7339.186"
|
|
9
9
|
},
|
|
10
10
|
{
|
|
11
11
|
"name": "chromium-headless-shell",
|
|
12
|
-
"revision": "
|
|
12
|
+
"revision": "1193",
|
|
13
13
|
"installByDefault": true,
|
|
14
|
-
"browserVersion": "140.0.7339.
|
|
14
|
+
"browserVersion": "140.0.7339.186"
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
"name": "chromium-tip-of-tree",
|
package/lib/client/locator.js
CHANGED
|
@@ -100,15 +100,15 @@ class Locator {
|
|
|
100
100
|
}
|
|
101
101
|
async evaluate(pageFunction, arg, options, isolatedContext = true) {
|
|
102
102
|
return await this._withElement(
|
|
103
|
-
async (h) => parseResult(
|
|
103
|
+
async (h) => (0, import_jsHandle.parseResult)(
|
|
104
104
|
(await h._channel.evaluateExpression({
|
|
105
105
|
expression: String(pageFunction),
|
|
106
106
|
isFunction: typeof pageFunction === "function",
|
|
107
|
-
arg: serializeArgument(arg),
|
|
107
|
+
arg: (0, import_jsHandle.serializeArgument)(arg),
|
|
108
108
|
isolatedContext
|
|
109
109
|
})).value
|
|
110
110
|
),
|
|
111
|
-
options?.timeout
|
|
111
|
+
{ title: "Evaluate", timeout: options?.timeout }
|
|
112
112
|
);
|
|
113
113
|
}
|
|
114
114
|
async _evaluateFunction(functionDeclaration, options) {
|
|
@@ -123,11 +123,11 @@ class Locator {
|
|
|
123
123
|
(await h._channel.evaluateExpressionHandle({
|
|
124
124
|
expression: String(pageFunction),
|
|
125
125
|
isFunction: typeof pageFunction === "function",
|
|
126
|
-
arg: serializeArgument(arg),
|
|
126
|
+
arg: (0, import_jsHandle.serializeArgument)(arg),
|
|
127
127
|
isolatedContext
|
|
128
128
|
})).handle
|
|
129
129
|
),
|
|
130
|
-
options?.timeout
|
|
130
|
+
{ title: "Evaluate", timeout: options?.timeout }
|
|
131
131
|
);
|
|
132
132
|
}
|
|
133
133
|
async fill(value, options = {}) {
|