Properly suspend HTMLDocumentParser

When an ExecutionContext was suspended, the HTMLDocumentParser could
still handle parsed chunks, incrementaly build the tree, trigger resource
loads, and build iframes with new clean ExecutionContexts which were not
suspended, therefore triggering ASSERT(m_suspended) inside SuspendableTimer.

Also moved some Document specific code from ScopedPageLoadDeferrer to
FrameLoader, where it logically feels better so it's more related to the
defersLoading state handling, and so it makes the Page to FrameHost
migration easier.

BUG=418116

Review URL: https://codereview.chromium.org/625583002

git-svn-id: svn://svn.chromium.org/blink/trunk@186256 bbb929c8-8fbe-4397-9dbb-9b2b20218538
8 files changed
tree: 1d194abbc4eb5b63975aeb3c02945bbe7b36786e
  1. third_party/