mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-17 04:11:16 +00:00
Added code to prevent navigating to the default page, except when in design mode.
This commit is contained in:
parent
14c46eb0dc
commit
62ab3d7d52
@ -125,9 +125,16 @@ LRESULT CMozillaBrowser::OnCreate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL&
|
||||
// Load browser helpers
|
||||
LoadBrowserHelpers();
|
||||
|
||||
// Browse to a default page
|
||||
USES_CONVERSION;
|
||||
Navigate(A2OLE(c_szDefaultPage.c_str()), NULL, NULL, NULL, NULL);
|
||||
// Browse to a default page - if in design mode
|
||||
BOOL bUserMode = FALSE;
|
||||
if (SUCCEEDED(GetAmbientUserMode(bUserMode)))
|
||||
{
|
||||
if (!bUserMode)
|
||||
{
|
||||
USES_CONVERSION;
|
||||
Navigate(A2OLE(c_szDefaultPage.c_str()), NULL, NULL, NULL, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user