summaryrefslogtreecommitdiffstats
path: root/remoting/webapp/js_proto/dom_proto.js
diff options
context:
space:
mode:
authorkelvinp <kelvinp@chromium.org>2015-10-02 10:47:33 -0700
committerCommit bot <commit-bot@chromium.org>2015-10-02 17:48:16 +0000
commitc431b2d4a25c1ee727d2fd7b23198a7c3392d0c1 (patch)
treeb932562144bf6333933914498b89141c75f5cf44 /remoting/webapp/js_proto/dom_proto.js
parent909a0a52b2de576ecc83c7df1dd29072545ea13c (diff)
downloadchromium_src-c431b2d4a25c1ee727d2fd7b23198a7c3392d0c1.zip
chromium_src-c431b2d4a25c1ee727d2fd7b23198a7c3392d0c1.tar.gz
chromium_src-c431b2d4a25c1ee727d2fd7b23198a7c3392d0c1.tar.bz2
Detect plugin initialization failures with the error event.
This CL uses the "error" event to detect initialization error instead of a timeout. This avoid the problems of having a timeout that is too long to be meaningful or having a timeout that is too short to error out prematurely. BUG=535016 Review URL: https://codereview.chromium.org/1382033003 Cr-Commit-Position: refs/heads/master@{#352068}
Diffstat (limited to 'remoting/webapp/js_proto/dom_proto.js')
-rw-r--r--remoting/webapp/js_proto/dom_proto.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/remoting/webapp/js_proto/dom_proto.js b/remoting/webapp/js_proto/dom_proto.js
index de12493..c47c990 100644
--- a/remoting/webapp/js_proto/dom_proto.js
+++ b/remoting/webapp/js_proto/dom_proto.js
@@ -212,3 +212,11 @@ chrome.ConsoleMessageBrowserEvent.prototype.message;
/** @type {string} */
chrome.ConsoleMessageBrowserEvent.prototype.sourceId;
+
+/**
+ * The last error of the NaCL embed element.
+ * https://developer.chrome.com/native-client/devguide/coding/progress-events
+ *
+ * @type {string}
+ */
+HTMLEmbedElement.prototype.lastError;