WebView is not showing web pages properly #22994
Labels
area-controls-webview
WebView
potential-regression
This issue described a possible regression on a currently supported version., verification pending
s/triaged
Issue has been reviewed
s/try-latest-version
Please try to reproduce the potential issue on the latest public version
t/bug
Something isn't working
Description
The problem is how the webview shows the web pages. It is difficult to explain in words that is why I have added screenshots, I think it will be better understood.
![noerrorfullscreen](https://private-user-images.githubusercontent.com/44666626/338929707-0604d85c-da8f-40ba-ad39-d5a3f6677270.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ3MDA2MzIsIm5iZiI6MTcyNDcwMDMzMiwicGF0aCI6Ii80NDY2NjYyNi8zMzg5Mjk3MDctMDYwNGQ4NWMtZGE4Zi00MGJhLWFkMzktZDVhM2Y2Njc3MjcwLmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI2VDE5MjUzMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWJhNjM4M2M1YTZiNWFhNmM0NGFjY2VlNmZjMjljNzRhMmY1MTJhYzQwOThjMDkzOWQ1MWNmNjQxODI0Mzc3NDcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.uOJqNEPlIyQ6TtaHilOvALZUq-i9B7fd_YK5ZIpyJ0g)
![google](https://private-user-images.githubusercontent.com/44666626/338929711-806d77a7-86d6-4ca4-a936-e84b0b6333e2.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ3MDA2MzIsIm5iZiI6MTcyNDcwMDMzMiwicGF0aCI6Ii80NDY2NjYyNi8zMzg5Mjk3MTEtODA2ZDc3YTctODZkNi00Y2E0LWE5MzYtZTg0YjBiNjMzM2UyLmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI2VDE5MjUzMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQxNDhhNDdjZTcyMjE1ODM3NWU2NGUyNzQwZmJjMjkwMjI4MmY1YmM0YzNmMzBiYjIxNTE2OTAyZDVlNWY5OTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.QZH_dSvasubPGavptzcQT_KHAr7aZNvOdJDSVvkZkU0)
![bugfullscreen](https://private-user-images.githubusercontent.com/44666626/338929715-d0759891-77b6-41e2-9590-a2ab08586a94.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ3MDA2MzIsIm5iZiI6MTcyNDcwMDMzMiwicGF0aCI6Ii80NDY2NjYyNi8zMzg5Mjk3MTUtZDA3NTk4OTEtNzdiNi00MWUyLTk1OTAtYTJhYjA4NTg2YTk0LmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFW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0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.q9lTsilWAQY8RSVLNSYUkI392ajw3uHWFm7b--5XVHc)
![bugcompare1](https://private-user-images.githubusercontent.com/44666626/338929726-5c48b3c1-d230-47ce-a57e-4fa447040a1e.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ3MDA2MzIsIm5iZiI6MTcyNDcwMDMzMiwicGF0aCI6Ii80NDY2NjYyNi8zMzg5Mjk3MjYtNWM0OGIzYzEtZDIzMC00N2NlLWE1N2UtNGZhNDQ3MDQwYTFlLmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI2VDE5MjUzMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTgxOTIwMjgyYzMxOGMzMjkxMWE2NTFkMmMwNzQzN2NhMGRkOTU2NzgzYWY4MDBkMWU0YTZkMzc2OWE2NzFkOTEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.9qQGf0qHe1GB2SLrVnBOmz9mVtj88ounguU7YBKWyzE)
Basically the problem seems to be that the webview zooms in on the entire page., and many times there are parts of the page that cannot be seen even by scrolling. Furthermore, any page that looks good in any browser does not look good in MAUI webview.
I have discovered that the error started from some updates of nuget packages. I think Microsoft.Maui.Graphics.8.0.7 is good but later not anymore or maybe Microsoft.Maui.Resizetizer.8.0.7 is good but later not anymore.
Steps to Reproduce
Create a new MAUI project, load a web page in a webview.
You can see the size of the web page it is different of any browser.
The normal it is the webview show the page like a browser.
I have added two github repositorys
one with the bug: https://github.com/Thorastur/BugShow
one without bug: https://github.com/Thorastur/NoBug
Link to public reproduction project repository
https://github.com/Thorastur/BugShow , https://github.com/Thorastur/NoBug
Version with bug
Unknown/Other
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
Unknown/Other
Affected platforms
I was not able test on other platforms
Affected platform versions
Windows 10
Did you find any workaround?
Yes not update nuget packages
Relevant log output
No response
The text was updated successfully, but these errors were encountered: