CREDENTIAL: Refactor the Fetch integration to match the spec. |
||||
Issue descriptionImplement the bits and pieces at https://w3c.github.io/webappsec-credential-management/#monkey-patching
,
Apr 7 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/93a08a4b973b9cca6f7f3d182d9a13102755da2b commit 93a08a4b973b9cca6f7f3d182d9a13102755da2b Author: mkwst <mkwst@chromium.org> Date: Thu Apr 07 11:57:12 2016 Fetch: Fix 'body' processing in RequestInit. https://codereview.chromium.org/1844053003 broke 'RequestInit's ability to process a body on a request with 'credentials' set because it was bypassing 'body' processing if any 'credentials' property was set. It _should_ have been bypassing 'body' processing if and only if the 'credentials' attribute contained a 'PasswordCredential' object. This patch fixes the broken comparison. BUG=599597 Review URL: https://codereview.chromium.org/1862293003 Cr-Commit-Position: refs/heads/master@{#385716} [modify] https://crrev.com/93a08a4b973b9cca6f7f3d182d9a13102755da2b/third_party/WebKit/LayoutTests/http/tests/credentialmanager/passwordcredential-fetch.html [modify] https://crrev.com/93a08a4b973b9cca6f7f3d182d9a13102755da2b/third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/request.js [modify] https://crrev.com/93a08a4b973b9cca6f7f3d182d9a13102755da2b/third_party/WebKit/Source/modules/fetch/RequestInit.cpp
,
Apr 8 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/a40efde9a68ead4d71421854fda2409e1cc7b053 commit a40efde9a68ead4d71421854fda2409e1cc7b053 Author: mkwst <mkwst@chromium.org> Date: Fri Apr 08 21:51:55 2016 Fetch: 'password' credentials mode should include credentials. I am not going to admit how long it took me to find this bug. Because it was a long time and involved me installing Fiddler to verify that chrome://net-internals wasn't lying to me because OBVIOUSLY the data wasn't being posted to the server even though net-internals said it was and ugh. 'password' should act like 'include' (see #2 in [1]). We should include cookies in either mode. *sigh* [1]: https://w3c.github.io/webappsec-credential-management/#monkey-patching BUG=599597, 601923 R=horo@chromium.org, estark@chromium.org Review URL: https://codereview.chromium.org/1868253002 Cr-Commit-Position: refs/heads/master@{#386212} [modify] https://crrev.com/a40efde9a68ead4d71421854fda2409e1cc7b053/third_party/WebKit/LayoutTests/http/tests/credentialmanager/passwordcredential-fetch.html [add] https://crrev.com/a40efde9a68ead4d71421854fda2409e1cc7b053/third_party/WebKit/LayoutTests/http/tests/credentialmanager/resources/echo-cookies.php [modify] https://crrev.com/a40efde9a68ead4d71421854fda2409e1cc7b053/third_party/WebKit/Source/modules/fetch/FetchManager.cpp
,
Nov 18 2016
,
Feb 15 2017
Demo of retrieving the credentials client-side (because request body is visible to the SW): https://addicted-perfume.gomix.me/ (Probably need to be signed into Chrome for this to work.)
,
Nov 10 2017
,
Feb 18 2018
|
||||
►
Sign in to add a comment |
||||
Comment 1 by bugdroid1@chromium.org
, Apr 6 2016