GNOME Bugzilla – Bug 777246
Overview totally broken due to new local file restrictions
Last modified: 2017-01-14 23:03:53 UTC
Overview is totally broken with WebKit trunk due to new local file restrictions. Seems to be impossible to load file:/// URLs from ephy-about:// pages. A quick check of our API doesn't show any way to fix it; nothing in WebKitSecurityManager seems relevant.
(Note: also affects our empty state)
I added a WTFLogAlways in WebCore::CachedResourceLoader::canRequest. It prints e.g.: canRequest: security origin ephy-about:// cannot display file:///home/mcatanzaro/.cache/thumbnails/large/80bbf48dad9161583129da74239ab0bc.png So what we need is some way to tell WebKit that ephy-about:// is trusted and allowed to load local files, without allowing other URI schemes to do so.
Turns out we already have code to solve this in ephy_embed_shell_startup: /* Register about scheme as local so that it can contain file resources */ webkit_security_manager_register_uri_scheme_as_local (webkit_web_context_get_security_manager (priv->web_context), EPHY_ABOUT_SCHEME); It works with 2.14.2, but is broken with WebKit trunk.
WebKit bug: https://bugs.webkit.org/show_bug.cgi?id=167058