From a8c54907b7f701f96b4df35f8769e3558c6bd0b8 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 30 Oct 2017 23:02:45 -0400 Subject: mq_web_view_view_source_scheme_methods: Add TODO comments to methods --- diff --git a/src/web-view-schemes/view-source.c b/src/web-view-schemes/view-source.c index f44db97..f5c0c76 100644 --- a/src/web-view-schemes/view-source.c +++ b/src/web-view-schemes/view-source.c @@ -44,6 +44,7 @@ initialize(MqWebView *web_view, MqWebViewScheme *scheme, const gchar *uri) { MqTabPage *origin_tab; + /* TODO: Handle "view-source:URI" URIs. */ g_assert(g_str_has_prefix(uri, "view-source:origin-tab=")); /* Parse origin tab ID out of URI. */ @@ -70,6 +71,8 @@ static gchar * rewrite_uri(MqWebView G_GNUC_UNUSED *web_view, MqWebViewScheme *scheme, const gchar G_GNUC_UNUSED *uri) { + /* TODO: Handle reloads and missing origin tab IDs (i.e. user loaded + * "view-source:URI"). */ return g_strdup_printf("view-source:origin-tab=%" PRId64, scheme->view_source.origin_tab_id); } -- cgit v0.9.1