WebCore: hostname and host are mixed up when manipulating anchor elements.
authoryael.aharon@nokia.com <yael.aharon@nokia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 4 Sep 2009 17:53:00 +0000 (17:53 +0000)
committeryael.aharon@nokia.com <yael.aharon@nokia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 4 Sep 2009 17:53:00 +0000 (17:53 +0000)
commit9e5b66faec0fe82f12936ddd8dca38850c16d4e4
treea2fa211ece07c8df55410a1ff87cd6a8223a2cf6
parent8aa05deff7229dab68c2f6d86e7905da5b4eba50
WebCore: hostname and host are mixed up when manipulating anchor elements.
https://bugs.webkit.org/show_bug.cgi?id=28954

Patch by Yael Aharon <yael.aharon@nokia.com> on 2009-09-04
Reviewed by Darin Adler.

Swapped the implementation of host and hostname, and made sure not to return
the port number if it is default for the given protocol.
FireFox also avoids returning the protocol number if it is default.

Test: fast/dom/Element/hostname-host.html

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48063 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/dom/Element/hostname-host-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/Element/hostname-host.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/html/HTMLAnchorElement.cpp
WebCore/page/SecurityOrigin.cpp
WebCore/page/SecurityOrigin.h