Bug 177742 - [GTK] Do not hardcode font family in served remote inspector HTML snippets
Summary: [GTK] Do not hardcode font family in served remote inspector HTML snippets
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Adrian Perez
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-10-02 06:44 PDT by Adrian Perez
Modified: 2017-10-02 15:01 PDT (History)
8 users (show)

See Also:


Attachments
Patch (2.28 KB, patch)
2017-10-02 06:49 PDT, Adrian Perez
no flags Details | Formatted Diff | Diff
Patch for landing (2.26 KB, patch)
2017-10-02 14:38 PDT, Adrian Perez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian Perez 2017-10-02 06:44:04 PDT
There's a string with a HTML+CSS snippet in
Source/WebKit/UIProcess/API/gtk/WebKitRemoteInspectorProtocolHandler.cpp
which contains a hardcoded font. It seems like it would be a good idea
to not hardcode this.
Comment 1 Adrian Perez 2017-10-02 06:45:55 PDT
This could be done in a similar way as this patch in Epiphany:

  https://bugzilla.gnome.org/show_bug.cgi?id=783489

It uses “font:menu” to obtain the system font, which is supported
since CSS 2. I'll be sending a patch.
Comment 2 Adrian Perez 2017-10-02 06:49:01 PDT
Created attachment 322373 [details]
Patch
Comment 3 Build Bot 2017-10-02 06:51:47 PDT
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
Comment 4 Adrian Perez 2017-10-02 14:38:24 PDT
Created attachment 322441 [details]
Patch for landing
Comment 5 WebKit Commit Bot 2017-10-02 15:01:01 PDT
Comment on attachment 322441 [details]
Patch for landing

Clearing flags on attachment: 322441

Committed r222749: <http://trac.webkit.org/changeset/222749>
Comment 6 WebKit Commit Bot 2017-10-02 15:01:03 PDT
All reviewed patches have been landed.  Closing bug.
Comment 7 Radar WebKit Bug Importer 2017-10-02 15:01:50 PDT
<rdar://problem/34777611>