@@ -103,12 +103,6 @@ export const isScrollEnabledProperty = new Property<WebViewExtBase, boolean>({
103
103
valueConverter : booleanConverter
104
104
} ) ;
105
105
106
- export const normalizeUrlsProperty = new Property < WebViewExtBase , boolean > ( {
107
- name : 'normalizeUrls' ,
108
- defaultValue : true ,
109
- valueConverter : booleanConverter
110
- } ) ;
111
-
112
106
export const limitsNavigationsToAppBoundDomainsProperty = new Property < WebViewExtBase , boolean > ( {
113
107
name : 'limitsNavigationsToAppBoundDomains' ,
114
108
valueConverter : booleanConverter
@@ -389,7 +383,6 @@ export class UnsupportedSDKError extends Error {
389
383
@CSSType ( 'WebView' )
390
384
export abstract class WebViewExtBase extends ContainerView {
391
385
public webConsoleEnabled : boolean ;
392
- public normalizeUrls : boolean ;
393
386
394
387
public static readonly supportXLocalScheme : boolean ;
395
388
@@ -551,7 +544,6 @@ export abstract class WebViewExtBase extends ContainerView {
551
544
* Callback for the loadFinished-event. Called from the native-webview
552
545
*/
553
546
public async _onLoadFinished ( url : string , error ?: string ) : Promise < LoadFinishedEventData > {
554
- url = this . normalizeURL ( url ) ;
555
547
if ( Trace . isEnabled ( ) ) {
556
548
Trace . write ( `WebViewExt._onLoadFinished("${ url } ", ${ error || void 0 } ${ this . autoInjectJSBridge } ) - > Injecting webview-bridge JS code` , WebViewTraceCategory , Trace . messageType . info ) ;
557
549
}
@@ -857,8 +849,6 @@ export abstract class WebViewExtBase extends ContainerView {
857
849
}
858
850
859
851
if ( lcSrc . startsWith ( this . interceptScheme ) || lcSrc . startsWith ( 'http://' ) || lcSrc . startsWith ( 'https://' ) || lcSrc . startsWith ( 'file:///' ) ) {
860
- src = this . normalizeURL ( src ) ;
861
-
862
852
if ( originSrc !== src ) {
863
853
// Make sure the src-property reflects the actual value.
864
854
try {
@@ -1115,17 +1105,6 @@ export abstract class WebViewExtBase extends ContainerView {
1115
1105
this . autoInjectJavaScriptBlocks = this . autoInjectJavaScriptBlocks . filter ( ( data ) => data . name !== name ) ;
1116
1106
}
1117
1107
1118
- public normalizeURL ( url : string ) : string {
1119
- if ( ! url || ! this . normalizeUrls || url . startsWith ( this . interceptScheme ) ) {
1120
- return url ;
1121
- }
1122
- try {
1123
- return require ( 'url' ) . parse ( url ) . format ( ) ;
1124
- } catch ( error ) {
1125
- return url ;
1126
- }
1127
- }
1128
-
1129
1108
/**
1130
1109
* Ensure fetch-api is available.
1131
1110
*/
@@ -1588,7 +1567,6 @@ cacheModeProperty.register(WebViewExtBase);
1588
1567
databaseStorageProperty . register ( WebViewExtBase ) ;
1589
1568
debugModeProperty . register ( WebViewExtBase ) ;
1590
1569
webConsoleProperty . register ( WebViewExtBase ) ;
1591
- normalizeUrlsProperty . register ( WebViewExtBase ) ;
1592
1570
displayZoomControlsProperty . register ( WebViewExtBase ) ;
1593
1571
domStorageProperty . register ( WebViewExtBase ) ;
1594
1572
srcProperty . register ( WebViewExtBase ) ;
0 commit comments