@@ -12092,7 +12092,7 @@ index d996feb64e02d7399f2ed0b34d3d0dd03133f824..4ab1fa69437ed5a11a5357a331cb7e1c
12092
12092
CommandLineOptions()
12093
12093
#if ENABLE(WEBKIT)
12094
12094
diff --git a/Tools/MiniBrowser/win/MainWindow.cpp b/Tools/MiniBrowser/win/MainWindow.cpp
12095
- index 08131e61107bc4163c4fb1e9a65ee5a1ecda6b04..57d3b3662c4f31dba750a340b628744d505f1161 100644
12095
+ index 08131e61107bc4163c4fb1e9a65ee5a1ecda6b04..bfe54fa7c027b75c470ad2da4c5f83f2250cbb7e 100644
12096
12096
--- a/Tools/MiniBrowser/win/MainWindow.cpp
12097
12097
+++ b/Tools/MiniBrowser/win/MainWindow.cpp
12098
12098
@@ -102,7 +102,10 @@ bool MainWindow::isInstance(HWND hwnd)
@@ -12179,7 +12179,17 @@ index 08131e61107bc4163c4fb1e9a65ee5a1ecda6b04..57d3b3662c4f31dba750a340b628744d
12179
12179
12180
12180
if (m_browserWindow->usesLayeredWebView() || !m_browserWindow->hwnd())
12181
12181
return;
12182
- @@ -309,17 +321,15 @@ LRESULT CALLBACK MainWindow::WndProc(HWND hWnd, UINT message, WPARAM wParam, LPA
12182
+ @@ -254,6 +266,9 @@ LRESULT CALLBACK MainWindow::WndProc(HWND hWnd, UINT message, WPARAM wParam, LPA
12183
+ {
12184
+ LRESULT result = 0;
12185
+ RefPtr<MainWindow> thisWindow = reinterpret_cast<MainWindow*>(GetWindowLongPtr(hWnd, GWLP_USERDATA));
12186
+ + if (!thisWindow && message != WM_CREATE)
12187
+ + return DefWindowProc(hWnd, message, wParam, lParam);
12188
+ +
12189
+ switch (message) {
12190
+ case WM_ACTIVATE:
12191
+ switch (LOWORD(wParam)) {
12192
+ @@ -309,17 +324,15 @@ LRESULT CALLBACK MainWindow::WndProc(HWND hWnd, UINT message, WPARAM wParam, LPA
12183
12193
break;
12184
12194
#if ENABLE(WEBKIT)
12185
12195
case IDM_NEW_WEBKIT_WINDOW: {
@@ -12199,7 +12209,7 @@ index 08131e61107bc4163c4fb1e9a65ee5a1ecda6b04..57d3b3662c4f31dba750a340b628744d
12199
12209
break;
12200
12210
}
12201
12211
#endif
12202
- @@ -443,6 +453 ,9 @@ void MainWindow::setDefaultURLToCurrentURL()
12212
+ @@ -443,6 +456 ,9 @@ void MainWindow::setDefaultURLToCurrentURL()
12203
12213
12204
12214
bool MainWindow::toggleMenuItem(UINT menuID)
12205
12215
{
@@ -12209,7 +12219,7 @@ index 08131e61107bc4163c4fb1e9a65ee5a1ecda6b04..57d3b3662c4f31dba750a340b628744d
12209
12219
HMENU menu = ::GetMenu(hwnd());
12210
12220
12211
12221
switch (menuID) {
12212
- @@ -519,6 +532 ,8 @@ INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
12222
+ @@ -519,6 +535 ,8 @@ INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
12213
12223
INT_PTR CALLBACK MainWindow::cachesDialogProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
12214
12224
{
12215
12225
MainWindow& thisWindow = *reinterpret_cast<MainWindow*>(GetWindowLongPtr(hDlg, DWLP_USER));
@@ -12218,7 +12228,7 @@ index 08131e61107bc4163c4fb1e9a65ee5a1ecda6b04..57d3b3662c4f31dba750a340b628744d
12218
12228
switch (message) {
12219
12229
case WM_INITDIALOG:
12220
12230
SetWindowLongPtr(hDlg, DWLP_USER, lParam);
12221
- @@ -549,6 +564 ,8 @@ INT_PTR CALLBACK MainWindow::cachesDialogProc(HWND hDlg, UINT message, WPARAM wP
12231
+ @@ -549,6 +567 ,8 @@ INT_PTR CALLBACK MainWindow::cachesDialogProc(HWND hDlg, UINT message, WPARAM wP
12222
12232
INT_PTR CALLBACK MainWindow::customUserAgentDialogProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
12223
12233
{
12224
12234
MainWindow& thisWindow = *reinterpret_cast<MainWindow*>(GetWindowLongPtr(hDlg, DWLP_USER));
@@ -12227,7 +12237,7 @@ index 08131e61107bc4163c4fb1e9a65ee5a1ecda6b04..57d3b3662c4f31dba750a340b628744d
12227
12237
switch (message) {
12228
12238
case WM_INITDIALOG: {
12229
12239
MainWindow& thisWindow = *reinterpret_cast<MainWindow*>(lParam);
12230
- @@ -594,27 +611 ,26 @@ void MainWindow::loadURL(std::wstring url)
12240
+ @@ -594,27 +614 ,26 @@ void MainWindow::loadURL(std::wstring url)
12231
12241
if (SUCCEEDED(::UrlCreateFromPath(url.c_str(), fileURL, &fileURLLength, 0)))
12232
12242
url = fileURL;
12233
12243
}
@@ -12261,7 +12271,7 @@ index 08131e61107bc4163c4fb1e9a65ee5a1ecda6b04..57d3b3662c4f31dba750a340b628744d
12261
12271
wchar_t url[INTERNET_MAX_URL_LENGTH];
12262
12272
GetWindowText(m_hURLBarWnd, url, INTERNET_MAX_URL_LENGTH);
12263
12273
loadURL(url);
12264
- @@ -622,6 +638 ,8 @@ void MainWindow::onURLBarEnter()
12274
+ @@ -622,6 +641 ,8 @@ void MainWindow::onURLBarEnter()
12265
12275
12266
12276
void MainWindow::updateDeviceScaleFactor()
12267
12277
{
@@ -12270,7 +12280,7 @@ index 08131e61107bc4163c4fb1e9a65ee5a1ecda6b04..57d3b3662c4f31dba750a340b628744d
12270
12280
if (m_hURLBarFont)
12271
12281
::DeleteObject(m_hURLBarFont);
12272
12282
12273
- @@ -638,6 +656 ,8 @@ void MainWindow::updateDeviceScaleFactor()
12283
+ @@ -638,6 +659 ,8 @@ void MainWindow::updateDeviceScaleFactor()
12274
12284
12275
12285
void MainWindow::progressChanged(double progress)
12276
12286
{
@@ -12279,7 +12289,7 @@ index 08131e61107bc4163c4fb1e9a65ee5a1ecda6b04..57d3b3662c4f31dba750a340b628744d
12279
12289
std::wostringstream text;
12280
12290
text << static_cast<int>(progress * 100) << L'%';
12281
12291
SetWindowText(m_hProgressIndicator, text.str().c_str());
12282
- @@ -645,10 +665 ,14 @@ void MainWindow::progressChanged(double progress)
12292
+ @@ -645,10 +668 ,14 @@ void MainWindow::progressChanged(double progress)
12283
12293
12284
12294
void MainWindow::progressFinished()
12285
12295
{
0 commit comments