Avoid constructing a complete KURL in fragmentIdentifierFromIRIString.
Avoid constructing a complete KURL in fragmentIdentifierFromIRIString.

Constructing the KURL from base + fragment ref is problematic for data: URI, as it is not a
hierarchical scheme and relative resolution fails.

Luckily, this is avoidable: the only reason for constructing a KURL is to compare against the
document URL, but the comparison ignores the fragment anyway (equalIgnoringFragmentIdentifier).
This is equivalent to a base-only comparison, which is the approach proposed in this patch.

No test: the issue only triggers when the document url is data: URI based, and DRT doesn't seem to
support opening such a scheme directly. Current baseURI vs. document URL validation is covered by
existing tests.

(For background on why we perform such validation in the first place, see
https://bugs.webkit.org/show_bug.cgi?id=63283
https://bugzilla.mozilla.org/show_bug.cgi?id=308590)

BUG=234595

Review URL: https://chromiumcodereview.appspot.com/14471032

git-svn-id: bf5cd6ccde378db821296732a091cfbcf5285fbd@149199 bbb929c8-8fbe-4397-9dbb-9b2b20218538

modulexcite/blink,Pluto-tv/blink-crosswalk,kurli/blink-crosswalk,PeterWangIntel/blink-crosswalk,nwjs/blink,Pluto-tv/blink-crosswalk,PeterWangIntel/blink-crosswalk,PeterWangIntel/blink-crosswalk,nwjs/blink,jtg-gg/blink,ondra-novak/blink,modulexcite/blink,XiaosongWei/blink-crosswalk,XiaosongWei/blink-crosswalk,hgl888/blink-crosswalk-efl,XiaosongWei/blink-crosswalk,PeterWangIntel/blink-crosswalk,nwjs/blink,crosswalk-project/blink-crosswalk-efl,crosswalk-project/blink-crosswalk-efl,crosswalk-project/blink-crosswalk-efl,smishenk/blink-crosswalk,jtg-gg/blink,XiaosongWei/blink-crosswalk,Bysmyyr/blink-crosswalk,Pluto-tv/blink-crosswalk,kurli/blink-crosswalk,modulexcite/blink,ondra-novak/blink,ondra-novak/blink,ondra-novak/blink,smishenk/blink-crosswalk,smishenk/blink-crosswalk,kurli/blink-crosswalk,kurli/blink-crosswalk,Bysmyyr/blink-crosswalk,modulexcite/blink,Bysmyyr/blink-crosswalk,hgl888/blink-crosswalk-efl,smishenk/blink-crosswalk,kurli/blink-crosswalk,hgl888/blink-crosswalk-efl,nwjs/blink,Bysmyyr/blink-crosswalk,jtg-gg/blink,hgl888/blink-crosswalk-efl,Bysmyyr/blink-crosswalk,XiaosongWei/blink-crosswalk,Pluto-tv/blink-crosswalk,PeterWangIntel/blink-crosswalk,jtg-gg/blink,crosswalk-project/blink-crosswalk-efl,Pluto-tv/blink-crosswalk,modulexcite/blink,modulexcite/blink,hgl888/blink-crosswalk-efl,kurli/blink-crosswalk,Bysmyyr/blink-crosswalk,Bysmyyr/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,XiaosongWei/blink-crosswalk,PeterWangIntel/blink-crosswalk,jtg-gg/blink,PeterWangIntel/blink-crosswalk,ondra-novak/blink,jtg-gg/blink,XiaosongWei/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,ondra-novak/blink,smishenk/blink-crosswalk,nwjs/blink,smishenk/blink-crosswalk,jtg-gg/blink,ondra-novak/blink,smishenk/blink-crosswalk,kurli/blink-crosswalk,nwjs/blink,smishenk/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,ondra-novak/blink,ondra-novak/blink,Bysmyyr/blink-crosswalk,hgl888/blink-crosswalk-efl,kurli/blink-crosswalk,nwjs/blink,hgl888/blink-crosswalk-efl,hgl888/blink-crosswalk-efl,modulexcite/blink,jtg-gg/blink,modulexcite/blink,modulexcite/blink,kurli/blink-crosswalk,kurli/blink-crosswalk,jtg-gg/blink,nwjs/blink,Pluto-tv/blink-crosswalk,Bysmyyr/blink-crosswalk,PeterWangIntel/blink-crosswalk,PeterWangIntel/blink-crosswalk,XiaosongWei/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,Pluto-tv/blink-crosswalk,nwjs/blink,hgl888/blink-crosswalk-efl,Pluto-tv/blink-crosswalk,Pluto-tv/blink-crosswalk,PeterWangIntel/blink-crosswalk,Pluto-tv/blink-crosswalk,jtg-gg/blink,smishenk/blink-crosswalk,XiaosongWei/blink-crosswalk,hgl888/blink-crosswalk-efl,crosswalk-project/blink-crosswalk-efl,smishenk/blink-crosswalk,modulexcite/blink,nwjs/blink,XiaosongWei/blink-crosswalk,Bysmyyr/blink-crosswalk