Commit 6f6f5b9c authored by Bhagirathi Satpathy's avatar Bhagirathi Satpathy Committed by Commit Bot

Converted document object attributes type to USVString as per specification

https://html.spec.whatwg.org/multipage/dom.html#documents

With this CL, |domain| and |referrer| that includes unpaired surrogate codepoint are replaced
by \uFFFD. Since in case of both DOMString and USVString, same exception ("Uncaught SecurityError:
Failed to set the 'domain' property on 'Document': 'text is �' could not be parsed properly.")
is thrown, so no test is added.

Bug: 
Change-Id: Ie01fdc71fd9a540f2df4a71ff8cafbd205fe96ef
Reviewed-on: https://chromium-review.googlesource.com/795592
Commit-Queue: Bhagirathi Satpathy <bhagirathi.s@samsung.com>
Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Reviewed-by: default avatarYuki Shiino <yukishiino@chromium.org>
Reviewed-by: default avatarPhilip Jägenstedt <foolip@chromium.org>
Cr-Commit-Position: refs/heads/master@{#521323}
parent c00f529a
...@@ -94,8 +94,8 @@ typedef (HTMLScriptElement or SVGScriptElement) HTMLOrSVGScriptElement; ...@@ -94,8 +94,8 @@ typedef (HTMLScriptElement or SVGScriptElement) HTMLOrSVGScriptElement;
// resource metadata management // resource metadata management
[PutForwards=href, Unforgeable] readonly attribute Location? location; [PutForwards=href, Unforgeable] readonly attribute Location? location;
[RaisesException=Setter] attribute DOMString domain; [RaisesException=Setter] attribute USVString domain;
readonly attribute DOMString referrer; readonly attribute USVString referrer;
[RaisesException, RuntimeCallStatsCounter=DocumentCookie] attribute DOMString cookie; [RaisesException, RuntimeCallStatsCounter=DocumentCookie] attribute DOMString cookie;
readonly attribute DOMString lastModified; readonly attribute DOMString lastModified;
readonly attribute DocumentReadyState readyState; readonly attribute DocumentReadyState readyState;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment