[Webkit-unassigned] [Bug 90008] [Qt] Assertion reached when accessing mainFrame()->setHTML(""); from QWebPage
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Jul 1 16:10:42 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=90008
--- Comment #1 from Viv Rajkumar <viv.rajkumar at maidsafe.net> 2012-07-01 16:10:43 PST ---
Seems to be a problem with the ->get() function of HashMap.h & MSVC 2012
Does not seem to like key's with an uppercase character as the first character.
Managed to fix it by avoiding the get() function in TextEncodingRegistry.cpp
In:
static void addToTextCodecMap(const char* name, NewTextCodecFunction function, const void* additionalData)
Replaced:
const char* atomicName = textEncodingNameMap->get(name);
With:
const char* atomicName;
TextEncodingNameMap::iterator pos;
for (pos = textEncodingNameMap->begin(); pos != textEncodingNameMap->end(); ++pos) {
if (strcmp(pos->first, name) == 0) {
atomicName = pos->second;
break;
}
}
And In:
PassOwnPtr<TextCodec> newTextCodec(const TextEncoding& encoding)
Replaced:
TextCodecFactory factory = textCodecMap->get(encoding.name());
With:
TextCodecFactory factory;
TextCodecMap::iterator pos;
for (pos = textCodecMap->begin(); pos != textCodecMap->end(); ++pos) {
if (strcmp(pos->first, encoding.name()) == 0) {
factory = pos->second;
break;
}
}
--
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