-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat: wallet-services and request() function added #16
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Gaurav Goel <[email protected]>
Signed-off-by: Gaurav Goel <[email protected]>
Signed-off-by: Gaurav Goel <[email protected]>
Signed-off-by: Gaurav Goel <[email protected]>
Signed-off-by: Gaurav Goel <[email protected]>
Signed-off-by: Gaurav Goel <[email protected]>
Signed-off-by: Gaurav Goel <[email protected]>
Signed-off-by: Gaurav Goel <[email protected]>
Signed-off-by: Gaurav Goel <[email protected]>
…e everywhere Signed-off-by: Gaurav Goel <[email protected]>
Signed-off-by: Gaurav Goel <[email protected]>
Signed-off-by: Gaurav Goel <[email protected]>
Signed-off-by: Gaurav Goel <[email protected]>
Signed-off-by: Gaurav Goel <[email protected]>
Signed-off-by: Gaurav Goel <[email protected]>
Signed-off-by: Gaurav Goel <[email protected]>
super.onCreate(savedInstanceState) | ||
supportActionBar?.hide() | ||
setContentView(R.layout.activity_webview) | ||
webView = findViewById(R.id.webView) |
Check warning
Code scanning / CodeQL
Android WebView settings allows access to content links Medium
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix AI 4 days ago
To fix the problem, we need to explicitly disable access to content://
URLs in the WebView settings. This can be done by calling setAllowContentAccess(false)
on the WebSettings object of the WebView. This change should be made in the onCreate
method where the WebView settings are configured.
-
Copy modified line R79
@@ -78,2 +78,3 @@ | ||
webSettings.setSupportMultipleWindows(true) | ||
webSettings.setAllowContentAccess(false) | ||
|
} | ||
|
||
val webSettings: WebSettings = webView.settings | ||
webSettings.javaScriptEnabled = true |
Check warning
Code scanning / CodeQL
Android WebView JavaScript settings Medium
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix AI 4 days ago
To fix the problem, we need to disable JavaScript execution in the WebView settings. If JavaScript is necessary for the application's functionality, we should ensure that only content from trusted sources is loaded using encrypted channels (e.g., HTTPS with certificate verification). In this case, we will disable JavaScript execution by setting webSettings.javaScriptEnabled
to false
.
-
Copy modified line R75
@@ -74,3 +74,3 @@ | ||
val webSettings: WebSettings = webView.settings | ||
webSettings.javaScriptEnabled = true | ||
webSettings.javaScriptEnabled = false | ||
webSettings.domStorageEnabled = true |
} | ||
} | ||
|
||
webView.addJavascriptInterface(this, "JSBridge") |
Check warning
Code scanning / CodeQL
Access Java object methods through JavaScript exposure Medium
Signed-off-by: Gaurav Goel <[email protected]>
Signed-off-by: Gaurav Goel <[email protected]>
Signed-off-by: Gaurav Goel <[email protected]>
Motivation and Context
Jira Link: https://toruslabs.atlassian.net/browse/PD-4249 , https://toruslabs.atlassian.net/browse/PD-4255, https://toruslabs.atlassian.net/browse/PD-4252
Description
How has this been tested?
Screenshots (if appropriate):
Types of changes
Checklist: