Skip to content

[Android] Fix WebView.CanGoBack() returning true on first navigated page due to synthetic about:blank history entry - #35841

Merged
kubaflo merged 4 commits into
dotnet:inflight/currentfrom
praveenkumarkarunanithi:fix-35788
Jun 19, 2026
Merged

[Android] Fix WebView.CanGoBack() returning true on first navigated page due to synthetic about:blank history entry#35841
kubaflo merged 4 commits into
dotnet:inflight/currentfrom
praveenkumarkarunanithi:fix-35788

fix update as per internal concerns

29bf655
Select commit
Loading
Failed to load commit list.
Build Analysis / Build Analysis failed Jun 19, 2026 in 0s

.NET Result Analysis

Details

Tip

To unconditionally bypass the build analysis check (turn it green), you can use the escape mechanism feature. The completion time may vary, potentially taking several minutes, depending on the build analysis workload at the moment.

Build Failures

maui-pr-devicetests / net10.0 iOS Helix Tests (Mono) / Run DeviceTests iOS (Mono) / DeviceTestsIOS (Windows)

[ 🚧 Create issue against infrastructure team] [ 📄 Create issue in this repo]
    ❌PowerShell exited with code '1'.

maui-pr-devicetests / net10.0 MacCatalyst Helix Tests (Mono) / Run DeviceTests MacCatalyst (Mono) / DeviceTestsMacCatalyst (Windows)

[ 🚧 Create issue against infrastructure team] [ 📄 Create issue in this repo]
    ❌PowerShell exited with code '1'.

maui-pr-devicetests / net10.0 Android Helix Tests (Mono) / Run DeviceTests Android (Mono) / DeviceTestsAndroid (Windows)

[ 🚧 Create issue against infrastructure team] [ 📄 Create issue in this repo]
    ❌PowerShell exited with code '1'.

7 other jobs are failing and were not displayed due to space limitations.
Builds with failures: [maui-pr-devicetests] [maui-pr-uitests] [maui-pr]

Test Failures (108 tests failed)

