New issue
Advanced search Search tips

Issue 714889 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Feature



Sign in to add a comment

Disable script while taking offline MHTML snapshot

Project Member Reported by petewil@chromium.org, Apr 25 2017

Issue description

When offlining a page in the background, running Javascript may rearrange the DOM while the MHTML Archiver is walking the DOM.

We can avoid this by using the following Blink helper function while background offlining a page:
ScriptForbiddenScope forbidScript;

This should reduce the number of pages that fail to save offline.
 
Labels: -Type-Bug OS-All Type-Feature
Owner: jianli@chromium.org
Status: Assigned (was: Untriaged)
Ideally there would be script disabled for the whole page (all frames) so the MHTML generator has a stable frame tree and DOM tree in every frame. This needs a design doc.

Sign in to add a comment