Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit d878bfa

Browse files
committed
add more documentation for caveats on Android
1 parent 2f161b9 commit d878bfa

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

packages/webview_flutter/lib/webview_flutter.dart

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -174,12 +174,16 @@ class WebView extends StatefulWidget {
174174
///
175175
/// When null all navigation actions are allowed.
176176
///
177-
/// On Android only navigation actions originated by the main frame can be intercepted,
178-
/// navigation actions originating from subframes are allowed regardless of the value
179-
/// returned by this delegate.
180-
///
181-
/// On Android API levels smaller than 21, when a navigationDelegate is set, HTTP requests do not
182-
/// include the HTTP referer header.
177+
/// Caveats on Android:
178+
///
179+
/// * Navigation actions originated by the main frame can be intercepted,
180+
/// navigation actions originating from subframes are allowed regardless of the value
181+
/// returned by this delegate.
182+
/// * On API levels smaller than 21, when a navigationDelegate is set, HTTP requests do not
183+
/// include the HTTP referer header.
184+
/// * Setting a navigationDelegate makes the WebView treat all navigations as if they were
185+
/// triggered by a user gesture, this disables some of Chromium's security mechanisms.
186+
/// A navigationDelegate should only be set when loading trusted content.
183187
final NavigationDelegate navigationDelegate;
184188

185189
@override

0 commit comments

Comments
 (0)