| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |