Represents a way to specify a group of URLs for use in WebExtensions.
All match patterns are specified as strings. Apart from the special
<all_urls> pattern, match patterns consist of three parts:
scheme, host, and path.
Generally, match patterns are returned from a
<WebKitWebExtension>.
Gets the host part of the pattern string, unless
web-extension-match-pattern:get-matches-all-urls?
is #t.
Passed: a
<WebKitWebExtensionMatchPattern>.
Returned: a string.
The host string.
Gets whether the match pattern matches all host. This happens when the
pattern is <all_urls>, or if * is set as the host string.
Passed: a
<WebKitWebExtensionMatchPattern>.
Returned: a boolean.
Whether this match pattern matches all hosts.
Gets whether the match pattern matches all URLs, in other words, whether
the pattern is <all_urls>.
Passed: a
<WebKitWebExtensionMatchPattern>.
Returned: a boolean.
Whether this match pattern matches all URLs.
Gets the path part of the pattern string, unless
WebExtensionMatchPattern.get_matches_all_urls is #t.
Passed: a
<WebKitWebExtensionMatchPattern>.
Returned: a string.
The path string.
Gets the scheme part of the pattern string, unless
web-extension-match-pattern:get-matches-all-urls?
is #t.
Passed: a
<WebKitWebExtensionMatchPattern>.
Returned: a string.
The scheme string.
Gets the original pattern string.
Passed: a
<WebKitWebExtensionMatchPattern>.
Returned: a string.
The original pattern string.
Matches the self against the specified pattern with options.
Passed: a
<WebKitWebExtensionMatchPattern>.
A
<WebKitWebExtensionMatchPattern>
to match against.
Passed: a
<WebKitWebExtensionMatchPattern>.
The
<WebKitWebExtensionMatchPattern>
to match with self.
Passed: a
<WebKitWebExtensionMatchPatternOptions>,
or a list of its symbols, or one of them.
The
<WebKitWebExtensionMatchPatternOptions>
use while matching.
Returned: a boolean.
Whether the pattern matches the specified pattern.
Matches the self against the specified URL with options.
Passed: a
<WebKitWebExtensionMatchPattern>.
Passed: a string.
The URL to match against the pattern.
Passed: a
<WebKitWebExtensionMatchPatternOptions>,
or a list of its symbols, or one of them.
The
<WebKitWebExtensionMatchPatternOptions>
use while matching.
Returned: a boolean.
Whether the pattern matches the specified URL.
Returns a new
<WebKitWebExtensionMatchPattern>
that has * for scheme, host, and path.
Returned: a
<WebKitWebExtensionMatchPattern>.
a newly created
<WebKitWebExtensionMatchPattern>
Returns a new
<WebKitWebExtensionMatchPattern>
for <all_urls>.
Returned: a
<WebKitWebExtensionMatchPattern>.
a newly created
<WebKitWebExtensionMatchPattern>
Returns a new
<WebKitWebExtensionMatchPattern>
for the specified scheme, host, and path strings.
Passed: a string.
A pattern URL scheme
Passed: a string.
A pattern URL host
Passed: a string.
A pattern URL path
Returned: a
<WebKitWebExtensionMatchPattern>,
or #f.
a newly created
<WebKitWebExtensionMatchPattern>,
or #f if any of the pattern strings are invalid.
Returns a new
<WebKitWebExtensionMatchPattern>
for the specified string.
Passed: a string.
A pattern string
Returned: a
<WebKitWebExtensionMatchPattern>,
or #f.
a newly created
<WebKitWebExtensionMatchPattern>,
or #f if the pattern string is invalid.
Atomically acquires a reference on the given self.
This function is MT-safe and may be called from any thread.
Passed: a
<WebKitWebExtensionMatchPattern>.
Returned: a
<WebKitWebExtensionMatchPattern>.
The same self with an additional reference.
Registers a custom URL scheme that can be used in match patterns.
This method should be used to register any custom URL schemes used by
the app for the extension base URLs, other than webkit-extension,
or if extensions should have access to other supported URL schemes when
using <all_urls>.
Passed: a string.
The custom URL scheme to register
Registers a custom URL scheme that can be used in match patterns.
This method should be used to register any custom URL schemes used by
the app for the extension base URLs, other than webkit-extension,
or if extensions should have access to other supported URL schemes when
using <all_urls>.
Passed: a string.
The custom URL scheme to register
Atomically releases a reference on the given self.
If the reference was the last, the resources associated to the self are freed. This function is MT-safe and may be called from any thread.
Passed: a
<WebKitWebExtensionMatchPattern>.