diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2015-03-25 19:20:08 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2015-03-25 20:14:50 +0100 |
commit | e7529b3c3aafb051bea1a290221d3593920fe014 (patch) | |
tree | bc2981aae1b45ee3747becb31dc35bee2192d1b4 /xul-ext/chrome/content | |
parent | 2c9f42f83376e8450e40ac61717babb414c78a95 (diff) |
Handle empty form actions.
Diffstat (limited to 'xul-ext/chrome/content')
-rw-r--r-- | xul-ext/chrome/content/icevault.js | 5 |
1 files changed, 4 insertions, 1 deletions
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 }); } } |