This repository was archived by the owner on Feb 22, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
packages/webview_flutter/lib Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments