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
|
///- Web
|
||||||
String? iframeSandox;
|
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.
|
///A string that reflects the `referrerpolicy` HTML attribute indicating which referrer to use when fetching the linked resource.
|
||||||
///
|
///
|
||||||
///**Supported Platforms/Implementations**:
|
///**Supported Platforms/Implementations**:
|
||||||
@ -1168,8 +1156,6 @@ class InAppWebViewSettings
|
|||||||
this.iframeAllow,
|
this.iframeAllow,
|
||||||
this.iframeAllowFullscreen,
|
this.iframeAllowFullscreen,
|
||||||
this.iframeSandox,
|
this.iframeSandox,
|
||||||
this.iframeWidth,
|
|
||||||
this.iframeHeight,
|
|
||||||
this.iframeReferrerPolicy,
|
this.iframeReferrerPolicy,
|
||||||
this.iframeName,
|
this.iframeName,
|
||||||
this.iframeCsp,}) {
|
this.iframeCsp,}) {
|
||||||
@ -1318,8 +1304,6 @@ class InAppWebViewSettings
|
|||||||
"iframeAllow": iframeAllow,
|
"iframeAllow": iframeAllow,
|
||||||
"iframeAllowFullscreen": iframeAllowFullscreen,
|
"iframeAllowFullscreen": iframeAllowFullscreen,
|
||||||
"iframeSandox": iframeSandox,
|
"iframeSandox": iframeSandox,
|
||||||
"iframeWidth": iframeWidth,
|
|
||||||
"iframeHeight": iframeHeight,
|
|
||||||
"iframeReferrerPolicy": iframeReferrerPolicy,
|
"iframeReferrerPolicy": iframeReferrerPolicy,
|
||||||
"iframeName": iframeName,
|
"iframeName": iframeName,
|
||||||
"iframeCsp": iframeCsp,
|
"iframeCsp": iframeCsp,
|
||||||
@ -1383,8 +1367,6 @@ class InAppWebViewSettings
|
|||||||
settings.iframeAllow = map["iframeAllow"];
|
settings.iframeAllow = map["iframeAllow"];
|
||||||
settings.iframeAllowFullscreen = map["iframeAllowFullscreen"];
|
settings.iframeAllowFullscreen = map["iframeAllowFullscreen"];
|
||||||
settings.iframeSandox = map["iframeSandox"];
|
settings.iframeSandox = map["iframeSandox"];
|
||||||
settings.iframeWidth = map["iframeWidth"];
|
|
||||||
settings.iframeHeight = map["iframeHeight"];
|
|
||||||
settings.iframeReferrerPolicy = map["iframeReferrerPolicy"];
|
settings.iframeReferrerPolicy = map["iframeReferrerPolicy"];
|
||||||
settings.iframeName = map["iframeName"];
|
settings.iframeName = map["iframeName"];
|
||||||
settings.iframeCsp = map["iframeCsp"];
|
settings.iframeCsp = map["iframeCsp"];
|
||||||
|
@ -102,8 +102,6 @@ class InAppWebViewWebElement {
|
|||||||
if (settings.iframeSandox != null) {
|
if (settings.iframeSandox != null) {
|
||||||
iframe.setAttribute("sandbox", settings.iframeSandox ?? "");
|
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.referrerPolicy = settings.iframeReferrerPolicy ?? iframe.referrerPolicy;
|
||||||
iframe.name = settings.iframeName ?? iframe.name;
|
iframe.name = settings.iframeName ?? iframe.name;
|
||||||
iframe.csp = settings.iframeCsp ?? iframe.csp;
|
iframe.csp = settings.iframeCsp ?? iframe.csp;
|
||||||
@ -191,12 +189,6 @@ class InAppWebViewWebElement {
|
|||||||
if (settings.iframeSandox != newSettings.iframeSandox) {
|
if (settings.iframeSandox != newSettings.iframeSandox) {
|
||||||
iframe.setAttribute("sandbox", 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) {
|
if (settings.iframeReferrerPolicy != newSettings.iframeReferrerPolicy) {
|
||||||
iframe.referrerPolicy = newSettings.iframeReferrerPolicy;
|
iframe.referrerPolicy = newSettings.iframeReferrerPolicy;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user