-
Notifications
You must be signed in to change notification settings - Fork 743
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
[Android] Fix invalid ImageBrush stack overflow with delayed im… #1570
Conversation
39f5bd9
to
6fc0863
Compare
@@ -0,0 +1,5 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<network-security-config> | |||
<base-config cleartextTrafficPermitted="true" > |
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.
I don't think we should be shipping with insecure defaults. How about we change the UI test to use https:// instead of http:// and then burn this file + related changes.
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.
We're not shipping this app. The point of this modification is to restore the many samples that use this kind of urls, and there are many that are not tested properly after the upgrade to Android 9.0.
I'll move this change to another PR, as there are about 270 Urls that need to be validated to determine if they do work in https.
@@ -2,6 +2,6 @@ | |||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="uno.platform.unosampleapp" android:versionCode="1" android:versionName="1.0" android:installLocation="auto"> | |||
<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="28" /> | |||
<uses-permission android:name="android.permission.VIBRATE" /> | |||
<application android:label="SamplesApp"></application> | |||
<application android:label="SamplesApp" android:networkSecurityConfig="@xml/network_security_config"></application> |
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.
🔥 ?
...lesApp/UITests.Shared/Windows_UI_Xaml_Media/ImageBrushTests/ImageBrush_SameWithDelay.xaml.cs
Outdated
Show resolved
Hide resolved
...lesApp/UITests.Shared/Windows_UI_Xaml_Media/ImageBrushTests/ImageBrush_SameWithDelay.xaml.cs
Outdated
Show resolved
Hide resolved
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.
I don't think we should ship templates that enable http:// by default.
c9b419d
to
08085c8
Compare
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.
<3 thx for fixing.
GitHub Issue (If applicable): unoplatform/Uno.WindowsCommunityToolkit#59
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Using an
ImageBrush
on a shape may result in a stack overflow if the image has already been loaded.What is the new behavior?
Reusing a image does not crash the app.
PR Checklist
Please check if your PR fulfills the following requirements:
Screenshots Compare Test Run
results.Other information
Internal Issue (If applicable):