Skip to content

Commit 26d7059

Browse files
committed
Improve schemes api (add linux restrictions)
1 parent 8183e08 commit 26d7059

2 files changed

Lines changed: 17 additions & 20 deletions

File tree

Writerside/topics/application/application-configuration.md

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ For example as a <a href="https://learn.microsoft.com/en-us/windows/win32/learnw
3030

3131
## Intercepted Schemes
3232
<secondary-label ref="config-only"/>
33-
<secondary-label ref="macos-limitations"/>
3433

3534
Defines custom schemes that your application can handle.
3635
These schemes allow you to create custom protocols for your application.
@@ -41,31 +40,15 @@ $appConfig = new Boson\ApplicationCreateInfo(
4140
);
4241
```
4342

43+
More detailed information about the schemes is available
44+
on the [Schemes API](schemes-api.md) page.
45+
4446
<tip>
4547
Each registered scheme in this list will produce a
4648
<a href="schemes-api-events.md#request-intention">SchemeRequestReceived</a> intention
4749
when attempting to access a resource located at an address with this protocol.
4850
</tip>
4951

50-
<tabs>
51-
<tab title="MacOS/WebKit">
52-
<warning>
53-
Does NOT support interception of some existing schemes:
54-
<code>http</code>, <code>https</code>, <code>ws</code>, <code>wss</code>,
55-
<code>ftp</code>, <code>file</code>, <code>data</code>.
56-
57-
You will get an error similar to the following:
58-
<code-block>
59-
*** Terminating app due to uncaught
60-
exception 'NSInvalidArgumentException', reason: "'https' is a URL
61-
scheme that WKWebView handles natively"
62-
*** First throw call stack:
63-
...
64-
</code-block>
65-
</warning>
66-
</tab>
67-
</tabs>
68-
6952

7053
## Threads Count
7154
<secondary-label ref="config-only"/>

Writerside/topics/webview/schemes-api.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ programmatically, without actual requests to the server (without network).
1010

1111
## Registration
1212
<secondary-label ref="macos-limitations"/>
13+
<secondary-label ref="security-limitations"/>
1314

1415
To enable processing of specific protocols, you should specify
1516
them in the list of schemes.
@@ -39,6 +40,19 @@ You will get an error similar to the following:
3940
</code-block>
4041
</warning>
4142
</tab>
43+
<tab title="Linux/GTK4">
44+
<warning>
45+
Does NOT support interception of some existing schemes:
46+
<code>http</code>, <code>https</code>, <code>ws</code>, <code>wss</code>,
47+
<code>ftp</code>, <code>file</code>, <code>data</code>.
48+
49+
You will get an error similar to the following:
50+
<code-block>
51+
** (process:3226): WARNING **: 16:12:59.122:
52+
Registering special URI scheme https is no longer allowed
53+
</code-block>
54+
</warning>
55+
</tab>
4256
</tabs>
4357

4458
## Requests Interception

0 commit comments

Comments
 (0)