Skip to content

Commit 3b548be

Browse files
committed
Bug 1497557 - <a> "protocol" should be ":" for data-relative paths, instead of "http:" r=baku
Differential Revision: https://phabricator.services.mozilla.com/D106260
1 parent 26330a0 commit 3b548be

File tree

3 files changed

+1
-495
lines changed

3 files changed

+1
-495
lines changed

dom/base/Link.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -323,9 +323,7 @@ void Link::GetOrigin(nsAString& aOrigin) {
323323

324324
void Link::GetProtocol(nsAString& _protocol) {
325325
nsCOMPtr<nsIURI> uri(GetURI());
326-
if (!uri) {
327-
_protocol.AssignLiteral("http");
328-
} else {
326+
if (uri) {
329327
nsAutoCString scheme;
330328
(void)uri->GetScheme(scheme);
331329
CopyASCIItoUTF16(scheme, _protocol);

0 commit comments

Comments
 (0)