aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-web-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'embed/ephy-web-view.c')
-rw-r--r--embed/ephy-web-view.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index 149ae625d..61c1fe1d3 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -292,9 +292,6 @@ ephy_web_view_set_popups_allowed (EphyWebView *view,
EphyPermissionManager *manager;
EphyPermission permission;
- location = ephy_web_view_get_location (view, TRUE);
- g_return_if_fail (location != NULL);
-
manager = EPHY_PERMISSION_MANAGER
(ephy_embed_shell_get_embed_single (embed_shell));
g_return_if_fail (EPHY_IS_PERMISSION_MANAGER (manager));
@@ -302,6 +299,9 @@ ephy_web_view_set_popups_allowed (EphyWebView *view,
permission = allowed ? EPHY_PERMISSION_ALLOWED
: EPHY_PERMISSION_DENIED;
+ location = ephy_web_view_get_location (view, TRUE);
+ g_return_if_fail (location != NULL);
+
ephy_permission_manager_add_permission (manager, location,
EPHY_PERMISSION_TYPE_POPUP,
permission);