Commit dc713f8
Support whitelisting URLs for local universal access
When launching the browser with a local (file) URL, the page
may need to load scripts that reside on a different volume.
The commit 448487f introduced a change to use the posix
version of FileSystem::getFileDeviceId() instead of the glib
one. This affected the return value which is now non-zero,
fixing a bug, but changing the behavior of
FileSystem::filesHaveSameVolume() compared to older versions
and consequently the behavior of
SecurityOrigin::canDisplay() when a page loads a script that
resides on a different volume. While this can be overcome by
enabling the setting to allow universal access from file
urls using the API
webkit_settings_set_allow_universal_access_from_file_urls(),
that will allow a wider access that needed, as the access is
only required from a limited number of trusted local files.
This new API introduces a way to overcome this issue and
allow only the access that is required.1 parent b82f4fd commit dc713f8
File tree
11 files changed
+63
-0
lines changed- Source/WebKit
- UIProcess
- API
- glib
- WebProcess
- InjectedBundle/API/glib
- WebPage
11 files changed
+63
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
| 273 | + | |
273 | 274 | | |
274 | 275 | | |
275 | 276 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| 194 | + | |
194 | 195 | | |
195 | 196 | | |
196 | 197 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
574 | 574 | | |
575 | 575 | | |
576 | 576 | | |
| 577 | + | |
577 | 578 | | |
578 | 579 | | |
579 | 580 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5620 | 5620 | | |
5621 | 5621 | | |
5622 | 5622 | | |
| 5623 | + | |
| 5624 | + | |
| 5625 | + | |
| 5626 | + | |
| 5627 | + | |
| 5628 | + | |
| 5629 | + | |
| 5630 | + | |
| 5631 | + | |
| 5632 | + | |
| 5633 | + | |
| 5634 | + | |
| 5635 | + | |
| 5636 | + | |
| 5637 | + | |
| 5638 | + | |
| 5639 | + | |
| 5640 | + | |
| 5641 | + | |
| 5642 | + | |
| 5643 | + | |
| 5644 | + | |
| 5645 | + | |
| 5646 | + | |
| 5647 | + | |
| 5648 | + | |
| 5649 | + | |
5623 | 5650 | | |
5624 | 5651 | | |
5625 | 5652 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
872 | 872 | | |
873 | 873 | | |
874 | 874 | | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
875 | 879 | | |
876 | 880 | | |
877 | 881 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11913 | 11913 | | |
11914 | 11914 | | |
11915 | 11915 | | |
| 11916 | + | |
11916 | 11917 | | |
11917 | 11918 | | |
11918 | 11919 | | |
| |||
15209 | 15210 | | |
15210 | 15211 | | |
15211 | 15212 | | |
| 15213 | + | |
| 15214 | + | |
| 15215 | + | |
| 15216 | + | |
| 15217 | + | |
| 15218 | + | |
15212 | 15219 | | |
15213 | 15220 | | |
15214 | 15221 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2254 | 2254 | | |
2255 | 2255 | | |
2256 | 2256 | | |
| 2257 | + | |
| 2258 | + | |
| 2259 | + | |
2257 | 2260 | | |
2258 | 2261 | | |
2259 | 2262 | | |
| |||
3833 | 3836 | | |
3834 | 3837 | | |
3835 | 3838 | | |
| 3839 | + | |
3836 | 3840 | | |
3837 | 3841 | | |
3838 | 3842 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
286 | 291 | | |
287 | 292 | | |
288 | 293 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
853 | 853 | | |
854 | 854 | | |
855 | 855 | | |
| 856 | + | |
| 857 | + | |
856 | 858 | | |
857 | 859 | | |
858 | 860 | | |
| |||
9125 | 9127 | | |
9126 | 9128 | | |
9127 | 9129 | | |
| 9130 | + | |
| 9131 | + | |
| 9132 | + | |
| 9133 | + | |
| 9134 | + | |
9128 | 9135 | | |
9129 | 9136 | | |
9130 | 9137 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1740 | 1740 | | |
1741 | 1741 | | |
1742 | 1742 | | |
| 1743 | + | |
1743 | 1744 | | |
1744 | 1745 | | |
1745 | 1746 | | |
| |||
2005 | 2006 | | |
2006 | 2007 | | |
2007 | 2008 | | |
| 2009 | + | |
| 2010 | + | |
2008 | 2011 | | |
2009 | 2012 | | |
2010 | 2013 | | |
| |||
3039 | 3042 | | |
3040 | 3043 | | |
3041 | 3044 | | |
| 3045 | + | |
3042 | 3046 | | |
3043 | 3047 | | |
3044 | 3048 | | |
| |||
0 commit comments