Skip to content
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

Change Windows WebView Cookies to CoreWebView2 #13518

Merged
merged 8 commits into from
Mar 9, 2023
Merged

Change Windows WebView Cookies to CoreWebView2 #13518

merged 8 commits into from
Mar 9, 2023

Conversation

jfversluis
Copy link
Member

@jfversluis jfversluis commented Feb 23, 2023

Description of Change

The Windows implementation of how we handled cookies in WebView was outdated. Updated it to use the more modern API and make it work again.

I've added a button to the sample app which sets a cookie for httpbin.org, a site that allows you to read the cookies that are set back to you. Go to Controls > WebView and scroll down to the Load httpbin.org with Cookies button.

Click that and in the loaded website go to Cookies > Get /Cookies > Try it out > Execute and make sure the cookie that was set in code is shown.

image

Issues Fixed

Fixes #3901

@jfversluis jfversluis added t/bug Something isn't working platform/windows 🪟 legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor area-controls-webview WebView labels Feb 23, 2023
@mandel-macaque
Copy link
Member

@jfversluis you can use httpbin.org to interact with cookies (and other methods) we use this service a lot in xamarin-ios and it has a docker image in case we wanted to spawn a docker container with it in the CI, which will ensure is always around.

@jfversluis
Copy link
Member Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@jfversluis
Copy link
Member Author

Awesome @mandel-macaque! Thank you! Added a sample that looks at httpbin.org for now

jfversluis and others added 2 commits March 9, 2023 11:30
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
@jfversluis jfversluis merged commit ae20455 into main Mar 9, 2023
@jfversluis jfversluis deleted the fix-3901 branch March 9, 2023 19:03
@ghost
Copy link

ghost commented Apr 12, 2023

🚨 API change(s) detected @davidbritch FYI

@mattleibow mattleibow added the backport/suggested The PR author or issue review has suggested that the change should be backported. label May 24, 2023
@hartez hartez added backport/NO This change should not be backported. It may break customers. backport/approved After some discussion or review, this PR or change was approved to be backported. and removed backport/NO This change should not be backported. It may break customers. labels May 31, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Dec 12, 2023
@Eilon Eilon removed the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label May 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-webview WebView backport/approved After some discussion or review, this PR or change was approved to be backported. backport/suggested The PR author or issue review has suggested that the change should be backported. platform/windows 🪟 t/breaking 💥 t/bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cookies read/write not working in WebView on WinUI
5 participants