Bug 106234 - Setting font style crashes wxWebKit with jQuery Mobile
Summary: Setting font style crashes wxWebKit with jQuery Mobile
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit wx (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows 7
: P1 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-07 10:58 PST by George Henne
Modified: 2023-02-03 08:37 PST (History)
1 user (show)

See Also:


Attachments
Python + HTML code (818 bytes, application/x-zip-compressed)
2013-01-07 10:58 PST, George Henne
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description George Henne 2013-01-07 10:58:59 PST
Created attachment 181534 [details]
Python + HTML code

Python:

import wx
import wx.webview

app = wx.App(redirect=False)
frame = wx.webview.WebBrowserShell('wxWebKit Test')
frame.Show()
app.MainLoop()

HTML:

<!DOCTYPE HTML>
<html>
<head>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css" />
<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
<script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script>

<style type="text/css"> 
// the name of the font or its existence does not matter
@font-face {font-family: xxx; src: url('xxx.ttf');}
</style>
</head>

<body>
<input type=text style="font-family:xxx;" value="This is xxx Font." />
</body>
</html>
Comment 1 George Henne 2013-01-07 11:14:14 PST
The HTML can actually be made shorter - only jQuery is needed:

<!DOCTYPE HTML>
<html>
<head>

<style type="text/css"> 
@font-face {font-family: xxx; src: url('xxx.ttf');}
</style>
</head>

<body>
<input type=text style="font-family:xxx;" value="This is xxx Font." />
</body>
</html>
Comment 2 George Henne 2013-01-07 11:23:11 PST
Sorry - too enthusiastic with my deletions!

<!DOCTYPE HTML>
<html>
<head>
<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>

<style type="text/css"> 
// the name of the font or its existence does not matter
@font-face {font-family: xxx; src: url('xxx.ttf');}
</style>
</head>

<body>
<input type=text style="font-family:xxx;" value="This is xxx Font." />
</body>
</html>
Comment 3 Alexey Proskuryakov 2023-02-03 08:37:30 PST
Mass closing remaining WebKit wx bugs, as this port is long gone.