🔹 [All failing tests from maui-pr]

    ⚠️ 47 failing tests not displayed for this pipeline due to space limitations

    BorderStrokeShapeDoesNotLeak [Console] [Details] [Artifacts] [4.83% failure rate]
    [ 🚧 Create issue against infrastructure team] [ 📄 Create issue in this repo]
    This is a helix work item crash with status: BadExit. To investigate look the [Console log] / navigate to [Helix Artifacts]

    Failing Configuration

    BorderStrokeShapeSubscribed [Console] [Details] [Artifacts] [3.36% failure rate]
    [ 🚧 Create issue against infrastructure team] [ 📄 Create issue in this repo]

    Failing Configuration

    Exception Message
    System.ObjectDisposedException : Cannot access a disposed object.
    Object name: 'System.Threading.ThreadLocal`1[[Microsoft.Maui.Dispatching.IDispatcher, Microsoft.Maui, Version=10.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
    CallStack
       at System.Threading.ThreadLocal`1.GetValueSlow()
       at Microsoft.Maui.UnitTests.DispatcherProviderStub.GetForCurrentThread() in /_/src/Core/tests/UnitTests/TestClasses/DispatcherStub.cs:line 108
       at Microsoft.Maui.Dispatching.Dispatcher.GetForCurrentThread() in /_/src/Core/src/Dispatching/Dispatcher.cs:line 9
       at Microsoft.Maui.Controls.BindableObject..ctor() in /_/src/Controls/src/Core/BindableObject.cs:line 38
       at Microsoft.Maui.Controls.Element..ctor() in /_/src/Controls/src/Core/Element/Element.cs:line 701
       at Microsoft.Maui.Controls.StyleableElement..ctor() in /_/src/Controls/src/Core/StyleableElement/StyleableElement.cs:line 17
       at Microsoft.Maui.Controls.NavigableElement..ctor() in /_/src/Controls/src/Core/NavigableElement/NavigableElement.cs:line 22
       at Microsoft.Maui.Controls.VisualElement..ctor() in /_/src/Controls/src/Core/VisualElement/VisualElement.cs:line 531
       at Microsoft.Maui.Controls.View..ctor() in /_/src/Controls/src/Core/View/View.cs:line 94
       at Microsoft.Maui.Controls.Shapes.Shape..ctor() in /_/src/Controls/src/Core/Shapes/Shape.cs:line 22
       at Microsoft.Maui.Controls.Shapes.RoundRectangle..ctor() in /_/src/Controls/src/Core/Shapes/RoundRectangle.cs:line 10
       at Microsoft.Maui.UnitTests.Views.BorderTests.BorderStrokeShapeSubscribed() in /_/src/Core/tests/UnitTests/Views/BorderTests.cs:line 56
    --- End of stack trace from previous location ---
    BorderStrokeSubscribed [Console] [Details] [Artifacts] [4.12% failure rate]
    [ 🚧 Create issue against infrastructure team] [ 📄 Create issue in this repo]

    Failing Configuration

    Exception Message
    System.ObjectDisposedException : Cannot access a disposed object.
    Object name: 'System.Threading.ThreadLocal`1[[Microsoft.Maui.Dispatching.IDispatcher, Microsoft.Maui, Version=10.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
    CallStack
       at System.Threading.ThreadLocal`1.GetValueSlow()
       at Microsoft.Maui.UnitTests.DispatcherProviderStub.GetForCurrentThread() in /_/src/Core/tests/UnitTests/TestClasses/DispatcherStub.cs:line 108
       at Microsoft.Maui.Dispatching.Dispatcher.GetForCurrentThread() in /_/src/Core/src/Dispatching/Dispatcher.cs:line 9
       at Microsoft.Maui.Controls.BindableObject..ctor() in /_/src/Controls/src/Core/BindableObject.cs:line 38
       at Microsoft.Maui.Controls.Element..ctor() in /_/src/Controls/src/Core/Element/Element.cs:line 701
       at Microsoft.Maui.Controls.Brush..ctor()
       at Microsoft.Maui.Controls.SolidColorBrush..ctor(Color color) in /_/src/Controls/src/Core/SolidColorBrush.cs:line 19
       at Microsoft.Maui.UnitTests.Views.BorderTests.BorderStrokeSubscribed() in /_/src/Core/tests/UnitTests/Views/BorderTests.cs:line 79
    --- End of stack trace from previous location ---
    CanAddCustomEvent [Console] [Details] [Artifacts] [2.87% failure rate]
    [ 🚧 Create issue against infrastructure team] [ 📄 Create issue in this repo]

    Failing Configuration

    Exception Message
    System.ObjectDisposedException : Cannot access a disposed object.
    Object name: 'System.Threading.ThreadLocal`1[[Microsoft.Maui.Dispatching.IDispatcher, Microsoft.Maui, Version=10.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
    CallStack
       at System.Threading.ThreadLocal`1.GetValueSlow()
       at Microsoft.Maui.UnitTests.DispatcherProviderStub.GetForCurrentThread() in /_/src/Core/tests/UnitTests/TestClasses/DispatcherStub.cs:line 108
       at Microsoft.Maui.Dispatching.Dispatcher.GetForCurrentThread() in /_/src/Core/src/Dispatching/Dispatcher.cs:line 9
       at Microsoft.Maui.Hosting.AppHostBuilderExtensions.GetDispatcher(IServiceProvider services, Boolean fallBackToApplicationDispatcher) in /_/src/Core/src/Hosting/Dispatching/AppHostBuilderExtensions.cs:line 169
       at Microsoft.Maui.Hosting.AppHostBuilderExtensions.<>c.<ConfigureDispatching>b__1_1(IServiceProvider svc) in /_/src/Core/src/Hosting/Dispatching/AppHostBuilderExtensions.cs:line 25
       at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
       at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
       at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
       at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
       at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
       at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(ServiceIdentifier serviceIdentifier)
       at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
       at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(ServiceIdentifier serviceIdentifier, ServiceProviderEngineScope serviceProviderEngineScope)
       at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
       at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider)
       at Microsoft.Maui.Hosting.AppHostBuilderExtensions.GetOptionalApplicationDispatcher(IServiceProvider provider) in /_/src/Core/src/Hosting/Dispatching/AppHostBuilderExtensions.cs:line 158
       at Microsoft.Maui.Hosting.AppHostBuilderExtensions.ApplicationDispatcherInitializer.Initialize(IServiceProvider services) in /_/src/Core/src/Hosting/Dispatching/AppHostBuilderExtensions.cs:line 181
       at Microsoft.Maui.MauiContextExtensions.InitializeAppServices(MauiApp mauiApp) in /_/src/Core/src/MauiContextExtensions.cs:line 83
       at Microsoft.Maui.Hosting.MauiAppBuilder.Build() in /_/src/Core/src/Hosting/MauiAppBuilder.cs:line 198
       at Microsoft.Maui.UnitTests.LifecycleEvents.LifecycleEventsTests.CanAddCustomEvent() in /_/src/Core/tests/UnitTests/LifecycleEvents/LifecycleEventsTests.cs:line 29
       at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
       at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
    CanAddDelegateEvent [Console] [Details] [Artifacts] [2.93% failure rate]
    [ 🚧 Create issue against infrastructure team] [ 📄 Create issue in this repo]

    Failing Configuration

    Exception Message
    System.ObjectDisposedException : Cannot access a disposed object.
    Object name: 'System.Threading.ThreadLocal`1[[Microsoft.Maui.Dispatching.IDispatcher, Microsoft.Maui, Version=10.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
    CallStack
       at System.Threading.ThreadLocal`1.GetValueSlow()
       at Microsoft.Maui.UnitTests.DispatcherProviderStub.GetForCurrentThread() in /_/src/Core/tests/UnitTests/TestClasses/DispatcherStub.cs:line 108
       at Microsoft.Maui.Dispatching.Dispatcher.GetForCurrentThread() in /_/src/Core/src/Dispatching/Dispatcher.cs:line 9
       at Microsoft.Maui.Hosting.AppHostBuilderExtensions.GetDispatcher(IServiceProvider services, Boolean fallBackToApplicationDispatcher) in /_/src/Core/src/Hosting/Dispatching/AppHostBuilderExtensions.cs:line 169
       at Microsoft.Maui.Hosting.AppHostBuilderExtensions.<>c.<ConfigureDispatching>b__1_1(IServiceProvider svc) in /_/src/Core/src/Hosting/Dispatching/AppHostBuilderExtensions.cs:line 25
       at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
       at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
       at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
       at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
       at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
       at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(ServiceIdentifier serviceIdentifier)
       at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
       at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(ServiceIdentifier serviceIdentifier, ServiceProviderEngineScope serviceProviderEngineScope)
       at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
       at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider)
       at Microsoft.Maui.Hosting.AppHostBuilderExtensions.GetOptionalApplicationDispatcher(IServiceProvider provider) in /_/src/Core/src/Hosting/Dispatching/AppHostBuilderExtensions.cs:line 158
       at Microsoft.Maui.Hosting.AppHostBuilderExtensions.ApplicationDispatcherInitializer.Initialize(IServiceProvider services) in /_/src/Core/src/Hosting/Dispatching/AppHostBuilderExtensions.cs:line 181
       at Microsoft.Maui.MauiContextExtensions.InitializeAppServices(MauiApp mauiApp) in /_/src/Core/src/MauiContextExtensions.cs:line 83
       at Microsoft.Maui.Hosting.MauiAppBuilder.Build() in /_/src/Core/src/Hosting/MauiAppBuilder.cs:line 198
       at Microsoft.Maui.UnitTests.LifecycleEvents.LifecycleEventsTests.CanAddDelegateEvent() in /_/src/Core/tests/UnitTests/LifecycleEvents/LifecycleEventsTests.cs:line 41
       at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
       at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

🔹 [All failing tests from maui-pr-devicetests]

    ⚠️ 56 failing tests not displayed for this pipeline due to space limitations

Was this helpful? Yes No