removed width and height iframe properties from webview settings
This commit is contained in:
parent
2570cb38eb
commit
a3c9b5f444
@ -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"];
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user