[Webkit-unassigned] [Bug 118417] [GTK] FrameLoaderClient: Refactor naked pointers to use smart pointers

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jul 8 01:23:43 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=118417





--- Comment #9 from Brian Holt <brian.holt at samsung.com>  2013-07-08 01:25:43 PST ---
(From update of attachment 206157)
View in context: https://bugs.webkit.org/attachment.cgi?id=206157&action=review

>> Source/WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp:1083
>> +    GRefPtr<GFile> errorFile = adoptGRef(g_file_new_for_uri(errorURI.get()));
> 
> I know the code was already that way, but I wondering why we need to convert the path to uri instead of using g_file_new_for_path() directly, if it's possible we could take advantage that you are changing this code to improve this too.

Good point, I wasn't really focusing on simplifying the logic but it makes sense to do so now.

>> Source/WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp:1091
>>              content = makeString("<html><body>", webError->message, "</body></html>");
> 
> You can probably do if (!g_file_load_contents(errorFile.get(), 0, &fileContent.outPtr(), 0, 0, 0)) and you don't need the local variable that is only used for this.

ok

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list