summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-30 23:02:45 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-30 23:02:45 (EDT)
commita8c54907b7f701f96b4df35f8769e3558c6bd0b8 (patch)
treebd72e5cc79851b75f53cfe219632b9112300ad43 /src
parentc18e6aaed8caa69eba141b4a4894d12df37dda40 (diff)
downloadmarquee-a8c54907b7f701f96b4df35f8769e3558c6bd0b8.zip
marquee-a8c54907b7f701f96b4df35f8769e3558c6bd0b8.tar.gz
marquee-a8c54907b7f701f96b4df35f8769e3558c6bd0b8.tar.bz2
mq_web_view_view_source_scheme_methods: Add TODO comments to methods
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);
}