Bug 13380

Summary: REGRESSION (419-522+) The "Edit in TextMate" InputManager beeps once instead of working.
Product: WebKit Reporter: Michael Friedman <mfriedman>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: mrowe
Priority: P1    
Version: 523.x (Safari 3)   
Hardware: Mac (Intel)   
OS: OS X 10.4   
URL: http://www.google.com

Description Michael Friedman 2007-04-17 23:35:15 PDT
TextMate (http://www.macromates.com/) comes with an "Edit in TextMate" InputManager which you can use in Safari (or any other Cocoa app) to edit the contents of the current Cocoa text editor control in a new window in TextMate itself. After editing, you save the temporary file and the InputManager puts the new text into the original text editor control.

In Mac OS X 10.4.9's WebKit (build 419) this works great. In the nightly builds as of at least 16 April 2007, it does not. Instead of doing anything, it beeps once. No messages go to the console or the Terminal window where I started run-safari.

To reproduce this:
1. Install TextMate.
2. Install "Edit in TextMate" from TextMate (Bundles->TextMate->Install "Edit in TextMate"...).
3. run-safari &
4. Go to any page with a form, such as http://www.google.com/ , click in the field to put the cursor there, and then chose Edit->Edit in TextMate from the menu.

5. In Safari with 419 WebKit, this opens a new document in TextMate containing what was in that field. In WebKit 522+, it just beeps.
Comment 1 Mark Rowe (bdash) 2007-04-18 05:26:08 PDT
"Edit in TextMate" is an InputManager extension to Safari which is completely unsupported.  It hooks into WebKit internals which have changed since Safari 2.0, and likely needs to be updated to accommodate the new internal structure.  This is in no way a WebKit issue.