Skip to content

Android crash when using iframe from spotify (maui blazor) #49098

Open
@hakonn

Description

Description

I add an iframe (spotify podcast) on a razor-page. If I click the image in the iframe the app crashes.

It only crashes when using Android.
Windows works fine. I have not tested iOS.

I notice that the inspector shows an javascript error message during startup of the page.
e.startsWith is not a function at blazor.webview.js:1:4253
If I remove the iframe the error disappears.

Steps to Reproduce

  1. Create a new .NET MAUI Blazor app in VisualStudio.
  2. Add an iframe on a page: <iframe width="300" height="400" src="https://open.spotify.com/embed/episode/7makk4oTQel546B0PZlDM5?utm_source=oembed"></iframe>
  3. Start app in Android emulator
  4. Click the image in the middle of the iframe.
  5. The app crashes.

Link to public reproduction project repository

https://github.com/hakonn/IframeMauiBlazorTest

Version with bug

7.0.49

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android 13, Android 11

Did you find any workaround?

No response

Relevant log output

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Pillar: Technical DebtPriority:3Work that is nice to havearea-blazorIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.feature-blazor-hybridhelp candidateIndicates that the issues may be a good fit for community to help with. Requires work from eng. team

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions