Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1311)

Unified Diff: remoting/webapp/client_session.js

Issue 258863003: Don't throw an exception if onfullscreenchanged fires after the plugin is (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/client_session.js
diff --git a/remoting/webapp/client_session.js b/remoting/webapp/client_session.js
index c55b277a3820cbd0b50380a282247a1d9b8c2f17..22f67b96c0c9f86fdaffe5315c276cb71d2421ec 100644
--- a/remoting/webapp/client_session.js
+++ b/remoting/webapp/client_session.js
@@ -1309,9 +1309,11 @@ remoting.ClientSession.prototype.scroll_ = function(dx, dy) {
};
remoting.ClientSession.prototype.resetScroll_ = function() {
- var plugin = this.plugin_.element();
- plugin.style.marginTop = '0px';
- plugin.style.marginLeft = '0px';
+ if (this.plugin_) {
+ var plugin = this.plugin_.element();
+ plugin.style.marginTop = '0px';
+ plugin.style.marginLeft = '0px';
+ }
};
/**
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698