gecko-dev/dom/fetch
Dimi Lee d6530bf9ad Bug 1166995 - P1. Notify DOMDocFetchSuccess when a fetch or XHR request completes successfully r=smaug,sfoster
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
2021-03-16 09:15:19 +00:00
..
tests
BodyExtractor.cpp
BodyExtractor.h
ChannelInfo.cpp
ChannelInfo.h
ChannelInfo.ipdlh
EmptyBody.cpp
EmptyBody.h
Fetch.cpp Bug 1166995 - P1. Notify DOMDocFetchSuccess when a fetch or XHR request completes successfully r=smaug,sfoster 2021-03-16 09:15:19 +00:00
Fetch.h
FetchDriver.cpp Bug 1685570 Backed out changeset 92d71744323a r=necko-reviewers,kershaw 2021-03-10 15:15:24 +00:00
FetchDriver.h
FetchIPCTypes.h
FetchObserver.cpp
FetchObserver.h
FetchStreamReader.cpp Bug 1676361 - Move AutoEntryScript to a separate header file to avoid pulling in GeckoProfiler.h everywhere. r=mccr8 2021-03-05 15:29:49 +00:00
FetchStreamReader.h
FetchTypes.ipdlh
FetchUtil.cpp
FetchUtil.h
Headers.cpp
Headers.h
InternalHeaders.cpp Bug 1460299 - Add content-length as a CORS-safelisted response header. r=valentin,baku 2021-02-15 12:51:33 +00:00
InternalHeaders.h
InternalRequest.cpp
InternalRequest.h
InternalResponse.cpp
InternalResponse.h
Request.cpp
Request.h
Response.cpp
Response.h
moz.build