summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Catanzaro <mcatanzaro@igalia.com>2018-01-06 18:59:01 -0600
committerMichael Catanzaro <mcatanzaro@igalia.com>2018-01-06 18:59:01 -0600
commita8a9e257676040ecb272707ad2333072182852d0 (patch)
tree626f96d801acb71ccb67458b0a8b11d0a4032de9
parent1490f21363722719f9c9c95aa340a95ba72bb178 (diff)
downloadepiphany-a8a9e257676040ecb272707ad2333072182852d0.tar.gz
window: Add a comment
I was confused how it was possible to complete the policy decision asynchronously if we do not ref it anywhere. We do, it's just hidden.
-rw-r--r--src/ephy-window.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c
index a700fab28..1b9897b10 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -2090,6 +2090,7 @@ decide_policy_cb (WebKitWebView *web_view,
service = ephy_embed_shell_get_global_gsb_service (ephy_embed_shell_get_default ());
ephy_gsb_service_verify_url (service, request_uri,
(GAsyncReadyCallback)verify_url_cb,
+ /* Note: this refs the policy decision, so we can complete it asynchronously. */
verify_url_async_data_new (window, web_view,
decision, decision_type,
request_uri));