[Pkg-mozext-commits] [requestpolicy] 41/65: [tst][fix] NS_ERROR_MALFORMED_URI in "rpc" uri

David Prévot taffit at moszumanska.debian.org
Fri Mar 25 22:59:49 UTC 2016


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository requestpolicy.

commit b661850d6c9faca3324772b861aeb853537bbde2
Author: Martin Kimmerle <dev at 256k.de>
Date:   Mon Jan 25 12:15:01 2016 +0100

    [tst][fix] NS_ERROR_MALFORMED_URI in "rpc" uri
---
 tests/content/page-without-resources.html          | 15 +++++++++++++++
 tests/helper-addons/dev-helper/content/rpc-uri.jsm |  4 +++-
 2 files changed, 18 insertions(+), 1 deletion(-)

diff --git a/tests/content/page-without-resources.html b/tests/content/page-without-resources.html
new file mode 100644
index 0000000..feab67e
--- /dev/null
+++ b/tests/content/page-without-resources.html
@@ -0,0 +1,15 @@
+<!doctype html>
+<html>
+<head>
+  <meta charset="utf-8" />
+  <title>Page without other resources</title>
+</head>
+<body>
+
+  <p>
+    This is an empty page which does not load any other resources. No images,
+    no links, no JS filse; nothing.
+  </p>
+
+</body>
+</html>
diff --git a/tests/helper-addons/dev-helper/content/rpc-uri.jsm b/tests/helper-addons/dev-helper/content/rpc-uri.jsm
index c9c193e..41d422c 100644
--- a/tests/helper-addons/dev-helper/content/rpc-uri.jsm
+++ b/tests/helper-addons/dev-helper/content/rpc-uri.jsm
@@ -36,7 +36,9 @@ let {XPCOMUtils} = Cu.import("resource://gre/modules/XPCOMUtils.jsm", {});
 var CustomUri = (function() {
   let self = {};
 
-  const DESTINATION_URI = "http://www.maindomain.test/destination.html";
+  // A page with no other resources
+  const DESTINATION_URI = "http://www.maindomain.test/" +
+      "page-without-resources.html";
 
   self.classDescription = "RPC Protocol";
   self.contractID = "@mozilla.org/network/protocol;1?name=rpc";

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/requestpolicy.git



More information about the Pkg-mozext-commits mailing list