RESOLVED FIXED 9928
REGRESSION: Text Encoding menu inoperative (after gcc protocol build fix)
https://bugs.webkit.org/show_bug.cgi?id=9928
Summary REGRESSION: Text Encoding menu inoperative (after gcc protocol build fix)
Alexey Proskuryakov
Reported 2006-07-14 23:17:41 PDT
All options in the View->Text Encoding menu are always dimmed out. This is present in r15440, and is a very recent regression.
Attachments
patch to actually implement the new categories (54.16 KB, patch)
2006-07-15 07:04 PDT, Darin Adler
sullivan: review+
Alexey Proskuryakov
Comment 1 2006-07-15 00:44:28 PDT
Worked in r15418.
Darin Adler
Comment 2 2006-07-15 06:28:34 PDT
The dimmed-out menu items use the selector changeTextEncoding: and have no target (so they use the responder chain).
Darin Adler
Comment 3 2006-07-15 06:40:37 PDT
This happened because of the protocol changes that Tim Hatcher made. Since the WebDocumentText protocol is now appearing on a category of WebHTMLView rather than on WebHTMLView itself, the -[WebView supportsTextEncoding] method is returning NO. id documentView = [[[self mainFrame] frameView] documentView]; return [documentView conformsToProtocol:@protocol(WebDocumentText)] && [documentView supportsTextEncoding]; Apparently having a category that implements a protocol is not sufficient to make an object return YES to conformsToProtocol: -- a short term solution could be to add a special case for WebHTMLView. It's really unfortunate that WebHTMLView.h is a public header!
John Sullivan
Comment 4 2006-07-15 06:47:48 PDT
WebHTMLView.h is not a public header -- it's "private" == SPI. Or is that what you meant?
Darin Adler
Comment 5 2006-07-15 06:53:32 PDT
It's possible that this would be fixed by implementing the category -- we're currently declaring but not implementing it.
Darin Adler
Comment 6 2006-07-15 07:04:20 PDT
Created attachment 9465 [details] patch to actually implement the new categories
John Sullivan
Comment 7 2006-07-15 07:23:36 PDT
Comment on attachment 9465 [details] patch to actually implement the new categories Makes it tempting to fix that prepare-ChangeLog bug, eh?
Darin Adler
Comment 8 2006-07-15 08:01:40 PDT
Darin Adler
Comment 9 2006-07-15 08:03:51 PDT
Committed revision 15452.
Note You need to log in before you can comment on or make changes to this bug.