summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfeldstein@chromium.org <feldstein@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-26 23:54:02 +0000
committerfeldstein@chromium.org <feldstein@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-26 23:54:02 +0000
commit5607c4eb42ea5b5f153b7dfcbe0dddd08cf1aa4e (patch)
treec2a7e088daac028afde63d46b629e8c61d64f539
parentd866fb547c120ceb749d7b95f8d2d09950d90784 (diff)
downloadchromium_src-5607c4eb42ea5b5f153b7dfcbe0dddd08cf1aa4e.zip
chromium_src-5607c4eb42ea5b5f153b7dfcbe0dddd08cf1aa4e.tar.gz
chromium_src-5607c4eb42ea5b5f153b7dfcbe0dddd08cf1aa4e.tar.bz2
Fix an exception thrown when pasting in BMM
Since the handle(e) function is called by a separate function instead of as an event handler when pasting, it was trying to call preventDefault on a non-existant event and throwing an exception. Do we need to do something for paste to prevent the system beep? I'm not sure how to cause the beep to test it out. Review URL: http://codereview.chromium.org/1473001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42869 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/resources/bookmark_manager/main.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/resources/bookmark_manager/main.html b/chrome/browser/resources/bookmark_manager/main.html
index 3307c74..f36ca17 100644
--- a/chrome/browser/resources/bookmark_manager/main.html
+++ b/chrome/browser/resources/bookmark_manager/main.html
@@ -1527,7 +1527,7 @@ tree.addEventListener('command', handleCommand);
var command = $(id);
if (!command.disabled) {
command.execute();
- e.preventDefault(); // Prevent the system beep
+ if (e) e.preventDefault(); // Prevent the system beep
}
};
}