Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/url.js

Issue 6289648649240576: Issue 1852 - Fixed a TypeError on Safari caused by parsing empty URLs (Closed)
Patch Set: Created Jan. 22, 2015, 4:25 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/url.js
===================================================================
--- a/lib/url.js
+++ b/lib/url.js
@@ -20,7 +20,7 @@
let URL = window.URL || window.webkitURL;
let URLProperties = ["href", "protocol", "host", "hostname", "port", "pathname", "search"];
- if (!URL || !URLProperties.every(prop => prop in new URL("")))
+ if (!URL || !URLProperties.every(prop => prop in new URL("about:blank")))
{
let doc = document.implementation.createHTMLDocument();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld