mirror of
				https://bitbucket.org/chromiumembedded/cef
				synced 2025-06-05 21:39:12 +02:00 
			
		
		
		
	Remove the CefSettings.context_safety_implementation option (issue #1853).
The default hash implementation will now always be used.
This commit is contained in:
		@@ -354,28 +354,6 @@ typedef struct _cef_settings_t {
 | 
			
		||||
  ///
 | 
			
		||||
  int uncaught_exception_stack_size;
 | 
			
		||||
 | 
			
		||||
  ///
 | 
			
		||||
  // By default CEF V8 references will be invalidated (the IsValid() method will
 | 
			
		||||
  // return false) after the owning context has been released. This reduces the
 | 
			
		||||
  // need for external record keeping and avoids crashes due to the use of V8
 | 
			
		||||
  // references after the associated context has been released.
 | 
			
		||||
  //
 | 
			
		||||
  // CEF currently offers two context safety implementations with different
 | 
			
		||||
  // performance characteristics. The default implementation (value of 0) uses a
 | 
			
		||||
  // map of hash values and should provide better performance in situations with
 | 
			
		||||
  // a small number contexts. The alternate implementation (value of 1) uses a
 | 
			
		||||
  // hidden value attached to each context and should provide better performance
 | 
			
		||||
  // in situations with a large number of contexts.
 | 
			
		||||
  //
 | 
			
		||||
  // If you need better performance in the creation of V8 references and you
 | 
			
		||||
  // plan to manually track context lifespan you can disable context safety by
 | 
			
		||||
  // specifying a value of -1.
 | 
			
		||||
  //
 | 
			
		||||
  // Also configurable using the "context-safety-implementation" command-line
 | 
			
		||||
  // switch.
 | 
			
		||||
  ///
 | 
			
		||||
  int context_safety_implementation;
 | 
			
		||||
 | 
			
		||||
  ///
 | 
			
		||||
  // Set to true (1) to ignore errors related to invalid SSL certificates.
 | 
			
		||||
  // Enabling this setting can lead to potential security vulnerabilities like
 | 
			
		||||
 
 | 
			
		||||
@@ -601,7 +601,6 @@ struct CefSettingsTraits {
 | 
			
		||||
    target->pack_loading_disabled = src->pack_loading_disabled;
 | 
			
		||||
    target->remote_debugging_port = src->remote_debugging_port;
 | 
			
		||||
    target->uncaught_exception_stack_size = src->uncaught_exception_stack_size;
 | 
			
		||||
    target->context_safety_implementation = src->context_safety_implementation;
 | 
			
		||||
    target->ignore_certificate_errors = src->ignore_certificate_errors;
 | 
			
		||||
    target->enable_net_security_expiration =
 | 
			
		||||
        src->enable_net_security_expiration;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user