RESOLVED WONTFIX97176
Add setUsesEncodingDetector function in InternalSettings.
https://bugs.webkit.org/show_bug.cgi?id=97176
Summary Add setUsesEncodingDetector function in InternalSettings.
Kangil Han
Reported 2012-09-19 23:23:50 PDT
To enable encoding detector, a setting function would be needed.
Attachments
patch (4.99 KB, patch)
2012-09-19 23:28 PDT, Kangil Han
no flags
patch (5.02 KB, patch)
2012-09-20 01:41 PDT, Kangil Han
gtk-ews: commit-queue-
patch (5.03 KB, patch)
2012-09-20 04:45 PDT, Kangil Han
ap: review-
patch (5.02 KB, patch)
2012-09-20 19:08 PDT, Kangil Han
no flags
Kangil Han
Comment 1 2012-09-19 23:28:52 PDT
Kangil Han
Comment 2 2012-09-20 01:41:32 PDT
Created attachment 164860 [details] patch rebase!
kov's GTK+ EWS bot
Comment 3 2012-09-20 01:53:16 PDT
yosin
Comment 4 2012-09-20 01:55:43 PDT
Comment on attachment 164860 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=164860&action=review > Source/WebCore/testing/InternalSettings.cpp:662 > +void InternalSettings::setUsesEncodingDetector(bool enabled, ExceptionCode& ec) It is better to omit unused parameter "ec" to make some compilers not to issue unused parameter warning.
Kangil Han
Comment 5 2012-09-20 03:17:31 PDT
(In reply to comment #4) > (From update of attachment 164860 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=164860&action=review > > > Source/WebCore/testing/InternalSettings.cpp:662 > > +void InternalSettings::setUsesEncodingDetector(bool enabled, ExceptionCode& ec) > > It is better to omit unused parameter "ec" to make some compilers not to issue unused parameter warning. Actually, it is used in macro. :-) #define InternalSettingsGuardForSettings() \ if (!settings()) { \ ec = INVALID_ACCESS_ERR; \ return; \ }
Kangil Han
Comment 6 2012-09-20 04:45:43 PDT
Alexey Proskuryakov
Comment 7 2012-09-20 10:57:53 PDT
Comment on attachment 164890 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=164890&action=review > Source/WebCore/testing/InternalSettings.idl:85 > + void setUsesEncodingDetector(in boolean enabled) raises(DOMException); "Internal settings set uses encoding detector" is unnecessarily bad grammar. Please improve it. The function never raises exceptions, so it should not be marked as such, even if other functions in this file are.
Alexey Proskuryakov
Comment 8 2012-09-20 10:58:43 PDT
> The function never raises exceptions, so it should not be marked as such, even if other functions in this file are. It does, surprisingly, so please ignore this comment.
Darin Adler
Comment 9 2012-09-20 13:38:16 PDT
(In reply to comment #8) > > The function never raises exceptions, so it should not be marked as such, even if other functions in this file are. > > It does, surprisingly, so please ignore this comment. Huh? I don’t see any code that raises an exception.
Kangil Han
Comment 10 2012-09-20 17:49:01 PDT
(In reply to comment #9) > (In reply to comment #8) > > > The function never raises exceptions, so it should not be marked as such, even if other functions in this file are. > > > > It does, surprisingly, so please ignore this comment. > > Huh? I don’t see any code that raises an exception. I guess ap found 'INVALID_ACCESS_ERR' line below. :-) #define InternalSettingsGuardForSettings() \ if (!settings()) { \ ec = INVALID_ACCESS_ERR; \ return; \ }
Kangil Han
Comment 11 2012-09-20 19:08:51 PDT
Created attachment 165035 [details] patch I hope @ap would like updated function name. :-)
Kangil Han
Comment 12 2012-09-24 20:14:44 PDT
I would like to have review for landing this patch.
Andreas Kling
Comment 13 2014-02-05 10:57:10 PST
Comment on attachment 165035 [details] patch Clearing review flag on patches from before 2014. If this patch is still relevant, please reset the r? flag.
Sam Sneddon [:gsnedders]
Comment 14 2022-09-16 15:03:50 PDT
The setting itself landed in bug 16482; we already have a generic API to mutate settings, so I don't see what's needed (plus this is ancient!).
Note You need to log in before you can comment on or make changes to this bug.