mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 12:05:15 +00:00
WSEventLoop: Treat invalid window types the same as unknown window types
And forcefully disconnect the client in both cases.
This commit is contained in:
parent
559a999852
commit
bee4544192
Notes:
sideshowbarker
2024-07-19 13:17:05 +09:00
Author: https://github.com/rburchell Commit: https://github.com/SerenityOS/serenity/commit/bee4544192a Pull-request: https://github.com/SerenityOS/serenity/pull/302
1 changed files with 1 additions and 4 deletions
|
@ -212,10 +212,7 @@ bool WSEventLoop::on_receive_from_client(int client_id, const WSAPI_ClientMessag
|
|||
ws_window_type = WSWindowType::Menubar;
|
||||
break;
|
||||
case WSAPI_WindowType::Invalid:
|
||||
break; // handled below
|
||||
}
|
||||
|
||||
if (ws_window_type == WSWindowType::Invalid) {
|
||||
default:
|
||||
dbgprintf("Unknown WSAPI_WindowType: %d\n", message.window.type);
|
||||
client.did_misbehave();
|
||||
return false;
|
||||
|
|
Loading…
Add table
Reference in a new issue