[Webkit-unassigned] [Bug 71968] Implement URL API

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Nov 22 09:54:06 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=71968





--- Comment #23 from Erik Arvidsson <arv at chromium.org>  2011-11-22 09:54:05 PST ---
(In reply to comment #22)
> (In reply to comment #21)
> > I implemented this in JS+DOM
> > 
> > https://gist.github.com/1384398
> > 
> > It might be useful for you to better understand how this is supposed to work.
> 
> Thanx Erik. It is much useful. Just one question it should workin both ways 
> var url = new webkitURL()
> var url = window.webkitURL
> 
> Right?

var url = window.webkitURL;

works but it does not give you a URL instance. Instead it should give you a function object that can be used to construct new URL instances.

shouldBeFalse("'protocol' in webkitURL");
shouldBeFalse("'username' in webkitURL");
shouldBeFalse("'password' in webkitURL");
shouldBeFalse("'host' in webkitURL");
shouldBeFalse("'hostname' in webkitURL");
shouldBeFalse("'port' in webkitURL");
shouldBeFalse("'pathname' in webkitURL");
shouldBeFalse("'search' in webkitURL");
shouldBeFalse("'hash' in webkitURL");
shouldBeFalse("'filename' in webkitURL");
shouldBeFalse("'origin' in webkitURL");
shouldBeFalse("'parameterNames' in webkitURL");
shouldBeFalse("'getParametername' in webkitURL");
shouldBeFalse("'getParameterAllname' in webkitURL");
shouldBeFalse("'appendParameter' in webkitURL");
shouldBeFalse("'clearParametername' in webkitURL");
shouldBeFalse("'href' in webkitURL");

shouldBeTrue("createObjectURL' in webkitURL");
shouldBeTrue("'revokeObjectURL' in webkitURL");

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list