Correctly move script element to a detached document.

If a script element ends up being moved over to a new document's tree,
its script loader is re-associated with that document's script runner
if the load is still pending. That association of script runner and
loader needs to reflect document association of the element itself,
otherwise completion of script loading and any later movement of the
element to another document will go wrong.

R=marja,jochen
BUG=443115

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

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