[Extensions] Check if the render frame created the document for app bindings
commitd2d900cde9142f4b15bcdcb4172133e45684d87a
authorrdevlin.cronin <rdevlin.cronin@chromium.org>
Thu, 23 Jul 2015 03:16:58 +0000 (22 20:16 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 23 Jul 2015 03:17:39 +0000 (23 03:17 +0000)
treedca1b95cdfc6afb4e4e239ee928170db00905a9c
parent640a23333921600296c567bde26abe335036932c
[Extensions] Check if the render frame created the document for app bindings

In the switch to render frames, there's now a chance that the document element
has been created before the JS sets up the callback. Check if it's done before
trying to wait on it.

BUG=511042

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

Cr-Commit-Position: refs/heads/master@{#340037}
extensions/renderer/extension_frame_helper.cc
extensions/renderer/extension_frame_helper.h
extensions/renderer/render_frame_observer_natives.cc