diff options
| author | Ilya Sukhar | 2010-10-20 23:42:44 -0700 | 
|---|---|---|
| committer | Ilya Sukhar | 2010-10-20 23:42:44 -0700 | 
| commit | f7a534efe5d4c77c462955674dd4678bc10f2012 (patch) | |
| tree | b7dbd24e23221a7e5856d860581099d6bac424c9 /vimiumFrontend.js | |
| parent | ac4858bfe66563d5295d87c89322e5f138f1d191 (diff) | |
| download | vimium-f7a534efe5d4c77c462955674dd4678bc10f2012.tar.bz2 | |
Implemented a workaround for the Chrome bug that broke the 'yy' command. Closes 206. Relevant chrome bug: http://code.google.com/p/chromium/issues/detail?id=55188
Diffstat (limited to 'vimiumFrontend.js')
| -rw-r--r-- | vimiumFrontend.js | 6 | 
1 files changed, 5 insertions, 1 deletions
diff --git a/vimiumFrontend.js b/vimiumFrontend.js index 19e2e0a2..8e5b8246 100644 --- a/vimiumFrontend.js +++ b/vimiumFrontend.js @@ -286,7 +286,11 @@ function toggleViewSource() {  }  function copyCurrentUrl() { -  getCurrentUrlHandlers.push(function (url) { Clipboard.copy(url); }); +  // TODO(ilya): When the following bug is fixed, revisit this approach of sending back to the background page +  // to copy. +  // http://code.google.com/p/chromium/issues/detail?id=55188 +  //getCurrentUrlHandlers.push(function (url) { Clipboard.copy(url); }); +  getCurrentUrlHandlers.push(function (url) { chrome.extension.sendRequest({ handler: "copyToClipboard", data: url }); });    // TODO(ilya): Convert to sendRequest.    var getCurrentUrlPort = chrome.extension.connect({ name: "getCurrentTabUrl" });  | 
