-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Fix issue 8012 and 7844 #8037
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
Fix issue 8012 and 7844 #8037
Changes from 24 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
872cb22
Prevent crash on `nw.showDevTools` on non-sdk build
ayushmanchhabra e760ba4
build: fix python not found error
ayushmanchhabra bc4e111
build(node): `copy_node` should not refer to Debug on Release
ayushmanchhabra 71fa5de
test: start test case
ayushmanchhabra ea9db44
test: remove tmp file
ayushmanchhabra d76cdc9
test: only run test if flavor is not sdk
ayushmanchhabra a97c0be
EoL
TheJaredWilcurt 4cfc2dc
Add doctype
TheJaredWilcurt df4d9a3
test: move test from sanity to manual
ayushmanchhabra 5eb3e40
test: resolve merge conflicts
ayushmanchhabra e800cf0
build: run using Python3
ayushmanchhabra 3038d82
test: uncomment manual test code
ayushmanchhabra 7185cdb
Merge branch 'nw74' of github.com:tharatau/nw-core into nw74
ayushmanchhabra f099d8d
build: revert incorrect config change
ayushmanchhabra adcac6d
build: revert unnecessary change
ayushmanchhabra 176206e
fix(test): prevent crash
ayushmanchhabra 065413e
Merge branch 'nwjs:nw74' into dev-8012
ayushmanchhabra 344b401
chore: revert git ignore log file
ayushmanchhabra 8d75ac4
chore: revert icu patch
ayushmanchhabra 2d62074
[Resources/Window] Throw error if build flavor not `sdk`
ayushmanchhabra cd89214
[Resources/Window] Throw error if build flavor not `sdk`
ayushmanchhabra 51c9a63
test: catch error to prevent crash
ayushmanchhabra 079d890
Merge branch 'nwjs:nw75' into dev-8012
ayushmanchhabra f46075c
docs: change of behaviour note in docs
ayushmanchhabra c908e4f
Update docs/References/Window.md
ayushmanchhabra 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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| <html> | ||
|
|
||
| <head> | ||
| <script> | ||
| document.addEventListener("DOMContentLoaded", () => { | ||
| const process = require("process"); | ||
| const w = nw.Window.get(); | ||
| document.getElementById("flavor").innerText = "Flavor: " + process.versions["nw-flavor"]; | ||
| try { | ||
| w.showDevTools(); | ||
| } catch (error) { | ||
| document.getElementById("result").innerText = error; | ||
| } | ||
|
|
||
| }); | ||
| </script> | ||
| </head> | ||
|
|
||
| <body> | ||
| <span>The showDevTools function is executted on DOMContentLoaded. If flavor is normal and nw does not crash (assuming error is caught in a try/catch block), test is succesful.</span> | ||
| <br> | ||
| <span id="flavor"></span> | ||
| <br> | ||
| <span id="result"></span> | ||
| </body> | ||
|
|
||
| </html> |
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,4 @@ | ||
| { | ||
| "name": "window-showdevtools", | ||
| "main": "index.html" | ||
| } |
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.