From 07da59cdfc0e303ccb771969955631e1da9310d2 Mon Sep 17 00:00:00 2001 From: Marco Bonardo Date: Tue, 20 Oct 2020 09:05:59 +0000 Subject: [PATCH] Bug 1637745 - Test. r=Gijs Depends on D80345 Differential Revision: https://phabricator.services.mozilla.com/D80346 --- .../exthandler/tests/mochitest/mochitest.ini | 4 ++ .../tests/mochitest/test_nullCharFile.xhtml | 48 +++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 uriloader/exthandler/tests/mochitest/test_nullCharFile.xhtml diff --git a/uriloader/exthandler/tests/mochitest/mochitest.ini b/uriloader/exthandler/tests/mochitest/mochitest.ini index c84de622f212..be3b6bb37e8d 100644 --- a/uriloader/exthandler/tests/mochitest/mochitest.ini +++ b/uriloader/exthandler/tests/mochitest/mochitest.ini @@ -11,6 +11,10 @@ skip-if = toolkit == 'android' && !is_fennec # Bug 1525959 support-files = HelperAppLauncherDialog_chromeScript.js invalidCharFileExtension.sjs +[test_nullCharFile.xhtml] +skip-if = toolkit == 'android' && !is_fennec # Bug 1525959 +support-files = + HelperAppLauncherDialog_chromeScript.js [test_unknown_ext_protocol_handlers.html] [test_unsafeBidiChars.xhtml] skip-if = toolkit == 'android' && !is_fennec # Bug 1525959 diff --git a/uriloader/exthandler/tests/mochitest/test_nullCharFile.xhtml b/uriloader/exthandler/tests/mochitest/test_nullCharFile.xhtml new file mode 100644 index 000000000000..66e88249bf73 --- /dev/null +++ b/uriloader/exthandler/tests/mochitest/test_nullCharFile.xhtml @@ -0,0 +1,48 @@ + + + Test for Handling of null char + + + + +

+ + + +