-
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
Fix issue 8012 and 7844 #8037
Conversation
nw.showDevTools on non-sdk buildnw.showDevTools function if called on non-sdk build
|
I was not sure how to test for this behaviour - please let me know if there is a better way to go about it! |
Sanity tests are executed by chromedriver on sdk build flavor. We want to test if showDevTools does not crash NW on execution.
nw.showDevTools function if called on non-sdk buildshowDevTools if called on non-sdk build
Check if error is returned before adding it to DOM node's `innerText`
|
@rogerwang This is ready for review. Would you be open to backporting these changes to previous versions (nw72 for win 7 and 8)? |
|
@rogerwang would like to get some feedback on this whenever you get the time |
showDevTools if called on non-sdk build|
@TheJaredWilcurt feel free to update/improve the JSDoc descriptions. I was not sure how to document a callback - maybe you can help out with that? |
Co-authored-by: The Jared Wilcurt <[email protected]>
Fixes: #8012
Fixes: #7844
The
Window.showDevtoolsfunction crashes since it is not available onnormalflavor. This PR makes the function throw an error which the user can catch in a try/catch block preventing crash.