Skip to content

Commit c39e288

Browse files
merceyzamaitland
authored andcommitted
WinForms: Prevent designer from setting default values (#2261)
1 parent 4f2a10c commit c39e288

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

CefSharp.WinForms/ChromiumWebBrowser.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public class ChromiumWebBrowser : Control, IWebBrowserInternal, IWinFormsWebBrow
7373
/// Gets or sets the request context.
7474
/// </summary>
7575
/// <value>The request context.</value>
76-
[Browsable(false), EditorBrowsable(EditorBrowsableState.Never)]
76+
[Browsable(false), EditorBrowsable(EditorBrowsableState.Never), DefaultValue(null)]
7777
public IRequestContext RequestContext
7878
{
7979
get { return requestContext; }
@@ -137,7 +137,7 @@ public IRequestContext RequestContext
137137
/// Implement <see cref="IRequestHandler" /> and assign to handle events related to browser requests.
138138
/// </summary>
139139
/// <value>The request handler.</value>
140-
[Browsable(false), EditorBrowsable(EditorBrowsableState.Never)]
140+
[Browsable(false), EditorBrowsable(EditorBrowsableState.Never), DefaultValue(null)]
141141
public IRequestHandler RequestHandler { get; set; }
142142
/// <summary>
143143
/// Implement <see cref="IDownloadHandler" /> and assign to handle events related to downloading files.
@@ -173,7 +173,7 @@ public IRequestContext RequestContext
173173
/// Implement <see cref="IRenderProcessMessageHandler" /> and assign to handle messages from the render process.
174174
/// </summary>
175175
/// <value>The render process message handler.</value>
176-
[Browsable(false), EditorBrowsable(EditorBrowsableState.Never)]
176+
[Browsable(false), EditorBrowsable(EditorBrowsableState.Never), DefaultValue(null)]
177177
public IRenderProcessMessageHandler RenderProcessMessageHandler { get; set; }
178178
/// <summary>
179179
/// Implement <see cref="IFindHandler" /> to handle events related to find results.
@@ -203,7 +203,7 @@ public IRequestContext RequestContext
203203
/// Implement <see cref="IResourceHandlerFactory" /> and control the loading of resources
204204
/// </summary>
205205
/// <value>The resource handler factory.</value>
206-
[Browsable(false), EditorBrowsable(EditorBrowsableState.Never)]
206+
[Browsable(false), EditorBrowsable(EditorBrowsableState.Never), DefaultValue(null)]
207207
public IResourceHandlerFactory ResourceHandlerFactory { get; set; }
208208
/// <summary>
209209
/// Implement <see cref="IGeolocationHandler" /> and assign to handle requests for permission to use geolocation.

0 commit comments

Comments
 (0)