[MHTML] Always succeed commit. [3/3]
[3/3] of: https://docs.google.com/document/d/13jcj_mATRxKakPEGy72YYHZBTBkkNrAHzaNIIjVsC8I/edit In theory, the MHTML file can be any arbitrary file. It can be malformed. In practise, this should be rare, because the majority of the archives are produced by Chrome for offline pages. We would like to make blink not to be able to fail to fail to commit the document. If the browser process initially classified it to be an MHTML document, it must be considered to be an MHTML document by blink. This patch do not clear the `archive_` on malformed documents. By doing it, it will continue to be considered as a MHTML document. For instance, it will be sandboxed (=> no javascript, => opaque origin) Along the way some minor improvement: - The console message has been moved after the commit, fixing https://crbug.com/967377 - Several rafactoring and comments have been added to help my own comprehension. Fixed:967377,1139283 Bug:967377,1139283 Bug: 1139283 Change-Id: I4a2b5f6ce3dfac40f0b36fa067c2965583cacbe2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2480083 Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org> Reviewed-by:Daniel Cheng <dcheng@chromium.org> Cr-Commit-Position: refs/heads/master@{#820183}
Showing
Please register or sign in to comment