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 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 StringBuilder url; | 342 StringBuilder url; |
343 url.append(stripLeadingAndTrailingHTMLSpaces(fastGetAttribute(hrefAttr))); | 343 url.append(stripLeadingAndTrailingHTMLSpaces(fastGetAttribute(hrefAttr))); |
344 appendServerMapMousePosition(url, event); | 344 appendServerMapMousePosition(url, event); |
345 KURL completedURL = document().completeURL(url.toString()); | 345 KURL completedURL = document().completeURL(url.toString()); |
346 | 346 |
347 // Schedule the ping before the frame load. Prerender in Chrome may kill the
renderer as soon as the navigation is | 347 // Schedule the ping before the frame load. Prerender in Chrome may kill the
renderer as soon as the navigation is |
348 // sent out. | 348 // sent out. |
349 sendPings(completedURL); | 349 sendPings(completedURL); |
350 | 350 |
351 ResourceRequest request(completedURL); | 351 ResourceRequest request(completedURL); |
352 request.setUIStartTime(event->uiCreateTime()); | 352 request.setUIStartTime(event->platformTimeStamp()); |
353 request.setInputPerfMetricReportPolicy(InputToLoadPerfMetricReportPolicy::Re
portLink); | 353 request.setInputPerfMetricReportPolicy(InputToLoadPerfMetricReportPolicy::Re
portLink); |
354 | 354 |
355 ReferrerPolicy policy; | 355 ReferrerPolicy policy; |
356 if (RuntimeEnabledFeatures::referrerPolicyAttributeEnabled() && hasAttribute
(referrerpolicyAttr) && SecurityPolicy::referrerPolicyFromString(fastGetAttribut
e(referrerpolicyAttr), &policy) && !hasRel(RelationNoReferrer)) { | 356 if (RuntimeEnabledFeatures::referrerPolicyAttributeEnabled() && hasAttribute
(referrerpolicyAttr) && SecurityPolicy::referrerPolicyFromString(fastGetAttribut
e(referrerpolicyAttr), &policy) && !hasRel(RelationNoReferrer)) { |
357 request.setHTTPReferrer(SecurityPolicy::generateReferrer(policy, complet
edURL, document().outgoingReferrer())); | 357 request.setHTTPReferrer(SecurityPolicy::generateReferrer(policy, complet
edURL, document().outgoingReferrer())); |
358 } | 358 } |
359 | 359 |
360 if (hasAttribute(downloadAttr)) { | 360 if (hasAttribute(downloadAttr)) { |
361 request.setRequestContext(WebURLRequest::RequestContextDownload); | 361 request.setRequestContext(WebURLRequest::RequestContextDownload); |
362 bool isSameOrigin = completedURL.protocolIsData() || document().security
Origin()->canRequest(completedURL); | 362 bool isSameOrigin = completedURL.protocolIsData() || document().security
Origin()->canRequest(completedURL); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 Vector<String> argv; | 401 Vector<String> argv; |
402 argv.append("a"); | 402 argv.append("a"); |
403 argv.append(fastGetAttribute(hrefAttr)); | 403 argv.append(fastGetAttribute(hrefAttr)); |
404 activityLogger->logEvent("blinkAddElement", argv.size(), argv.data()
); | 404 activityLogger->logEvent("blinkAddElement", argv.size(), argv.data()
); |
405 } | 405 } |
406 } | 406 } |
407 return HTMLElement::insertedInto(insertionPoint); | 407 return HTMLElement::insertedInto(insertionPoint); |
408 } | 408 } |
409 | 409 |
410 } // namespace blink | 410 } // namespace blink |
OLD | NEW |