RESOLVED FIXED 105885
[WK2] Rename SetFrameInViewSourceMode to SetMainFrameInViewSourceMode
https://bugs.webkit.org/show_bug.cgi?id=105885
Summary [WK2] Rename SetFrameInViewSourceMode to SetMainFrameInViewSourceMode
Carlos Garcia Campos
Reported 2012-12-31 06:04:44 PST
Right after landing r138593 I've noticed a side effect. Something as easy as: webkit_web_view_new () webkit_web_view_set_view_mode (SOURCE); webkit_web_view_load_uri (); doesn't work, and the page is loaded in web mode. the problem is that at that point the main frame proxy hasn't been created yet. Since what we want is actually to change only the main frame view suorce mode, we could rename SetFrameInViewSourceMode to SetMainFrameInViewSourceMode and we don't need a frameID anymore. The code is also more simple.
Attachments
Patch (7.06 KB, patch)
2012-12-31 06:08 PST, Carlos Garcia Campos
no flags
Fix style issues (7.03 KB, patch)
2012-12-31 06:15 PST, Carlos Garcia Campos
mrobinson: review+
Carlos Garcia Campos
Comment 1 2012-12-31 06:08:32 PST
WebKit Review Bot
Comment 2 2012-12-31 06:10:46 PST
Thanks for the patch. If this patch contains new public API please make sure it follows the guidelines for new WebKit2 GTK+ API. See http://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API
WebKit Review Bot
Comment 3 2012-12-31 06:11:10 PST
Attachment 180972 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebKit2/ChangeLog', u'Source/WebKit..." exit_code: 1 Source/WebKit2/WebProcess/WebPage/WebPage.h:794: The parameter name "inViewSourceMode" adds no information, so it should be removed. [readability/parameter_name] [5] Source/WebKit2/UIProcess/WebPageProxy.h:775: The parameter name "inViewSourceMode" adds no information, so it should be removed. [readability/parameter_name] [5] Total errors found: 2 in 7 files If any of these errors are false positives, please file a bug against check-webkit-style.
Carlos Garcia Campos
Comment 4 2012-12-31 06:15:10 PST
Created attachment 180973 [details] Fix style issues
Carlos Garcia Campos
Comment 5 2013-01-02 09:43:33 PST
Note You need to log in before you can comment on or make changes to this bug.