[Webkit-unassigned] [Bug 55473] [GTK] Add support for about: protocol handlers
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Mar 1 09:21:52 PST 2011
https://bugs.webkit.org/show_bug.cgi?id=55473
--- Comment #2 from Martin Robinson <mrobinson at webkit.org> 2011-03-01 09:21:52 PST ---
(From update of attachment 84235)
View in context: https://bugs.webkit.org/attachment.cgi?id=84235&action=review
Instead of adding new API (though perhaps we still want to), would it make sense to just query soup for an installed "about:" handler while handling a request. If the handler is installed then remove it from the empty document schemas.
What does Chromium do to get around the empty document scheme issue?
> Source/WebKit/gtk/webkit/webkitglobals.cpp:220
> +void webkit_register_url_scheme_as_local (const gchar* scheme)
> +{
> + webkitInit();
> + SchemeRegistry::registerURLSchemeAsLocal(String::fromUTF8(scheme));
> +}
> +
> +void webkit_remove_url_scheme_registered_as_local (const gchar* scheme)
> +{
> + webkitInit();
> + SchemeRegistry::removeURLSchemeRegisteredAsLocal(String::fromUTF8(scheme));
> +}
> +
> +void webkit_register_url_scheme_as_empty_document (const gchar* scheme)
> +{
> + webkitInit();
> + SchemeRegistry::registerURLSchemeAsEmptyDocument(String::fromUTF8(scheme));
> +}
> +
> +void webkit_remove_url_scheme_registered_as_empty_document (const gchar* scheme)
> +{
> + webkitInit();
> + SchemeRegistry::removeURLSchemeRegisteredAsEmptyDocument(String::fromUTF8(scheme));
> +}
extra space after the function names.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list