WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
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
Saturday, July 15, 2006 7:17:41 AM UTC
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+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Alexey Proskuryakov
Comment 1
Saturday, July 15, 2006 8:44:28 AM UTC
Worked in
r15418
.
Darin Adler
Comment 2
Saturday, July 15, 2006 2:28:34 PM UTC
The dimmed-out menu items use the selector changeTextEncoding: and have no target (so they use the responder chain).
Darin Adler
Comment 3
Saturday, July 15, 2006 2:40:37 PM UTC
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
Saturday, July 15, 2006 2:47:48 PM UTC
WebHTMLView.h is not a public header -- it's "private" == SPI. Or is that what you meant?
Darin Adler
Comment 5
Saturday, July 15, 2006 2:53:32 PM UTC
It's possible that this would be fixed by implementing the category -- we're currently declaring but not implementing it.
Darin Adler
Comment 6
Saturday, July 15, 2006 3:04:20 PM UTC
Created
attachment 9465
[details]
patch to actually implement the new categories
John Sullivan
Comment 7
Saturday, July 15, 2006 3:23:36 PM UTC
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
Saturday, July 15, 2006 4:01:40 PM UTC
<
rdar://problem/4632173
>
Darin Adler
Comment 9
Saturday, July 15, 2006 4:03:51 PM UTC
Committed revision 15452.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug