Make DOMParser create documents with a context document set

Store a (weak) reference to the current context's document in DOMParser
objects when created, and use this in parseFromString() when creating
the parsed document.

This matches how parsed documents are created by XMLHttpRequest.

BUG=456624

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

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