capacitor icon indicating copy to clipboard operation
capacitor copied to clipboard

Android: iframe with the Blob URL/Object URL does not work correctly

Open natalya-semenova opened this issue 2 years ago • 5 comments

Bug Report

Capacitor Version

💊   Capacitor Doctor  💊

Latest Dependencies:

  @capacitor/cli: 4.7.0
  @capacitor/core: 4.7.0
  @capacitor/android: 4.7.0
  @capacitor/ios: 4.7.0

Installed Dependencies:

  @capacitor/cli: 4.7.0
  @capacitor/android: 4.7.0
  @capacitor/core: 4.7.0
  @capacitor/ios: 4.7.0

[success] iOS looking great! 👌
[success] Android looking great! 👌

Platform(s)

Android

Current Behavior

Programmatically attaching iframe with the Blob URL/Object URL source produces an iframe with empty body/content.

Expected Behavior

iframe content is being displayed

Code Reproduction

https://github.com/natalya-semenova/vue-cap-test

Other Technical Details

npm --version output: 9.5.0

node --version output: v18.14.2

natalya-semenova avatar Mar 08 '23 17:03 natalya-semenova

I have the same problem, it works on ios and desktop, but not on adnroid.

"@capacitor/android": "^5.1.1",
"@capacitor/app": "^5.0.6",
"@capacitor/assets": "^2.0.4",
"@capacitor/cli": "^5.1.1",
"@capacitor/core": "^5.1.1",
"@capacitor/device": "^5.0.6",
"@capacitor/ios": "^5.1.1",

indice avatar Jul 13 '23 10:07 indice

Maybe regression in Cordova? https://issues.apache.org/jira/browse/CB-9558

This in capacitor.config.ts didn't helped:

  server: {
    allowNavigation: ['blob:*', 'about:*'],
  },

iBobik avatar Sep 02 '23 15:09 iBobik

@natalya-semenova did you find the solution for this? I have a similar issue

DLotero avatar Oct 09 '23 17:10 DLotero

Any update on this we still have problem

DanialV avatar Apr 30 '24 19:04 DanialV

Also experiencing this issue. Perhaps this PR is the solution? https://github.com/ionic-team/capacitor/pull/5498

mattfik avatar Jun 12 '24 17:06 mattfik

This issue has been labeled as type: bug. This label is added to issues that that have been reproduced and are being tracked in our internal issue tracker.

ionitron-bot[bot] avatar Jul 08 '24 14:07 ionitron-bot[bot]

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.

ionitron-bot[bot] avatar Aug 15 '24 13:08 ionitron-bot[bot]