-
Notifications
You must be signed in to change notification settings - Fork 717
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
fix!: Check thread access in SetValue #15925
base: master
Are you sure you want to change the base?
Conversation
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-15925/index.html |
@Youssef1313 can you take a look at the test failures? |
f46990e
to
3dd8d1f
Compare
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-15925/index.html |
[DataRow(false)] | ||
public async Task Setting_Text_From_Background_Thread_Should_Fail(bool disableThreadingCheck) | ||
{ | ||
var originalFlag = FeatureConfiguration.DependencyProperty.DisableThreadingCheck; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: Make this part of the test conditional on WinUI as there is no such flag in WinUI
@@ -495,6 +496,11 @@ void SetValueWithTrace(DependencyProperty property, object? value, DependencyPro | |||
|
|||
private void InnerSetValue(DependencyProperty property, object? value, DependencyPropertyValuePrecedences precedence, DependencyPropertyDetails? propertyDetails, bool isPersistentResourceBinding) | |||
{ | |||
if (!FeatureConfiguration.DependencyProperty.DisableThreadingCheck) | |||
{ | |||
NativeDispatcher.CheckThreadAccess(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GitHub Issue (If applicable): closes #15879
PR Type
What kind of change does this PR introduce?
What is the current behavior?
What is the new behavior?
PR Checklist
Please check if your PR fulfills the following requirements:
Screenshots Compare Test Run
results.Other information
Internal Issue (If applicable):