breakpoint in either,
bool pageAboutToLoad (const String& newURL)
void pageFinishedLoading (const String& url)
to see what it’s doing after, maybe it’s trying to go to another page. Also, the browser is IE7 (which causes problems), so add in my special hack.
[code] void fixWindowsRegistry()
{
#ifdef JUCE_WINDOWS
// want to add a key of the form
// <binaryname>.exe DWORD 9999
// 9999 indicates IE9
String keypath = "HKEY_CURRENT_USER\\Software\\Microsoft\\Internet Explorer\\Main\\FeatureControl\\FEATURE_BROWSER_EMULATION\\";
// build the full path to the key
String key = keypath + JUCEApplication::getInstance()->getApplicationName() + ".exe";
// this is the value we want
unsigned int correctValue = 9999;
bool ok = false;
// lets look for it anyway
bool v = WindowsRegistry::valueExists(key);
if (v)
{
MemoryBlock data;
unsigned int sz = WindowsRegistry::getBinaryValue(key, data);
if (sz == 4) // DWORD
{
unsigned int val = *(unsigned int*)data.getData();
if (val >= correctValue)
ok = true;
}
}
if (!ok)
{
WindowsRegistry::setValue(key, correctValue);
}
#endif
}[/code]
horrible, yes i know 