summaryrefslogtreecommitdiff
path: root/src/view.c
diff options
context:
space:
mode:
authorportix <none@none>2012-12-29 13:04:46 +0100
committerportix <none@none>2012-12-29 13:04:46 +0100
commit7af387f69c403b32a86724858e051085ef2bd519 (patch)
tree253604b1609cd18667d07415d6e77defa227e32f /src/view.c
parent6c1d083ff8de9d79c79f1f16e8c2cf951832cda0 (diff)
parentb4479346804eaaff9252b9f878b21bb859b55956 (diff)
downloaddwb-7af387f69c403b32a86724858e051085ef2bd519.zip
Merging with https://bitbucket.org/portix/dwb
Diffstat (limited to 'src/view.c')
-rw-r--r--src/view.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/view.c b/src/view.c
index 44f70f14..82f0aa9b 100644
--- a/src/view.c
+++ b/src/view.c
@@ -599,6 +599,14 @@ view_navigation_policy_cb(WebKitWebView *web, WebKitWebFrame *frame, WebKitNetwo
return true;
}
break;
+ case WEBKIT_WEB_NAVIGATION_REASON_FORM_RESUBMITTED:
+ if (!dwb_confirm(dwb.state.fview, "Resubmit form [y/n]?"))
+ {
+ webkit_web_policy_decision_ignore(policy);
+ return true;
+ }
+ break;
+
default: break;
}