Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Side by Side Diff: Source/WebCore/html/HTMLAnchorElement.cpp

Issue 12090050: Revert 138962 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1397/
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Source/WebCore/loader/DocumentLoader.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Simon Hausmann <hausmann@kde.org> 4 * (C) 2000 Simon Hausmann <hausmann@kde.org>
5 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv ed. 5 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv ed.
6 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) 6 * (C) 2006 Graham Dennis (graham.dennis@gmail.com)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 502
503 StringBuilder url; 503 StringBuilder url;
504 url.append(stripLeadingAndTrailingHTMLSpaces(fastGetAttribute(hrefAttr))); 504 url.append(stripLeadingAndTrailingHTMLSpaces(fastGetAttribute(hrefAttr)));
505 appendServerMapMousePosition(url, event); 505 appendServerMapMousePosition(url, event);
506 KURL kurl = document()->completeURL(url.toString()); 506 KURL kurl = document()->completeURL(url.toString());
507 507
508 #if ENABLE(DOWNLOAD_ATTRIBUTE) 508 #if ENABLE(DOWNLOAD_ATTRIBUTE)
509 if (hasAttribute(downloadAttr)) { 509 if (hasAttribute(downloadAttr)) {
510 ResourceRequest request(kurl); 510 ResourceRequest request(kurl);
511 511
512 // FIXME: Why are we not calling addExtraFieldsToMainResourceRequest() i f this check fails? It sets many important header fields.
513 if (!hasRel(RelationNoReferrer)) { 512 if (!hasRel(RelationNoReferrer)) {
514 String referrer = SecurityPolicy::generateReferrerHeader(document()- >referrerPolicy(), kurl, frame->loader()->outgoingReferrer()); 513 String referrer = SecurityPolicy::generateReferrerHeader(document()- >referrerPolicy(), kurl, frame->loader()->outgoingReferrer());
515 if (!referrer.isEmpty()) 514 if (!referrer.isEmpty())
516 request.setHTTPReferrer(referrer); 515 request.setHTTPReferrer(referrer);
517 frame->loader()->addExtraFieldsToMainResourceRequest(request); 516 frame->loader()->addExtraFieldsToMainResourceRequest(request);
518 } 517 }
519 518
520 frame->loader()->client()->startDownload(request, fastGetAttribute(downl oadAttr)); 519 frame->loader()->client()->startDownload(request, fastGetAttribute(downl oadAttr));
521 } else 520 } else
522 #endif 521 #endif
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
617 if (!element) { 616 if (!element) {
618 clearRootEditableElementForSelectionOnMouseDown(); 617 clearRootEditableElementForSelectionOnMouseDown();
619 return; 618 return;
620 } 619 }
621 620
622 rootEditableElementMap().set(this, element); 621 rootEditableElementMap().set(this, element);
623 m_hasRootEditableElementForSelectionOnMouseDown = true; 622 m_hasRootEditableElementForSelectionOnMouseDown = true;
624 } 623 }
625 624
626 } 625 }
OLDNEW
« no previous file with comments | « no previous file | Source/WebCore/loader/DocumentLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698