-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[webview_flutter] Add support for js alert
, confirm
, prompt
.
#2012
[webview_flutter] Add support for js alert
, confirm
, prompt
.
#2012
Conversation
fix 30358 |
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.
I see you're only fix for ios. Can you fix for android?
@dieudv I'm not familiar with android develop, but I can try to take a look into it later. If anyone who familiar with android would like to fix this would be better. |
Thank you for the contribution! I'm following the initial PR review policy, this PR isn't trivial to review, and the Android counterpart is still massing so I'm labeling it with "backlog" and we will prioritize according to the issue's priority. |
Is it too difficult to fix for Google developers? |
@blasten Is there a policy for changes that only affect Virtual Display mode at this point? I.e., would it be worthwhile for someone to invest time in adding tests for this if (going by the recent comment on the issue) it's not an issue with Hybrid Composition? |
Now that we've switched Android to hybrid composition by default, I don't think there's any reason this couldn't move forward with an iOS-only implementation. This will need XCUITests added to cover the new functionality; please let us know when those are in place and we can review! |
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat. If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
@jerryzhoujw Are you still interested in working on this PR? |
@Hixie, I'm not familiar with android develop. but ok for iOS part. |
As I mentioned above, now that hybrid composition is the default on Android it's fine for this PR to be iOS-only. It just needs to be updated and tested. |
I'll do it soon. |
Thank you for your contribution. I'm going to close this PR for now since there are outstanding comments, just to get this off our PR review queue. Please don't hesitate to submit a new PR if you have the time to address the review comments. Thanks! |
Description
Add support for javascript
alert
,confirm
,prompt
.Related Issues
Replace this paragraph with a list of issues related to this PR from the issue database. Indicate, which of these issues are resolved or fixed by this PR. Note that you'll have to prefix the issue numbers with flutter/flutter#.
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]
). This will ensure a smooth and quick review process.///
).flutter analyze
) does not report any problems on my PR.Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?