LadybirdBrowser / ladybird

Truly independent web browser
https://ladybird.org
BSD 2-Clause "Simplified" License
22.8k stars 1.01k forks source link

Telegram Web does not load #2679

Open shlyakpavel opened 1 day ago

shlyakpavel commented 1 day ago

Summary

When I try messaging my friends on Telegram, Ladybird does not load the web version

Operating system

macOS

Steps to reproduce

  1. Open Ladybird
  2. Navigate to https://web.telegram.org
  3. Observe

Expected behavior

Telegram web at least displays login page

Actual behavior

There's no login page or anything

URL for a reduced test case

https://web.telegram.org/

HTML/SVG/etc. source for a reduced test case

N/A

Log output and (if possible) backtrace

ninja: Entering directory `/Users/pavel/Develop/ladybird/Build/release'
[0/2] Re-checking globbed directories...
[1016/1017] Linking CXX executable bin/Ladybird.app/Contents/MacOS/Ladybird
INFO | fixing executable '/Users/pavel/Develop/ladybird/Build/release/bin/Ladybird.app/Contents/MacOS/Ladybird'
INFO | fixing plugins
INFO | macdeployqtfix terminated with success
Ladybird PID file '/Users/pavel/Library/Application Support/Ladybird.pid' exists with PID 29975, but process cannot be found
2024-12-01 16:36:08.247 Ladybird[34407:10464466] +[IMKClient subclass]: chose IMKClient_Modern
2024-12-01 16:36:08.361 Ladybird[34407:10464466] +[IMKInputSession subclass]: chose IMKInputSession_Modern
745755.775 WebContent(34410): FIXME: Implement 'Content-Security-Policy' http-equiv state
745755.871 WebContent(34410): ImageDecoderClient: Failed to decode image with ID 1: Decoding failed: Could not find suitable image decoder plugin for data
745756.077 WebContent(34410): No property (from 5 properties) matched Token: Comma
745756.077 WebContent(34410):     animation-iteration-count
745756.077 WebContent(34410):     animation-direction
745756.077 WebContent(34410):     animation-play-state
745756.077 WebContent(34410):     animation-delay
745756.077 WebContent(34410):     animation-fill-mode
745756.077 WebContent(34410): No property (from 5 properties) matched Token: Comma
745756.077 WebContent(34410):     animation-iteration-count
745756.077 WebContent(34410):     animation-direction
745756.077 WebContent(34410):     animation-play-state
745756.077 WebContent(34410):     animation-delay
745756.077 WebContent(34410):     animation-fill-mode
745756.077 WebContent(34410): No property (from 5 properties) matched Token: Comma
745756.077 WebContent(34410):     animation-iteration-count
745756.077 WebContent(34410):     animation-direction
745756.077 WebContent(34410):     animation-play-state
745756.077 WebContent(34410):     animation-delay
745756.077 WebContent(34410):     animation-fill-mode
745756.216 WebContent(34410): FIXME: Unimplemented IDL interface: 'CanvasRenderingContext2DPrototype.filter'
745756.240 WebContent(34410): FIXME: Unimplemented IDL interface: 'IDBDatabasePrototype.createObjectStore'
745756.240 WebContent(34410): (js error) [TypeError] undefined is not a function (evaluated from '<object>.createObjectStore')
745756.240 WebContent(34410): Unhandled JavaScript exception: [TypeError] undefined is not a function (evaluated from '<object>.createObjectStore')
745756.240 WebContent(34410):     at https://web.telegram.org/a/main.c0df3ec5150284f32e4f.js:1:314316
    at <unknown>
    at <unknown>

745756.240 WebContent(34410): FIXME: Unimplemented IDL interface: 'IDBDatabasePrototype.transaction'
745756.240 WebContent(34410): (js error) [TypeError] undefined is not a function (evaluated from '<object>.createObjectStore')
745756.240 WebContent(34410): Unhandled JavaScript exception: [TypeError] undefined is not a function (evaluated from '<object>.createObjectStore')
745756.240 WebContent(34410):     at https://web.telegram.org/a/main.c0df3ec5150284f32e4f.js:1:314316
    at <unknown>
    at <unknown>

745756.243 WebContent(34410): (js error) [TypeError] undefined is not a function (evaluated from 'r.transaction')
745756.483 WebContent(34410): FIXME: Unimplemented IDL interface: 'ServiceWorkerContainerPrototype.controller'
745756.483 WebContent(34410): FIXME: Unimplemented IDL interface: 'ServiceWorkerContainerPrototype.getRegistrations'

Screenshots or screen recordings

image

Build flags or config settings

No response

Contribute a patch?

alissonlauffer commented 18 hours ago

FWIW, Telegram has two official web clients (don't ask me why), A and K, and it randomly picks one when opening. Both use completely different codebases, and give different results. This one was the A version. The K version seems to crash the whole browser.

Log output from the K version:

11580.964 WebContent(117137): FIXME: Unimplemented Navigator.maxTouchPoints
11580.964 WebContent(117137): FIXME: Unimplemented Navigator.maxTouchPoints
11580.971 WebContent(117137): FIXME: Unimplemented IDL interface: 'CanvasRenderingContext2DPrototype.filter'
11580.978 Ladybird(117118): Destroying Thread ""(137132501497536) while it is still running undetached!
11580.989 WebContent(117137): FIXME: Unimplemented IDL interface: 'IDBDatabasePrototype.createObjectStore'
11580.989 WebContent(117137): Unhandled JavaScript exception: [TypeError] undefined is not a function (evaluated from 'o.createObjectStore')
11580.989 WebContent(117137):     at n
    at index-BWSv4yyN.js:2:19270
    at <unknown>
    at index-BWSv4yyN.js:2:19224
    at <unknown>
    at <unknown>

11581.000 WebContent(117137): FIXME: Unimplemented IDL interface: 'IDBDatabasePrototype.transaction'
11581.000 WebContent(117137): (js error) "[AS]: get error:" [TypeError] undefined is not a function (evaluated from 'o.transaction') [ "langPack", "allDialogsLoaded", "pinnedOrders", "contactsListCachedTime", "updates", "filtersArr", "maxSeenMsgId", "stateCreatedTime", "recentEmoji", "recentCustomEmoji", "topPeersCache", "recentSearch", "version", "build", "authState", "hiddenPinnedMessages", "settings", "playbackParams", "keepSigned", "chatContextMenuHintWasShown", "hideChatJoinRequests", "stateId", "notifySettings", "confirmedWebViews", "seenTooltips", "hiddenSimilarChannels", "appConfig", "accountThemes", "translations", "user_auth" ] "session"
11581.006 WebContent(117137): (js log) "Supported image mime types" [Set] { "image/jpeg", "image/png", "image/bmp", "image/jxl", "image/avif" }
11581.201 WebContent(117137): No property (from 5 properties) matched Token: Comma
11581.201 WebContent(117137):     animation-iteration-count
11581.201 WebContent(117137):     animation-direction
11581.201 WebContent(117137):     animation-play-state
11581.201 WebContent(117137):     animation-delay
11581.201 WebContent(117137):     animation-fill-mode
11581.201 WebContent(117137): No property (from 5 properties) matched Token: Comma
11581.201 WebContent(117137):     animation-iteration-count
11581.201 WebContent(117137):     animation-direction
11581.201 WebContent(117137):     animation-play-state
11581.201 WebContent(117137):     animation-delay
11581.201 WebContent(117137):     animation-fill-mode
11581.201 WebContent(117137): No property (from 5 properties) matched Token: Comma
11581.201 WebContent(117137):     animation-iteration-count
11581.201 WebContent(117137):     animation-direction
11581.201 WebContent(117137):     animation-play-state
11581.201 WebContent(117137):     animation-delay
11581.201 WebContent(117137):     animation-fill-mode
11581.201 WebContent(117137): No property (from 5 properties) matched Token: Comma
11581.201 WebContent(117137):     animation-iteration-count
11581.201 WebContent(117137):     animation-direction
11581.201 WebContent(117137):     animation-play-state
11581.201 WebContent(117137):     animation-delay
11581.201 WebContent(117137):     animation-fill-mode
11581.201 WebContent(117137): No property (from 5 properties) matched Token: Comma
11581.201 WebContent(117137):     animation-iteration-count
11581.201 WebContent(117137):     animation-direction
11581.201 WebContent(117137):     animation-play-state
11581.201 WebContent(117137):     animation-delay
11581.201 WebContent(117137):     animation-fill-mode
11581.402 WebContent(117137): (js log) "got state, time:" 418.90283203125
11581.402 WebContent(117137): (js log) "Will mount auth page:" "authStateSignQr" 1733088412.426
11581.512 WebContent(117137): (js error) "[0.547]" "[MP-MTPROTO]" "SW registration failed!" [InternalError] TODO(Run Service Worker is not implemented in LibJS)
11582.053 WebWorker(117202): (js log) "CryptoWorker start"
11582.561 RequestServer(117129): on_data_received: write failed: write: Broken pipe (errno=32)
VERIFICATION FAILED: false at /home/alisson/Projects/ladybird/Services/RequestServer/ConnectionFromClient.cpp:166
/home/alisson/Projects/ladybird/Build/release/lib/liblagom-ak.so.0(ak_verification_failed+0x81) [0x71074a921571]
/home/alisson/Projects/ladybird/Build/release/libexec/RequestServer(+0x20984) [0x5c2630c39984]
/home/alisson/Projects/ladybird/Build/release/vcpkg_installed/x64-linux/lib/libcurl.so.4(+0x30aed) [0x71074a853aed]
/home/alisson/Projects/ladybird/Build/release/vcpkg_installed/x64-linux/lib/libcurl.so.4(+0x30f5c) [0x71074a853f5c]
/home/alisson/Projects/ladybird/Build/release/vcpkg_installed/x64-linux/lib/libcurl.so.4(+0x31078) [0x71074a854078]
/home/alisson/Projects/ladybird/Build/release/vcpkg_installed/x64-linux/lib/libcurl.so.4(+0x2923a) [0x71074a84c23a]
/home/alisson/Projects/ladybird/Build/release/vcpkg_installed/x64-linux/lib/libcurl.so.4(+0x76f96) [0x71074a899f96]
/home/alisson/Projects/ladybird/Build/release/vcpkg_installed/x64-linux/lib/libcurl.so.4(+0x785a8) [0x71074a89b5a8]
/home/alisson/Projects/ladybird/Build/release/vcpkg_installed/x64-linux/lib/libcurl.so.4(+0x8dd4b) [0x71074a8b0d4b]
/home/alisson/Projects/ladybird/Build/release/vcpkg_installed/x64-linux/lib/libcurl.so.4(+0x51bb2) [0x71074a874bb2]
/home/alisson/Projects/ladybird/Build/release/vcpkg_installed/x64-linux/lib/libnghttp2.so.14(nghttp2_session_mem_recv2+0xeba) [0x71074724918a]
/home/alisson/Projects/ladybird/Build/release/vcpkg_installed/x64-linux/lib/libcurl.so.4(+0x4ebd9) [0x71074a871bd9]
/home/alisson/Projects/ladybird/Build/release/vcpkg_installed/x64-linux/lib/libcurl.so.4(+0x4fd90) [0x71074a872d90]
/home/alisson/Projects/ladybird/Build/release/vcpkg_installed/x64-linux/lib/libcurl.so.4(+0x535d0) [0x71074a8765d0]
/home/alisson/Projects/ladybird/Build/release/vcpkg_installed/x64-linux/lib/libcurl.so.4(+0x22ef2) [0x71074a845ef2]
/home/alisson/Projects/ladybird/Build/release/vcpkg_installed/x64-linux/lib/libcurl.so.4(+0x8e19d) [0x71074a8b119d]
/home/alisson/Projects/ladybird/Build/release/vcpkg_installed/x64-linux/lib/libcurl.so.4(+0x6b3db) [0x71074a88e3db]
/home/alisson/Projects/ladybird/Build/release/vcpkg_installed/x64-linux/lib/libcurl.so.4(+0x6c057) [0x71074a88f057]
/home/alisson/Projects/ladybird/Build/release/vcpkg_installed/x64-linux/lib/libcurl.so.4(+0x6d9b8) [0x71074a8909b8]
/home/alisson/Projects/ladybird/Build/release/libexec/RequestServer(+0x20f54) [0x5c2630c39f54]
/home/alisson/Projects/ladybird/Build/release/lib/liblagom-core.so.0 Core::Notifier::event(Core::Event&) 0x5d) [0x71074ab704cd]
/home/alisson/Projects/ladybird/Build/release/lib/liblagom-core.so.0 Core::EventReceiver::dispatch_event(Core::Event&, Core::EventReceiver*) 0x51) [0x71074ab686e1]
/home/alisson/Projects/ladybird/Build/release/lib/liblagom-core.so.0 Core::ThreadEventQueue::process() 0x1d4) [0x71074ab7bd34]
/home/alisson/Projects/ladybird/Build/release/lib/liblagom-core.so.0 Core::EventLoopImplementationUnix::exec() 0x2c) [0x71074ab8201c]
/home/alisson/Projects/ladybird/Build/release/lib/liblagom-core.so.0 Core::EventLoop::exec() 0x44) [0x71074ab678c4]
/home/alisson/Projects/ladybird/Build/release/libexec/RequestServer(+0x196ed) [0x5c2630c326ed]
/home/alisson/Projects/ladybird/Build/release/libexec/RequestServer(+0x49d21) [0x5c2630c62d21]
/usr/lib/libc.so.6(+0x25e08) [0x71074a234e08]
/usr/lib/libc.so.6(__libc_start_main+0x8c) [0x71074a234ecc]
/home/alisson/Projects/ladybird/Build/release/libexec/RequestServer(+0x193e5) [0x5c2630c323e5]
11582.563 Ladybird(117118): WebContent process crashed! Last page loaded: https://web.telegram.org/k/
11582.563 Ladybird(117118): Consider raising an issue at https://github.com/LadybirdBrowser/ladybird/issues/new/choose
VERIFICATION FAILED: !is_error() at /home/alisson/Projects/ladybird/AK/Error.h:187
/home/alisson/Projects/ladybird/Build/release/lib/liblagom-ak.so.0(ak_verification_failed+0x81) [0x7cb8c6f1f571]
/home/alisson/Projects/ladybird/Build/release/lib/liblagom-webview.so.0 WebView::ViewImplementation::initialize_client(WebView::ViewImplementation::CreateNewClient) 0xc4c) [0x7cb8cadfc41c]
/home/alisson/Projects/ladybird/Build/release/bin/Ladybird(+0x7393a) [0x5994d575c93a]
/home/alisson/Projects/ladybird/Build/release/lib/liblagom-webview.so.0 WebView::ViewImplementation::handle_web_content_process_crash(WebView::ViewImplementation::LoadErrorPage) 0xe5) [0x7cb8cae01005]
/home/alisson/Projects/ladybird/Build/release/lib/liblagom-webview.so.0(+0xb75a7) [0x7cb8cae015a7]
/home/alisson/Projects/ladybird/Build/release/lib/liblagom-core.so.0 Core::ThreadEventQueue::process() 0x346) [0x7cb8c95ecea6]
/home/alisson/Projects/ladybird/Build/release/lib/liblagom-webview.so.0 WebView::EventLoopManagerQt::event_target_received_event(AK::Badge<WebView::EventLoopImplementationQtEventTarget>, QEvent*) 0x6d) [0x7cb8cae66ecd]
/home/alisson/Projects/ladybird/Build/release/lib/liblagom-webview.so.0 WebView::EventLoopImplementationQtEventTarget::event(QEvent*) 0x1c) [0x7cb8cae6a33c]
/usr/lib/libQt6Widgets.so.6 QApplicationPrivate::notify_helper(QObject*, QEvent*) 0x8a) [0x7cb8ca6fe31a]
/usr/lib/libQt6Core.so.6 QCoreApplication::notifyInternal2(QObject*, QEvent*) 0x1a8) [0x7cb8c97585a8]
/usr/lib/libQt6Core.so.6 QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) 0x195) [0x7cb8c9759035]
/usr/lib/libQt6Core.so.6(+0x3c23fc) [0x7cb8c99c23fc]
/usr/lib/libglib-2.0.so.0(+0x5d559) [0x7cb8c5e3c559]
/usr/lib/libglib-2.0.so.0(+0xc0157) [0x7cb8c5e9f157]
/usr/lib/libglib-2.0.so.0(g_main_context_iteration+0x35) [0x7cb8c5e3ba55]
/usr/lib/libQt6Core.so.6 QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) 0x8d) [0x7cb8c99bf71d]
/usr/lib/libQt6Core.so.6 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) 0x226) [0x7cb8c9764566]
/usr/lib/libQt6Core.so.6 QCoreApplication::exec() 0x9f) [0x7cb8c9759a2f]
/home/alisson/Projects/ladybird/Build/release/lib/liblagom-core.so.0 Core::EventLoop::exec() 0x44) [0x7cb8c95d88c4]
/home/alisson/Projects/ladybird/Build/release/lib/liblagom-webview.so.0 WebView::Application::execute() 0x10) [0x7cb8cadbece0]
/home/alisson/Projects/ladybird/Build/release/bin/Ladybird(+0x7713c) [0x5994d576013c]
/home/alisson/Projects/ladybird/Build/release/bin/Ladybird(+0x77871) [0x5994d5760871]
/usr/lib/libc.so.6(+0x25e08) [0x7cb8c6945e08]
/usr/lib/libc.so.6(__libc_start_main+0x8c) [0x7cb8c6945ecc]
/home/alisson/Projects/ladybird/Build/release/bin/Ladybird(+0x3f1a5) [0x5994d57281a5]
Meta/ladybird.sh: line 192: 117118 Illegal instruction     (core dumped) "$BUILD_DIR/bin/$lagom_target" "${lagom_args[@]}"