зеркало из https://github.com/mozilla/gecko-dev.git
d6530bf9ad
The goal of this series of patches is to address the cases where sites don't use standard form submission events. The basic idea is inferring a form is submitted when the form is removed from the DOM tree, but with one premise: There must be a successful fetch or XHR request sent in the document before the form is removed. This is because websites usually send the credentials with a fetch or an XHR. After the request succeeds, the website removes the form. In summary, this patch does the following: 1. Add NotifyFetchOrXHRSuccess API in Document. The API sends a "DOMDocFetchSuccess" event to who registers the event listener. 2. When a fetch request or a XMLHttpReuqest completes and succeeds, call NotifyFetchOrXHRSuccess(). 3. LoginMangerChild listen to `DOMDocFetchSuccess` event only when there is an user interaction on the password field. Differential Revision: https://phabricator.services.mozilla.com/D106024 |
||
---|---|---|
.. | ||
tests | ||
BodyExtractor.cpp | ||
BodyExtractor.h | ||
ChannelInfo.cpp | ||
ChannelInfo.h | ||
ChannelInfo.ipdlh | ||
EmptyBody.cpp | ||
EmptyBody.h | ||
Fetch.cpp | ||
Fetch.h | ||
FetchDriver.cpp | ||
FetchDriver.h | ||
FetchIPCTypes.h | ||
FetchObserver.cpp | ||
FetchObserver.h | ||
FetchStreamReader.cpp | ||
FetchStreamReader.h | ||
FetchTypes.ipdlh | ||
FetchUtil.cpp | ||
FetchUtil.h | ||
Headers.cpp | ||
Headers.h | ||
InternalHeaders.cpp | ||
InternalHeaders.h | ||
InternalRequest.cpp | ||
InternalRequest.h | ||
InternalResponse.cpp | ||
InternalResponse.h | ||
Request.cpp | ||
Request.h | ||
Response.cpp | ||
Response.h | ||
moz.build |