-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add native flags #7047
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
Add native flags #7047
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
333213a to
32a2851
Compare
9acf98b to
430faa1
Compare
32a2851 to
0cc84c6
Compare
430faa1 to
4ac0fa6
Compare
076c964 to
a06b305
Compare
2c94455 to
25ece01
Compare
b7f188f to
c65ab5b
Compare
570a808 to
c3e7a5f
Compare
c3e7a5f to
9ddaa8e
Compare
5264c26 to
1566341
Compare
bd226fc to
7d2013c
Compare
47b6f76 to
54c44e3
Compare
| lifecycleScope.launch { | ||
| webViewCompatTestHelper.onBrowserMenuButtonPressed(webView) | ||
| } | ||
| } | ||
|
|
||
| private fun onPageStarted() { | ||
| lifecycleScope.launch(dispatchers.main()) { | ||
| webViewCompatTestHelper.onPageStarted(webView) | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: why specify dispatcher in one of these but not the other?we just let the dispatcher be handled internally and the caller doesn't have to care, IMO
| } | ||
| } | ||
|
|
||
| private fun blobDownloadScriptForWebViewCompatTest(): String { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we move this to the webViewCompatTestHelper ?
54c44e3 to
71e27f7
Compare

Task/Issue URL: https://app.asana.com/1/137249556945/project/72649045549333/task/1211755269770778?focus=true
Description
Steps to test this PR
Feature 1
Blob downloads listener received WebViewCompat message: webViewCompat Ping:http://privacy-test-pages.site/security/badware/malware-download.html 10ms. ValidatesjsSendsInitialPingandjsInitialPingDelaydelaying response by 10 ms. ValidatesinitialPingDelayPosting response Pong from Native. ValidatesreplyToInitialPingSending message PageStarted using reply proxy. ValidatessendMessageOnPageStartedandsendMessagesUsingReplyProxyBlob downloads listener received WebViewCompat message: webViewCompat PageStarted from ddgBlobDownloadObj. ValidatesuseBlobDownloadsMessageListenerandjsRepliesToNativeMessagesSending message ContextMenuOpened using reply proxy. ValidatessendMessageOnContextMenuOpenBlob downloads listener received WebViewCompat message: webViewCompat ContextMenuOpened from ddgBlobDownloadObj. ValidatesuseBlobDownloadsMessageListenerandjsRepliesToNativeMessagesFeature 2
webViewCompat message received: webViewCompat Ping:http://privacy-test-pages.site/security/badware/malware-download.html 10ms. ValidatesinitialPingDelay10ms,jsSendsInitialPingenabled, anduseBlobDownloadsMessageListenerdisableddelaying response by 10 msnorPosting response Pong from Native. ValidatesreplyToInitialPingdisabledSending message PageStarted.... ValidatessendMessageOnPageStarteddisabledSending message ContextMenuOpened.... ValidatessendMessageOnContextMenuOpendisabledFeature 3
webViewCompat message received: webViewCompat Ping:http://privacy-test-pages.site/security/badware/malware-download.html 10ms. ValidatesinitialPingDelay10ms,jsSendsInitialPingenabled, anduseBlobDownloadsMessageListenerdisableddelaying response by 10 msnorPosting response Pong from Native. ValidatesreplyToInitialPingdisabledSending message PageStarted.... ValidatessendMessageOnPageStarteddisabledSending message ContextMenuOpened not using reply proxy. ValidatessendMessageOnContextMenuOpenenabled andsendMessagesUsingReplyProxydisabledUI changes