Bug 111448 - [GTK][WK2] Implement WebInspector::localizedStringsURL() to return the file URL of localizedStrings.js
Summary: [GTK][WK2] Implement WebInspector::localizedStringsURL() to return the file U...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Sudarsana Nagineni (babu)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-05 09:07 PST by Sudarsana Nagineni (babu)
Modified: 2013-03-06 14:28 PST (History)
6 users (show)

See Also:


Attachments
Patch (2.03 KB, patch)
2013-03-06 05:41 PST, Sudarsana Nagineni (babu)
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sudarsana Nagineni (babu) 2013-03-05 09:07:25 PST
Implement WebInspector::localizedStringsURL() method, so that it will prevent printing warnings about "Localized string not found" in the console when the Web Inspector opened.
Comment 1 Sudarsana Nagineni (babu) 2013-03-06 05:41:37 PST
Created attachment 191729 [details]
Patch
Comment 2 Martin Robinson 2013-03-06 07:35:48 PST
I wonder if this should be included in the GResources bundle. What do you think Carlos?
Comment 3 Carlos Garcia Campos 2013-03-06 07:54:58 PST
We don't have GResource bundle yet, no? my plan was to include all the inspector resources as a GResource in the library itself, to avoid the problems of resources not found when not installed and to avoid a lot of disk io.
Comment 4 Martin Robinson 2013-03-06 08:05:25 PST
(In reply to comment #3)
> We don't have GResource bundle yet, no? my plan was to include all the inspector resources as a GResource in the library itself, to avoid the problems of resources not found when not installed and to avoid a lot of disk io.

Sorry. I thought inspector resources were already stored as GResource data in the library itself. If not, this patch seems fine to me.
Comment 5 Carlos Garcia Campos 2013-03-06 08:11:42 PST
(In reply to comment #4)
> (In reply to comment #3)
> > We don't have GResource bundle yet, no? my plan was to include all the inspector resources as a GResource in the library itself, to avoid the problems of resources not found when not installed and to avoid a lot of disk io.
> 
> Sorry. I thought inspector resources were already stored as GResource data in the library itself. If not, this patch seems fine to me.

For now it's only a plan, the main problem is that we would need to bump glib (and probably libsoup) requirements, or do both, install the resources and compile them as a gresource, falling back to the installed files if the resources are not present in the library.
Comment 6 Martin Robinson 2013-03-06 08:17:33 PST
Maybe a WebKit2 owner could put the final stamp on this one?
Comment 7 Sudarsana Nagineni (babu) 2013-03-06 14:12:34 PST
Comment on attachment 191729 [details]
Patch

Thanks for reviewing.
Comment 8 WebKit Review Bot 2013-03-06 14:28:56 PST
Comment on attachment 191729 [details]
Patch

Clearing flags on attachment: 191729

Committed r144982: <http://trac.webkit.org/changeset/144982>
Comment 9 WebKit Review Bot 2013-03-06 14:28:59 PST
All reviewed patches have been landed.  Closing bug.