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) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All |
7 * rights reserved. | 7 * rights reserved. |
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
9 * (http://www.torchmobile.com/) | 9 * (http://www.torchmobile.com/) |
10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. |
(...skipping 5029 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5040 | 5040 |
5041 if (completed.whitespaceRemoved()) { | 5041 if (completed.whitespaceRemoved()) { |
5042 if (completed.protocolIsInHTTPFamily()) { | 5042 if (completed.protocolIsInHTTPFamily()) { |
5043 UseCounter::count(*this, | 5043 UseCounter::count(*this, |
5044 UseCounter::DocumentCompleteURLHTTPContainingNewline); | 5044 UseCounter::DocumentCompleteURLHTTPContainingNewline); |
5045 bool lessThan = url.contains('<'); | 5045 bool lessThan = url.contains('<'); |
5046 if (lessThan) { | 5046 if (lessThan) { |
5047 UseCounter::count( | 5047 UseCounter::count( |
5048 *this, | 5048 *this, |
5049 UseCounter::DocumentCompleteURLHTTPContainingNewlineAndLessThan); | 5049 UseCounter::DocumentCompleteURLHTTPContainingNewlineAndLessThan); |
5050 | |
5051 if (RuntimeEnabledFeatures::restrictCompleteURLCharacterSetEnabled()) | |
5052 return KURL(); | |
5053 } | 5050 } |
5054 } else { | 5051 } else { |
5055 UseCounter::count( | 5052 UseCounter::count( |
5056 *this, UseCounter::DocumentCompleteURLNonHTTPContainingNewline); | 5053 *this, UseCounter::DocumentCompleteURLNonHTTPContainingNewline); |
5057 } | 5054 } |
5058 } | 5055 } |
5059 return completed; | 5056 return completed; |
5060 } | 5057 } |
5061 | 5058 |
5062 KURL Document::completeURLWithOverride(const String& url, | 5059 KURL Document::completeURLWithOverride(const String& url, |
(...skipping 1555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6618 } | 6615 } |
6619 | 6616 |
6620 void showLiveDocumentInstances() { | 6617 void showLiveDocumentInstances() { |
6621 WeakDocumentSet& set = liveDocumentSet(); | 6618 WeakDocumentSet& set = liveDocumentSet(); |
6622 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6619 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
6623 for (blink::Document* document : set) | 6620 for (blink::Document* document : set) |
6624 fprintf(stderr, "- Document %p URL: %s\n", document, | 6621 fprintf(stderr, "- Document %p URL: %s\n", document, |
6625 document->url().getString().utf8().data()); | 6622 document->url().getString().utf8().data()); |
6626 } | 6623 } |
6627 #endif | 6624 #endif |
OLD | NEW |