From d9e237c128621377715b67c36213159a3cfd5468 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 30 Oct 2017 18:47:37 -0400 Subject: mq_web_view_view_source_scheme_methods.rewrite_uri(): Use origin tab ID Not the view tab ID. --- (limited to 'src') diff --git a/src/web-view-schemes/view-source.c b/src/web-view-schemes/view-source.c index ab36f49..2236d48 100644 --- a/src/web-view-schemes/view-source.c +++ b/src/web-view-schemes/view-source.c @@ -70,11 +70,11 @@ finalize(MqWebViewScheme *scheme) } static gchar * -rewrite_uri(MqWebView *web_view, MqWebViewScheme G_GNUC_UNUSED *scheme, +rewrite_uri(MqWebView *web_view, MqWebViewScheme *scheme, const gchar G_GNUC_UNUSED *uri) { - return g_strdup_printf("view-source:view-tab=%" PRId64, - mq_tab_page_get_id(mq_web_view_get_tab_page(web_view))); + return g_strdup_printf("view-source:origin-tab=%" PRId64, + scheme->view_source.origin_tab_id); } static gchar * -- cgit v0.9.1