Skip to content

Commit 249c75a

Browse files
committed
Core - Remove IBrowserSettings.WebSecurity
Web Security can be disabled via the "disable-web-security" command-line switch. This is a breaking change. Resolves #3312
1 parent 38215a3 commit 249c75a

File tree

4 files changed

+0
-28
lines changed

4 files changed

+0
-28
lines changed

CefSharp.Core.Runtime.RefAssembly/CefSharp.Core.Runtime.netcore.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ public BrowserSettings(bool autoDispose) { }
4545
public virtual CefSharp.CefState TextAreaResize { get { throw null; } set { } }
4646
public virtual CefSharp.CefState UniversalAccessFromFileUrls { get { throw null; } set { } }
4747
public virtual CefSharp.CefState WebGl { get { throw null; } set { } }
48-
public virtual CefSharp.CefState WebSecurity { get { throw null; } set { } }
4948
public virtual int WindowlessFrameRate { get { throw null; } set { } }
5049
public void Dispose() { }
5150
protected virtual void Dispose(bool A_0) { }

CefSharp.Core.Runtime/BrowserSettings.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -257,18 +257,6 @@ namespace CefSharp
257257
void set(CefState value) { _browserSettings->file_access_from_file_urls = (cef_state_t)value; }
258258
}
259259

260-
/// <summary>
261-
/// Controls whether web security restrictions (same-origin policy) will be
262-
/// enforced. Disabling this setting is not recommend as it will allow risky
263-
/// security behavior such as cross-site scripting (XSS). Also configurable
264-
/// using the "disable-web-security" command-line switch.
265-
/// </summary>
266-
virtual property CefState WebSecurity
267-
{
268-
CefState get() { return (CefState)_browserSettings->web_security; }
269-
void set(CefState value) { _browserSettings->web_security = (cef_state_t)value; }
270-
}
271-
272260
/// <summary>
273261
/// Controls whether image URLs will be loaded from the network. A cached image
274262
/// will still be rendered if requested. Also configurable using the

CefSharp.Core/BrowserSettings.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,6 @@ public CefState FileAccessFromFileUrls
150150
set { settings.FileAccessFromFileUrls = value; }
151151
}
152152

153-
/// <inheritdoc/>
154-
public CefState WebSecurity
155-
{
156-
get { return settings.WebSecurity; }
157-
set { settings.WebSecurity = value; }
158-
}
159-
160153
/// <inheritdoc/>
161154
public CefState ImageLoading
162155
{

CefSharp/IBrowserSettings.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -119,14 +119,6 @@ public interface IBrowserSettings : IDisposable
119119
/// </summary>
120120
CefState FileAccessFromFileUrls { get; set; }
121121

122-
/// <summary>
123-
/// Controls whether web security restrictions (same-origin policy) will be
124-
/// enforced. Disabling this setting is not recommend as it will allow risky
125-
/// security behavior such as cross-site scripting (XSS). Also configurable
126-
/// using the "disable-web-security" command-line switch.
127-
/// </summary>
128-
CefState WebSecurity { get; set; }
129-
130122
/// <summary>
131123
/// Controls whether image URLs will be loaded from the network. A cached image
132124
/// will still be rendered if requested. Also configurable using the

0 commit comments

Comments
 (0)