Skip to content

Commit

Permalink
Test - CanLoadRequestWithPostData now navigates to domain of same ori…
Browse files Browse the repository at this point in the history
…gin first

When Chromium Site Isolation is enabled we must first navigate to
a web page of the same origin to use LoadRequest
When Site Isolation is disabled we can navigate to any web page
https://magpcss.org/ceforum/viewtopic.php?f=10&t=18672&p=50266#p50249

Issue cefsharp#2967
  • Loading branch information
amaitland committed Oct 14, 2021
1 parent c72e21c commit fd78c0c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions CefSharp.Test/OffScreen/OffScreenBrowserBasicFacts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -572,8 +572,11 @@ public async Task CanExecuteJavascriptInMainFrameAfterNavigatingToDifferentOrigi
public async Task CanLoadRequestWithPostData(string url)
{
const string data = "Testing123";
//To use LoadRequest we must first load a web page
using (var browser = new ChromiumWebBrowser(new HtmlString("Testing")))
//When Chromium Site Isolation is enabled we must first navigate to
//a web page of the same origin to use LoadRequest
//When Site Isolation is disabled we can navigate to any web page
//https://magpcss.org/ceforum/viewtopic.php?f=10&t=18672&p=50266#p50249
using (var browser = new ChromiumWebBrowser("http://httpbin.org/"))
{
var response = await browser.LoadUrlAsync();

Expand Down

0 comments on commit fd78c0c

Please sign in to comment.