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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLKeygenElement.cpp

Issue 1476873002: Adding <keygen> Content Setting (Final) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Using top-level dURL. Created 5 years 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
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) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2010 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2010 Apple Inc. All rights reserved.
6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 96
97 HTMLFormControlElement::parseAttribute(name, value); 97 HTMLFormControlElement::parseAttribute(name, value);
98 } 98 }
99 99
100 void HTMLKeygenElement::appendToFormData(FormData& formData) 100 void HTMLKeygenElement::appendToFormData(FormData& formData)
101 { 101 {
102 // Only RSA is supported at this time. 102 // Only RSA is supported at this time.
103 const AtomicString& keyType = fastGetAttribute(keytypeAttr); 103 const AtomicString& keyType = fastGetAttribute(keytypeAttr);
104 if (!keyType.isNull() && !equalIgnoringCase(keyType, "rsa")) 104 if (!keyType.isNull() && !equalIgnoringCase(keyType, "rsa"))
105 return; 105 return;
106 String value = Platform::current()->signedPublicKeyAndChallengeString(shadow Select()->selectedIndex(), fastGetAttribute(challengeAttr), document().baseURL() ); 106 String value = Platform::current()->signedPublicKeyAndChallengeString(shadow Select()->selectedIndex(), fastGetAttribute(challengeAttr), document().baseURL() , document().topDocument().baseURL());
107 if (!value.isNull()) 107 if (!value.isNull())
108 formData.append(name(), value); 108 formData.append(name(), value);
109 } 109 }
110 110
111 const AtomicString& HTMLKeygenElement::formControlType() const 111 const AtomicString& HTMLKeygenElement::formControlType() const
112 { 112 {
113 DEFINE_STATIC_LOCAL(const AtomicString, keygen, ("keygen", AtomicString::Con structFromLiteral)); 113 DEFINE_STATIC_LOCAL(const AtomicString, keygen, ("keygen", AtomicString::Con structFromLiteral));
114 return keygen; 114 return keygen;
115 } 115 }
116 116
(...skipping 12 matching lines...) Expand all
129 { 129 {
130 return true; 130 return true;
131 } 131 }
132 132
133 bool HTMLKeygenElement::supportsAutofocus() const 133 bool HTMLKeygenElement::supportsAutofocus() const
134 { 134 {
135 return true; 135 return true;
136 } 136 }
137 137
138 } // namespace 138 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698