diff options
author | Byron Jones <bjones@mozilla.com> | 2011-11-16 06:40:01 +0100 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2011-11-16 06:40:01 +0100 |
commit | 0c92404c31069a71099ec6a4b5dc151d453f6bc5 (patch) | |
tree | 4a7b59200116ac4c5fa6d7a7894fcd8a967e2fc4 /extensions/InlineHistory/web/inline-history.js | |
parent | eec86341ab238905781728c178d971ab6928a0f3 (diff) | |
download | bugzilla-0c92404c31069a71099ec6a4b5dc151d453f6bc5.tar.gz bugzilla-0c92404c31069a71099ec6a4b5dc151d453f6bc5.tar.xz |
Bug 702695: display unsafe-url warning on inline-history urls
Diffstat (limited to 'extensions/InlineHistory/web/inline-history.js')
-rw-r--r-- | extensions/InlineHistory/web/inline-history.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/extensions/InlineHistory/web/inline-history.js b/extensions/InlineHistory/web/inline-history.js index 40f208d57..a6655e10b 100644 --- a/extensions/InlineHistory/web/inline-history.js +++ b/extensions/InlineHistory/web/inline-history.js @@ -368,6 +368,12 @@ var inline_history = { ul.appendChild(li); }, + confirmUnsafeUrl: function(url) { + return confirm( + 'This is considered an unsafe URL and could possibly be harmful.\n' + + 'The full URL is:\n\n' + url + '\n\nContinue?'); + }, + previousElementSibling: function(el) { if (el.previousElementSibling) return el.previousElementSibling; |