Shorten option values for content.unknown_url_scheme_policy
This commit is contained in:
parent
da5cebc0b4
commit
728c84158f
|
|
@ -2292,9 +2292,9 @@ Type: <<types,String>>
|
|||
|
||||
Valid values:
|
||||
|
||||
* +disallow-unknown-url-schemes+: Disallows all navigation requests to URLs with unknown schemes.
|
||||
* +allow-unknown-url-schemes-from-user-interaction+: Allows navigation requests to URLs with unknown schemes that are issued from user-interaction (like a mouse-click), whereas other navigation requests (for example from JavaScript) are suppressed.
|
||||
* +allow-all-unknown-url-schemes+: Allows all navigation requests to URLs with unknown schemes.
|
||||
* +disallow+: Disallows all navigation requests to URLs with unknown schemes.
|
||||
* +allow-from-user-interaction+: Allows navigation requests to URLs with unknown schemes that are issued from user-interaction (like a mouse-click), whereas other navigation requests (for example from JavaScript) are suppressed.
|
||||
* +allow-all+: Allows all navigation requests to URLs with unknown schemes.
|
||||
|
||||
Default: +pass:[allow-unknown-url-schemes-from-user-interaction]+
|
||||
|
||||
|
|
|
|||
|
|
@ -161,11 +161,11 @@ class WebEngineSettings(websettings.AbstractSettings):
|
|||
# Only Qt >= 5.11 support UnknownUrlSchemePolicy
|
||||
try:
|
||||
_UNKNOWN_URL_SCHEME_POLICY = {
|
||||
'disallow-unknown-url-schemes':
|
||||
'disallow':
|
||||
QWebEngineSettings.DisallowUnknownUrlSchemes,
|
||||
'allow-unknown-url-schemes-from-user-interaction':
|
||||
'allow-from-user-interaction':
|
||||
QWebEngineSettings.AllowUnknownUrlSchemesFromUserInteraction,
|
||||
'allow-all-unknown-url-schemes':
|
||||
'allow-all':
|
||||
QWebEngineSettings.AllowAllUnknownUrlSchemes,
|
||||
}
|
||||
except AttributeError:
|
||||
|
|
|
|||
|
|
@ -384,14 +384,14 @@ content.unknown_url_scheme_policy:
|
|||
type:
|
||||
name: String
|
||||
valid_values:
|
||||
- disallow-unknown-url-schemes: "Disallows all navigation requests to
|
||||
URLs with unknown schemes."
|
||||
- allow-unknown-url-schemes-from-user-interaction: "Allows navigation
|
||||
requests to URLs with unknown schemes that are issued from
|
||||
user-interaction (like a mouse-click), whereas other navigation
|
||||
requests (for example from JavaScript) are suppressed."
|
||||
- allow-all-unknown-url-schemes: "Allows all navigation requests to
|
||||
URLs with unknown schemes."
|
||||
- disallow: "Disallows all navigation requests to URLs with unknown
|
||||
schemes."
|
||||
- allow-from-user-interaction: "Allows navigation requests to URLs with
|
||||
unknown schemes that are issued from user-interaction (like a
|
||||
mouse-click), whereas other navigation requests (for example from
|
||||
JavaScript) are suppressed."
|
||||
- allow-all: "Allows all navigation requests to URLs with unknown
|
||||
schemes."
|
||||
default: allow-unknown-url-schemes-from-user-interaction
|
||||
backend:
|
||||
QtWebEngine: Qt 5.11
|
||||
|
|
|
|||
Loading…
Reference in New Issue