Repository navigation
fix(electron): refuse every spelling of the engine's own launch switches, and bound an .asar app by its archive #2501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
30a4cc5
fix(electron): bound a declared .asar app by the archive when the mai…
kdy1 1be61bd
test(electron): cover the local file bound on observations, trace scr…
kdy1 2cea1b6
fix(electron): refuse Node's other inspector switches in launch argum…
kdy1 1731314
fix(electron): refuse the engine's own switches spelled with one dash…
kdy1 c6092be
test(electron): stop the recorder even when the file bound test fails
kdy1 5a59962
chore(electron): add a changeset for the owned-switch and .asar bound…
kdy1 da94a54
fix(electron): refuse an owned switch with whitespace around it
kdy1 6c7c3a2
fix(electron): refuse an owned switch in any letter case on Windows
kdy1 f7e5bd0
chore(electron): name whitespace and Windows letter case in the owned…
kdy1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@e2e-dev/electron': patch | ||
| --- | ||
|
|
||
| `app.launchArguments` and `electron.launch({ launchArguments })` refuse the switches the engine owns however Chromium would read them: after one dash as well as two (`-remote-debugging-port=9222`), with whitespace around them, after a slash and in any letter case on Windows, and Node's other inspector switches (`--inspect-port`, `--inspect-wait`, `--inspect-brk-node`, `--debug-port`). Each one used to reach the app and could open a second debugging port or break the launch. A packaged app named by its `.asar` archive is bound to that archive when Electron does not report the app's path, so a window that shows a file next to the archive is not observed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.