Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Spec: Critical Kill Switch #4574

Open
wants to merge 7 commits into
base: user/xiaqu/critical-kill-switch
Choose a base branch
from

Conversation

dianaqu
Copy link
Contributor

@dianaqu dianaqu commented May 21, 2024

Add spec for critical kill switch

@dianaqu dianaqu requested a review from david-risney May 21, 2024 00:16
specs/CriticalUpdateAvailable.md Outdated Show resolved Hide resolved
specs/CriticalUpdateAvailable.md Outdated Show resolved Hide resolved
specs/CriticalUpdateAvailable.md Outdated Show resolved Hide resolved
specs/CriticalUpdateAvailable.md Outdated Show resolved Hide resolved
specs/CriticalUpdateAvailable.md Outdated Show resolved Hide resolved
specs/CriticalUpdateAvailable.md Outdated Show resolved Hide resolved
specs/CriticalUpdateAvailable.md Outdated Show resolved Hide resolved
specs/CriticalUpdateAvailable.md Outdated Show resolved Hide resolved

void WebView_CriticalRestartRequired(object sender, object e)
{
System.Threading.SynchronizationContext.Current.Post((_) =>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The C++ and C# code should match. Right now they don't really. The C# uses this post to run this code async where the c++ does not. You don't need to do it in either since RestartIfSelectedByUser could handle this.

The C# code shows an outer method WebView_CoreWebView2InitializationCompleted that registers the event handler and the C++ just has some code that registers the event handler.

/// `CriticalRestartRequired` will give developer the ability to prompt user for restart,
/// thus resolve in faster resolution time.
///
/// Critical Update is only applying payload; thus, version is not important. But for apps
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is good to say that a CriticalRestartRequired doesn't necessarily mean there is a new webview2 runtime version, but do we want to say that it will never mean that? Do we want to say that CriticalRestartRequired is only for ECS configuration or leave it more vague so we can apply it to webview2 updates in the future if we like? @aluhrs13, @fabiorocha

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I agree, we shouldn't be too precise about what this does or doesn't do, just that it's something that WV2 believes you should somewhat urgently restart for. I could see us doing something in the future where updates with important CVE fixes might fire this event.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants