This repository has been archived by the owner on Feb 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[webview_flutter] fix: unreliable encoding for web #5737
Merged
auto-submit
merged 19 commits into
flutter:main
from
FlafyDev:webview_flutter_web_encoding
Jul 6, 2022
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
f8e51ad
fix: unreliable encoding
FlafyDev e9dfa1f
chore: update version and changelog
FlafyDev e0b13de
revert changelog formatting
FlafyDev 0b61f9c
update tests to use new encoding
FlafyDev 99b5c76
correct new test
FlafyDev 5781562
fix unnecessary `Encoding.getByName`
FlafyDev 397f609
change changelog
FlafyDev 42bf109
revert changelog autoformat
FlafyDev db3c42a
Merge branch 'flutter:main' into webview_flutter_web_encoding
FlafyDev 5d9e7c1
revert deleted test
FlafyDev 15deea5
fix loadHtmlString test
FlafyDev b760936
change verify to be more explicit and fit simillar ones
FlafyDev d2704ed
group loadHtmlString tests
FlafyDev 7df9cfa
loadRequest escapes # correctly test
FlafyDev 95fd76b
change loadRequest escapes # correctly test to text/html
FlafyDev d62c793
fix loadRequest test
FlafyDev c1c4884
remove unused import
FlafyDev 61c0028
change # tests to verify with contains instead
FlafyDev 902e8f3
convert double quotes to single quotes
FlafyDev 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 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 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 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 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
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.
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.
Quick question. This correctly determines the
mimeType
from the response object. But what if the response is a binaryimage/png
instead oftext/html
? Would the Uri encoding work in this case?(Note: this might have been broken in the earlier version too :S)
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.
Worked for me.
I replaced the Url in the example project of webview_flutter_web with one that returns a
content-type
ofimage/jpeg
and it displayed the image.