Actions
Bug #1167
closedProblems with Firefox 10
Start date:
02/16/2012
Due date:
% Done:
0%
Estimated time:
Description
Hello,
I am using the WPaintedWidget of the WT Toolkit for my application with the HtmlCanvas method.
With Chrome and Firefox < 10 everything looks fine. But with Firefox 10 some texts in the canvas are missed.
I think the problem is in the meth WEnvironment::setUserAgent():
if (userAgent_.find("Firefox") != std::string::npos) {
if (userAgent_.find("Firefox/0") != std::string::npos)
agent_ = Firefox;
else if (userAgent_.find("Firefox/1") != std::string::npos)
agent_ = Firefox;
else if (userAgent_.find("Firefox/2") != std::string::npos)
agent_ = Firefox;
else {
if (userAgent_.find("Firefox/3.0") != std::string::npos)
agent_ = Firefox3_0;
else if (userAgent_.find("Firefox/3.1") != std::string::npos)
agent_ = Firefox3_1;
else if (userAgent_.find("Firefox/3.1b") != std::string::npos)
agent_ = Firefox3_1b;
else if (userAgent_.find("Firefox/3.5") != std::string::npos)
agent_ = Firefox3_5;
else if (userAgent_.find("Firefox/3.6") != std::string::npos)
agent_ = Firefox3_6;
else if (userAgent_.find("Firefox/4.") != std::string::npos)
agent_ = Firefox4_0;
else
agent_ = Firefox5_0;
}
}
This code does not distinguish between Firefox 1 and Firefox 10 and agent_ will be "Firefox". My application works fine, if i add a case for firefox 10 and set agent_ to
Firefox5_0.
Updated by Koen Deforche almost 13 years ago
- Status changed from New to Resolved
- Assignee set to Koen Deforche
- Target version set to 3.2.1
Hey,
Aaah this solves the mystery bug related to Canvas versus SVG. I've updated the code to check for "XXX Y." instead of "XXX Y" to detect version Y of browser XXX.
Regards,
koen
Actions