From a3c9b5f444c260322691768ccbac798183fbb577 Mon Sep 17 00:00:00 2001 From: Lorenzo Pichilli Date: Sat, 23 Apr 2022 01:04:51 +0200 Subject: [PATCH] removed width and height iframe properties from webview settings --- .../in_app_webview_settings.dart | 18 ------------------ lib/src/web/in_app_web_view_web_element.dart | 8 -------- 2 files changed, 26 deletions(-) diff --git a/lib/src/in_app_webview/in_app_webview_settings.dart b/lib/src/in_app_webview/in_app_webview_settings.dart index b4c1838a..d6629027 100755 --- a/lib/src/in_app_webview/in_app_webview_settings.dart +++ b/lib/src/in_app_webview/in_app_webview_settings.dart @@ -1015,18 +1015,6 @@ class InAppWebViewSettings ///- Web String? iframeSandox; - ///A string that reflects the width HTML attribute, indicating the width of the frame. - /// - ///**Supported Platforms/Implementations**: - ///- Web - String? iframeWidth; - - ///A string that reflects the height HTML attribute, indicating the height of the frame. - /// - ///**Supported Platforms/Implementations**: - ///- Web - String? iframeHeight; - ///A string that reflects the `referrerpolicy` HTML attribute indicating which referrer to use when fetching the linked resource. /// ///**Supported Platforms/Implementations**: @@ -1168,8 +1156,6 @@ class InAppWebViewSettings this.iframeAllow, this.iframeAllowFullscreen, this.iframeSandox, - this.iframeWidth, - this.iframeHeight, this.iframeReferrerPolicy, this.iframeName, this.iframeCsp,}) { @@ -1318,8 +1304,6 @@ class InAppWebViewSettings "iframeAllow": iframeAllow, "iframeAllowFullscreen": iframeAllowFullscreen, "iframeSandox": iframeSandox, - "iframeWidth": iframeWidth, - "iframeHeight": iframeHeight, "iframeReferrerPolicy": iframeReferrerPolicy, "iframeName": iframeName, "iframeCsp": iframeCsp, @@ -1383,8 +1367,6 @@ class InAppWebViewSettings settings.iframeAllow = map["iframeAllow"]; settings.iframeAllowFullscreen = map["iframeAllowFullscreen"]; settings.iframeSandox = map["iframeSandox"]; - settings.iframeWidth = map["iframeWidth"]; - settings.iframeHeight = map["iframeHeight"]; settings.iframeReferrerPolicy = map["iframeReferrerPolicy"]; settings.iframeName = map["iframeName"]; settings.iframeCsp = map["iframeCsp"]; diff --git a/lib/src/web/in_app_web_view_web_element.dart b/lib/src/web/in_app_web_view_web_element.dart index 62170224..5c017b83 100644 --- a/lib/src/web/in_app_web_view_web_element.dart +++ b/lib/src/web/in_app_web_view_web_element.dart @@ -102,8 +102,6 @@ class InAppWebViewWebElement { if (settings.iframeSandox != null) { iframe.setAttribute("sandbox", settings.iframeSandox ?? ""); } - iframe.style.width = settings.iframeWidth ?? iframe.style.width; - iframe.style.height = settings.iframeHeight ?? iframe.style.height; iframe.referrerPolicy = settings.iframeReferrerPolicy ?? iframe.referrerPolicy; iframe.name = settings.iframeName ?? iframe.name; iframe.csp = settings.iframeCsp ?? iframe.csp; @@ -191,12 +189,6 @@ class InAppWebViewWebElement { if (settings.iframeSandox != newSettings.iframeSandox) { iframe.setAttribute("sandbox", newSettings.iframeSandox ?? ""); } - if (settings.iframeWidth != newSettings.iframeWidth) { - iframe.style.width = newSettings.iframeWidth; - } - if (settings.iframeHeight != newSettings.iframeHeight) { - iframe.style.height = newSettings.iframeHeight; - } if (settings.iframeReferrerPolicy != newSettings.iframeReferrerPolicy) { iframe.referrerPolicy = newSettings.iframeReferrerPolicy; }