From e7529b3c3aafb051bea1a290221d3593920fe014 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Wed, 25 Mar 2015 19:20:08 +0100 Subject: Handle empty form actions. --- xul-ext/chrome/content/icevault.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xul-ext/chrome/content/icevault.js b/xul-ext/chrome/content/icevault.js index f2c4c79..1eae3e1 100644 --- a/xul-ext/chrome/content/icevault.js +++ b/xul-ext/chrome/content/icevault.js @@ -110,7 +110,10 @@ var icevault = (function() { // keep the element objects in the state, and build an assoc // list with the wanted field properties forms.push(fields); - getForms.push({ method: form.method.toUpperCase(), action: form.action, fields: getFields }); + let action = form.action; + if (action == "") + action = form.baseURI; + getForms.push({ method: form.method.toUpperCase(), action: action, fields: getFields }); } } -- cgit v1.2.3