From 5b9d2624a925bccaf197141b9cdbe1413af6e27e Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Tue, 10 Oct 2023 16:27:48 +0200 Subject: [PATCH] MOBILE-4362 h5p: Fix links in iframe not opened in iOS --- src/core/services/utils/iframe.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/services/utils/iframe.ts b/src/core/services/utils/iframe.ts index a35d72194..26985d187 100644 --- a/src/core/services/utils/iframe.ts +++ b/src/core/services/utils/iframe.ts @@ -232,7 +232,7 @@ export class CoreIframeUtilsProvider { */ getContentWindowAndDocument(element: CoreFrameElement): { window: Window | null; document: Document | null } { const src = 'src' in element ? element.src : element.data; - if (!CoreUrlUtils.isLocalFileUrl(src)) { + if (src !== 'about:blank' && !CoreUrlUtils.isLocalFileUrl(src)) { // No permissions to access the iframe. return { window: null, document: null }; }