[gnome-online-accounts/wip/rishi/pocket-firefox: 3/6] oauth2: Call goa_oauth2_provider_decide_navigation_policy
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts/wip/rishi/pocket-firefox: 3/6] oauth2: Call goa_oauth2_provider_decide_navigation_policy
- Date: Wed, 20 Jul 2016 13:22:29 +0000 (UTC)
commit a48fbca71c2b14376902a22ba50458bdb6f477c8
Author: Debarshi Ray <debarshir gnome org>
Date: Tue Jul 19 18:37:09 2016 +0200
oauth2: Call goa_oauth2_provider_decide_navigation_policy
https://bugzilla.gnome.org/show_bug.cgi?id=755386
src/goabackend/goaoauth2provider.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/goabackend/goaoauth2provider.c b/src/goabackend/goaoauth2provider.c
index 067dc9d..4f1db90 100644
--- a/src/goabackend/goaoauth2provider.c
+++ b/src/goabackend/goaoauth2provider.c
@@ -849,6 +849,9 @@ on_web_view_decide_policy (WebKitWebView *web_view,
if (decision_type != WEBKIT_POLICY_DECISION_TYPE_NAVIGATION_ACTION)
goto default_behaviour;
+ if (goa_oauth2_provider_decide_navigation_policy (provider, WEBKIT_NAVIGATION_POLICY_DECISION (decision)))
+ goto default_behaviour;
+
/* TODO: use oauth2_proxy_extract_access_token() */
action = webkit_navigation_policy_decision_get_navigation_action (WEBKIT_NAVIGATION_POLICY_DECISION
(decision));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]