DescriptionFixes to window.location per MDN and empirical testing w/ Chrome:
* window.location.{pathname,search,hash} are in escaped form.
* window.location.host correct when no port number is present.
* window.location.pathname is never empty, but at least '/'.
* window.location.{search,hash} include the ? or #.
* Fixed cases where 'nosuchhost.invalid' placeholder values occur
even though there is a proper value, which happens to be the empty
string.
Supporting changes:
* Move testLocation from test-domado-dom-guest to test-domado-global and
run it on several different URLs.
* Refactor test-domado-global to introduce registerGlobalTest which can
handle more cases than registerGuestTest.
@r5441
Patch Set 1 #
Total comments: 2
Patch Set 2 : Fix syntax and escaping of window.location properties. #
MessagesTotal messages: 4
|
||||||||||||||||||||||||||||||||||||||||||||||