diff options
author | jeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-15 20:20:49 +0000 |
---|---|---|
committer | jeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-15 20:20:49 +0000 |
commit | ee2df648776cc000aded2b737608b805039cf5e8 (patch) | |
tree | a49a6c4aeee53e399f7751be1d9f39037aef109b /chrome/browser/cocoa/browser_window_controller.mm | |
parent | 084820e2662059decc9b3281b37c05ae55a13da0 (diff) | |
download | chromium_src-ee2df648776cc000aded2b737608b805039cf5e8.zip chromium_src-ee2df648776cc000aded2b737608b805039cf5e8.tar.gz chromium_src-ee2df648776cc000aded2b737608b805039cf5e8.tar.bz2 |
Fix http://crbug.com/13971: OSX: Text copied from Omnibox is styled
Provide a custom field editor for the location bar that overrides cut/copy to only write plain text to the clipboard.
BUG=13971
TEST=Type a URL in the Omnibox, select all and copy url, open Textedit and paste the url into it. Expected results: url should be unstyled previous behavior: styled text (as it appeared in the Omnibox was pasted)
Review URL: http://codereview.chromium.org/126075
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18425 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/browser_window_controller.mm')
-rw-r--r-- | chrome/browser/cocoa/browser_window_controller.mm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/browser_window_controller.mm b/chrome/browser/cocoa/browser_window_controller.mm index f363008..d071f7c 100644 --- a/chrome/browser/cocoa/browser_window_controller.mm +++ b/chrome/browser/cocoa/browser_window_controller.mm @@ -766,4 +766,10 @@ willPositionSheet:(NSWindow *)sheet browser_->ExecuteCommand(command); } +- (id)windowWillReturnFieldEditor:(NSWindow*)sender toObject:(id)obj { + // Ask the toolbar controller if it wants to return a custom field editor + // for the specific object. + return [toolbarController_ customFieldEditorForObject:obj]; +} + @end |