Remove the race condition between new process creation and context release (#12342)
* Remove the race condition between new process creation and old process releasing remote context Previously there was a race condition where the getId() method would return the new context ID even though the release was for the old context. This changes it to send the "initial" context ID with the release message to ensure there is no race. * fetch context ID from remote in sandbox mode
This commit is contained in:
parent
9599615b23
commit
0ac883c6d4
7 changed files with 31 additions and 6 deletions
|
@ -178,6 +178,9 @@ const char kAppUserModelId[] = "app-user-model-id";
|
|||
// The application path
|
||||
const char kAppPath[] = "app-path";
|
||||
|
||||
// The context ID for this process
|
||||
const char kContextId[] = "context-id";
|
||||
|
||||
// The command line switch versions of the options.
|
||||
const char kBackgroundColor[] = "background-color";
|
||||
const char kPreloadScript[] = "preload";
|
||||
|
|
|
@ -88,6 +88,7 @@ extern const char kRegisterServiceWorkerSchemes[];
|
|||
extern const char kSecureSchemes[];
|
||||
extern const char kAppUserModelId[];
|
||||
extern const char kAppPath[];
|
||||
extern const char kContextId[];
|
||||
|
||||
extern const char kBackgroundColor[];
|
||||
extern const char kPreloadScript[];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue