|
Lines 130-138
void AuthenticatorManager::makeCredential(const Vector<uint8_t>& hash, const Pub
a/Source/WebKit/UIProcess/WebAuthentication/AuthenticatorManager.cpp_sec1
|
| 130 |
|
130 |
|
| 131 |
if (m_pendingCompletionHandler) { |
131 |
if (m_pendingCompletionHandler) { |
| 132 |
m_pendingCompletionHandler(ExceptionData { NotAllowedError, "This request has been cancelled by a new request."_s }); |
132 |
m_pendingCompletionHandler(ExceptionData { NotAllowedError, "This request has been cancelled by a new request."_s }); |
| 133 |
clearState(); |
|
|
| 134 |
m_requestTimeOutTimer.stop(); |
133 |
m_requestTimeOutTimer.stop(); |
| 135 |
} |
134 |
} |
|
|
135 |
clearState(); |
| 136 |
|
136 |
|
| 137 |
// 1. Save request for async operations. |
137 |
// 1. Save request for async operations. |
| 138 |
m_pendingRequestData = { hash, true, options, { } }; |
138 |
m_pendingRequestData = { hash, true, options, { } }; |
|
Lines 149-157
void AuthenticatorManager::getAssertion(const Vector<uint8_t>& hash, const Publi
a/Source/WebKit/UIProcess/WebAuthentication/AuthenticatorManager.cpp_sec2
|
| 149 |
|
149 |
|
| 150 |
if (m_pendingCompletionHandler) { |
150 |
if (m_pendingCompletionHandler) { |
| 151 |
m_pendingCompletionHandler(ExceptionData { NotAllowedError, "This request has been cancelled by a new request."_s }); |
151 |
m_pendingCompletionHandler(ExceptionData { NotAllowedError, "This request has been cancelled by a new request."_s }); |
| 152 |
clearState(); |
|
|
| 153 |
m_requestTimeOutTimer.stop(); |
152 |
m_requestTimeOutTimer.stop(); |
| 154 |
} |
153 |
} |
|
|
154 |
clearState(); |
| 155 |
|
155 |
|
| 156 |
// 1. Save request for async operations. |
156 |
// 1. Save request for async operations. |
| 157 |
m_pendingRequestData = { hash, false, { }, options }; |
157 |
m_pendingRequestData = { hash, false, { }, options }; |
|
Lines 174-181
void AuthenticatorManager::clearStateAsync()
a/Source/WebKit/UIProcess/WebAuthentication/AuthenticatorManager.cpp_sec3
|
| 174 |
|
174 |
|
| 175 |
void AuthenticatorManager::clearState() |
175 |
void AuthenticatorManager::clearState() |
| 176 |
{ |
176 |
{ |
|
|
177 |
if (m_pendingCompletionHandler) |
| 178 |
return; |
| 177 |
m_pendingRequestData = { }; |
179 |
m_pendingRequestData = { }; |
| 178 |
ASSERT(!m_pendingCompletionHandler); |
|
|
| 179 |
m_services.clear(); |
180 |
m_services.clear(); |
| 180 |
m_authenticators.clear(); |
181 |
m_authenticators.clear(); |
| 181 |
} |
182 |
} |