gestalt-mobile 0.66.0 → 0.66.1
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/README.md
CHANGED
|
@@ -684,17 +684,19 @@ and select **run_slow_tests**, or run:
|
|
|
684
684
|
gh workflow run ci.yml --ref YOUR_BRANCH -f run_slow_tests=true
|
|
685
685
|
```
|
|
686
686
|
|
|
687
|
-
|
|
687
|
+
Browser tests always use an existing system Chrome installation:
|
|
688
688
|
|
|
689
689
|
```sh
|
|
690
690
|
npm ci
|
|
691
691
|
npm run build:client
|
|
692
|
-
|
|
692
|
+
npm run test:e2e
|
|
693
693
|
```
|
|
694
694
|
|
|
695
695
|
Use the lane commands below for functional, visual-evidence or real-auth tests.
|
|
696
|
-
|
|
697
|
-
|
|
696
|
+
Set `PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH=/absolute/path/to/chrome` for a custom
|
|
697
|
+
installed executable. All browser lanes use the Chrome channel by default and
|
|
698
|
+
fail if Chrome is missing; they never fall back to Playwright's bundled Chromium.
|
|
699
|
+
GitHub browser jobs verify the runner's installed Chrome. Run the relevant browser suite
|
|
698
700
|
manually when changing browser behavior. The actual CLI/Mobile managed-browser
|
|
699
701
|
integration has separate installed-runtime prerequisites and remains opt-in;
|
|
700
702
|
see [Managed browser access](docs/managed-playwright.md#manual-integration-tests).
|
|
@@ -82,7 +82,7 @@ export class FilesystemScratchCleanup {
|
|
|
82
82
|
const marker = await readManagedScratchOwner(directory, workspacePath, ownerId);
|
|
83
83
|
await this.releasedLeases(directory, marker);
|
|
84
84
|
await this.assertProtection(directory, join(container, ownerId), marker, protectedSessions, authorized);
|
|
85
|
-
await this.
|
|
85
|
+
await this.validatePayload(directory);
|
|
86
86
|
await privateDirectory(directory, false);
|
|
87
87
|
await containment.revalidate();
|
|
88
88
|
if (name === ownerId) {
|
|
@@ -215,7 +215,7 @@ export class FilesystemScratchCleanup {
|
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
|
-
async
|
|
218
|
+
async validatePayload(directory, root = directory, depth = 0, budget = { entries: 0 }) {
|
|
219
219
|
if (depth > 128)
|
|
220
220
|
reject('unrecognized');
|
|
221
221
|
// Even an empty nested namespace is not authority to retire a workspace's
|
|
@@ -233,13 +233,15 @@ export class FilesystemScratchCleanup {
|
|
|
233
233
|
reject('unrecognized');
|
|
234
234
|
const path = join(directory, child);
|
|
235
235
|
const info = await lstat(path);
|
|
236
|
-
if (info.
|
|
237
|
-
(
|
|
238
|
-
(!info.isDirectory() && !info.isFile()) ||
|
|
236
|
+
if ((process.getuid && info.uid !== process.getuid()) ||
|
|
237
|
+
(!info.isDirectory() && !info.isFile() && !info.isSymbolicLink()) ||
|
|
239
238
|
(info.isFile() && info.nlink !== 1))
|
|
240
239
|
reject('unsafe');
|
|
240
|
+
// Payload symlinks (for example npm's .bin entries) are disposable links.
|
|
241
|
+
// lstat never follows them, and rm unlinks them without deleting their targets.
|
|
242
|
+
// Owner paths and authority metadata retain their separate no-link checks.
|
|
241
243
|
if (info.isDirectory())
|
|
242
|
-
await this.
|
|
244
|
+
await this.validatePayload(path, root, depth + 1, budget);
|
|
243
245
|
}
|
|
244
246
|
}
|
|
245
247
|
}
|