From 8f73d3f03d76e7c2f6d698265bbafc7b70cbd69e Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Wed, 7 Jan 2015 14:12:46 -0800 Subject: [PATCH] Test URL setters correctly encode value https://bugs.webkit.org/show_bug.cgi?id=140174 --- url.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/url.js b/url.js index 6070b7a..e53f557 100644 --- a/url.js +++ b/url.js @@ -9,7 +9,8 @@ if (!scope.forceJURL) { try { var u = new URL('b', 'http://a'); - hasWorkingUrl = u.href === 'http://a/b'; + u.pathname = 'c%20d'; + hasWorkingUrl = u.href === 'http://a/c%20d'; } catch(e) {} }