summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/web-view-schemes/view-source.c3
1 files changed, 3 insertions, 0 deletions
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);
}