asmdylink.0t`````||```||``````~`~``~`~¬'env user_memory‚€€env__indirect_function_tablepenv__libc_start_mainenv__hwjs_status_adopt_topenv__hwjs_uncaught_unwindingenv__hwjs_status_longjmp_lostenv__hwjs_status_violationenv__hwjs_drive_adopt_parkedenv__hwjs_status_channel_addrenv__hwjs_xfer_returnenv__hwjs_set_parkedenv__hwjs_xmod_consult_gen~env__wasm_preemptenv__hwjs_frame_allocenvbindtextdomainenvbind_textdomain_codesetenv textdomainenvgjs_context_get_typeenv g_object_new envgjs_context_set_argv envgjs_context_eval_module_file envg_log env g_error_freeenvg_object_unrefenv__hwjs_frame_freeenv__hwjs_status_batonenv__hwjs_status_park_exitenvg_static_resource_initenvg_static_resource_finienv __cxa_atexit env__hwjs_xmod_dispatch_checkenv__hwjs_fpcast_target_sig_lookupenv__hwjs_register_capsummary env!__hwjs_register_capsummary_targetenv__hwjs_register_fpcast_adapterenv__hwjs_take_parkedenv __hwjs_driveenv__hwjs_drive_resumeGOT.mem__hwjs_status_channelA@  ]A€€À A A A A A ~B A ~B A A ~B A A€€À A äÁ A äÁ ‰__wasm_call_ctors"__stack_pointer__wasm_init_tls#__hwjs_libc_mmap_park_abi%__hwjs_libc_syscall_park_abi&__wasm32_ctors_run_in_start'__wasm32_needed_ctors_in_start(_start) hwjs_doneZ hwjs_destroy[__wasm32_args_buf_addr/__wasm32_args_buf_size0__wasm32_user_entry1__hwjs_drive_abiI__hwjs_promise_i32J__hwjs_budget_not_refilledK__hwjs_register_suspendsL__hwjs_budget_setS__hwjs_budget_getT__hwjs_budget_uninitializedU hwjs_resumeY__wasm32_set_stack_pointer\__wasm32_get_stack_pointer]__wasm32_set_tls_base^__wasm32_get_tls_base___wasm32_get_tls_size`__wasm32_get_tls_aligna __data_end __heap_base$ #A *+,.;AB-23416759:8<=?@>DECGHF …metadata.code.branch_hint*jÆè¨âôÿŠ • Ê � ® Œ ó ™¹Ô¦Êô²ÔóŽ+7-%W1è4B‚·578:;=>/@B+^CÙû¢ÏEFë¿ú›Åí à �=@WXMNPV  u@@@AœäÁAAþH A€€ÀAA·“üAÀ“ÁAAÈüAˆœÁAA”Èü AœäÁAþAœäÁAþ  AœäÁABþ ü ü  A A A AÀ“Á€ à#ƒ€€€!@@A(ˆœÁ€"E A�€€€ AˆœÁ€AjAAA €€€€  A�€€€AAЛÁ€AAA €€€€ @@@@@@#‚€€€(" �€€€Ú€€€   #‚€€€"(‚€€€ (AG �€€€Ú€€€E  ƒ€€€ „€€€ …€€€! $ƒ€€€  Ž~#€€€€!@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#‡€€€"E A$‡€€€ (A‚€€€G  (D! (`; let ifaceStopTag = ''; let ifaceStartIndex = xml.indexOf(ifaceStartTag); let ifaceEndIndex = xml.indexOf(ifaceStopTag, ifaceStartIndex + 1) + ifaceStopTag.length; let xmlHeader = '\n' + '\n'; let xmlFooter = ''; return ( xmlHeader + xml.substring(ifaceStartIndex, ifaceEndIndex) + xmlFooter); } (uuay)/config.js// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- const pkg = imports.package; /* The name of this package (not localized) */ export const PACKAGE_NAME = 'gnome-shell'; /* The version of this package */ export const PACKAGE_VERSION = '46.1'; /* 1 if networkmanager is available, 0 otherwise */ export const HAVE_NETWORKMANAGER = 1; /* gettext package */ export const GETTEXT_PACKAGE = 'gnome-shell'; /* locale dir */ export const LOCALEDIR = '/usr/share/locale'; /* other standard directories */ export const LIBEXECDIR = '/usr/libexec'; export const PKGDATADIR = '/usr/share/gnome-shell'; /* g-i package versions */ export const LIBMUTTER_API_VERSION = '14'; export const HAVE_BLUETOOTH = pkg.checkSymbol('GnomeBluetooth', '3.0', 'Client.default_adapter_state'); (uuay)misc/main.jsƒ0import Adw from 'gi://Adw?version=1'; import Gio from 'gi://Gio'; import GLib from 'gi://GLib'; import GObject from 'gi://GObject'; import Gtk from 'gi://Gtk?version=4.0'; import WebKit from 'gi://WebKit?version=6.0'; import * as Gettext from 'gettext'; import {programInvocationName, programArgs} from 'system'; const _ = Gettext.gettext; import * as Config from '../misc/config.js'; import {loadInterfaceXML} from '../misc/fileUtils.js'; const PortalHelperResult = { CANCELLED: 0, COMPLETED: 1, RECHECK: 2, }; const PortalHelperSecurityLevel = { NOT_YET_DETERMINED: 0, SECURE: 1, INSECURE: 2, }; const HTTP_URI_FLAGS = GLib.UriFlags.HAS_PASSWORD | GLib.UriFlags.ENCODED_PATH | GLib.UriFlags.ENCODED_QUERY | GLib.UriFlags.ENCODED_FRAGMENT | GLib.UriFlags.SCHEME_NORMALIZE | GLib.UriFlags.PARSE_RELAXED; const CONNECTIVITY_CHECK_HOST = 'nmcheck.gnome.org'; const CONNECTIVITY_CHECK_URI = `http://${CONNECTIVITY_CHECK_HOST}`; const CONNECTIVITY_RECHECK_RATELIMIT_TIMEOUT = 30 * GLib.USEC_PER_SEC; const HelperDBusInterface = loadInterfaceXML('org.gnome.Shell.PortalHelper'); const PortalSecurityButton = GObject.registerClass( class PortalSecurityButton extends Gtk.MenuButton { _init() { const popover = new Gtk.Popover(); super._init({ popover, visible: false, }); const vbox = new Gtk.Box({ orientation: Gtk.Orientation.VERTICAL, margin_top: 6, margin_bottom: 6, margin_start: 6, margin_end: 6, spacing: 6, }); popover.set_child(vbox); const hbox = new Gtk.Box({ orientation: Gtk.Orientation.HORIZONTAL, halign: Gtk.Align.CENTER, }); vbox.append(hbox); this._secureIcon = new Gtk.Image(); hbox.append(this._secureIcon); this._secureIcon.bind_property('icon-name', this, 'icon-name', GObject.BindingFlags.DEFAULT); this._titleLabel = new Gtk.Label(); this._titleLabel.add_css_class('title'); hbox.append(this._titleLabel); this._descriptionLabel = new Gtk.Label({ wrap: true, max_width_chars: 32, }); vbox.append(this._descriptionLabel); } setPopoverTitle(label) { this._titleLabel.set_text(label); } setSecurityIcon(securityLevel) { switch (securityLevel) { case PortalHelperSecurityLevel.NOT_YET_DETERMINED: this.hide(); break; case PortalHelperSecurityLevel.SECURE: this.show(); this._secureIcon.icon_name = 'channel-secure-symbolic'; this._descriptionLabel.label = _('Your connection seems to be secure'); break; case PortalHelperSecurityLevel.INSECURE: this.show(); this._secureIcon.icon_name = 'channel-insecure-symbolic'; this._descriptionLabel.label = _('Your connection to this hotspot login is not secure. Passwords or other information you enter on this page can be viewed by people nearby.'); break; } } }); const PortalWindow = GObject.registerClass( class PortalWindow extends Gtk.ApplicationWindow { _init(application, url, timestamp, doneCallback) { super._init({ application, title: _('Hotspot Login'), }); const headerbar = new Gtk.HeaderBar(); this._secureMenu = new PortalSecurityButton(); headerbar.pack_start(this._secureMenu); this.set_titlebar(headerbar); if (!url) { url = CONNECTIVITY_CHECK_URI; this._originalUrlWasGnome = true; } else { this._originalUrlWasGnome = false; } this._uri = GLib.Uri.parse(url, HTTP_URI_FLAGS); this._everSeenRedirect = false; this._originalUrl = url; this._doneCallback = doneCallback; this._lastRecheck = 0; this._recheckAtExit = false; this._networkSession = WebKit.NetworkSession.new_ephemeral(); this._networkSession.set_proxy_settings(WebKit.NetworkProxyMode.NO_PROXY, null); this._webContext = new WebKit.WebContext(); this._webContext.set_cache_model(WebKit.CacheModel.DOCUMENT_VIEWER); this._webView = new WebKit.WebView({ networkSession: this._networkSession, webContext: this._webContext, }); this._webView.connect('decide-policy', this._onDecidePolicy.bind(this)); this._webView.connect('load-changed', this._onLoadChanged.bind(this)); this._webView.connect('insecure-content-detected', this._onInsecureContentDetected.bind(this)); this._webView.connect('load-failed-with-tls-errors', this._onLoadFailedWithTlsErrors.bind(this)); this._webView.load_uri(url); this._webView.connect('notify::uri', this._syncUri.bind(this)); this._syncUri(); this.set_child(this._webView); this.set_size_request(600, 450); this.maximize(); this.present_with_time(timestamp); this.application.set_accels_for_action('app.quit', ['q', 'w']); } _syncUri() { const {uri} = this._webView; try { const [, , host] = GLib.Uri.split_network(uri, HTTP_URI_FLAGS); this._secureMenu.setPopoverTitle(host); } catch (e) { if (uri != null) console.error(`Failed to parse Uri ${uri}: ${e.message}`); this._secureMenu.setPopoverTitle(''); } } refresh() { this._everSeenRedirect = false; this._webView.load_uri(this._originalUrl); } vfunc_close_request() { if (this._recheckAtExit) this._doneCallback(PortalHelperResult.RECHECK); else this._doneCallback(PortalHelperResult.CANCELLED); return false; } _onLoadChanged(view, loadEvent) { if (loadEvent === WebKit.LoadEvent.STARTED) { this._secureMenu.setSecurityIcon(PortalHelperSecurityLevel.NOT_YET_DETERMINED); } else if (loadEvent === WebKit.LoadEvent.COMMITTED) { let tlsInfo = this._webView.get_tls_info(); let ret = tlsInfo[0]; let flags = tlsInfo[2]; if (ret && flags === 0) this._secureMenu.setSecurityIcon(PortalHelperSecurityLevel.SECURE); else this._secureMenu.setSecurityIcon(PortalHelperSecurityLevel.INSECURE); } } _onInsecureContentDetected() { this._secureMenu.setSecurityIcon(PortalHelperSecurityLevel.INSECURE); } _onLoadFailedWithTlsErrors(view, failingURI, certificate, _errors) { this._secureMenu.setSecurityIcon(PortalHelperSecurityLevel.INSECURE); let uri = GLib.Uri.parse(failingURI, HTTP_URI_FLAGS); this._webContext.allow_tls_certificate_for_host(certificate, uri.get_host()); this._webView.load_uri(failingURI); return true; } _onDecidePolicy(view, decision, type) { if (type === WebKit.PolicyDecisionType.RESPONSE) return false; const navigationAction = decision.get_navigation_action(); const request = navigationAction.get_request(); if (type === WebKit.PolicyDecisionType.NEW_WINDOW_ACTION) { if (navigationAction.is_user_gesture()) { // Even though the portal asks for a new window, // perform the navigation in the current one. Some // portals open a window as their last login step and // ignoring that window causes them to not let the // user go through. We don't risk popups taking over // the page because we check that the navigation is // user initiated. this._webView.load_request(request); } decision.ignore(); return true; } const uri = GLib.Uri.parse(request.get_uri(), HTTP_URI_FLAGS); if (uri.get_host() !== this._uri.get_host() && this._originalUrlWasGnome) { if (uri.get_host() === CONNECTIVITY_CHECK_HOST && this._everSeenRedirect) { // Yay, we got to gnome! decision.ignore(); this._doneCallback(PortalHelperResult.COMPLETED); return true; } else if (uri.get_host() !== CONNECTIVITY_CHECK_HOST) { this._everSeenRedirect = true; } } // We *may* have finished here, but we don't know for // sure. Tell gnome-shell to run another connectivity check // (but ratelimit the checks, we don't want to spam // nmcheck.gnome.org for portals that have 10 or more internal // redirects - and unfortunately they exist) // If we hit the rate limit, we also queue a recheck // when the window is closed, just in case we miss the // final check and don't realize we're connected // This should not be a problem in the cancelled logic, // because if the user doesn't want to start the login, // we should not see any redirect at all, outside this._uri let now = GLib.get_monotonic_time(); let shouldRecheck = (now - this._lastRecheck) > CONNECTIVITY_RECHECK_RATELIMIT_TIMEOUT; if (shouldRecheck) { this._lastRecheck = now; this._recheckAtExit = false; this._doneCallback(PortalHelperResult.RECHECK); } else { this._recheckAtExit = true; } // Update the URI, in case of chained redirects, so we still // think we're doing the login until gnome-shell kills us this._uri = uri; decision.use(); return true; } }); const WebPortalHelper = GObject.registerClass( class WebPortalHelper extends Adw.Application { _init() { super._init({ application_id: 'org.gnome.Shell.PortalHelper', flags: Gio.ApplicationFlags.IS_SERVICE, inactivity_timeout: 30000, }); this._dbusImpl = Gio.DBusExportedObject.wrapJSObject(HelperDBusInterface, this); this._queue = []; let action = new Gio.SimpleAction({name: 'quit'}); action.connect('activate', () => this.active_window.destroy()); this.add_action(action); } vfunc_dbus_register(connection, path) { this._dbusImpl.export(connection, path); super.vfunc_dbus_register(connection, path); return true; } vfunc_dbus_unregister(connection, path) { this._dbusImpl.unexport_from_connection(connection); super.vfunc_dbus_unregister(connection, path); } vfunc_activate() { // If launched manually (for example for testing), force a dummy authentication // session with the default url this.Authenticate('/org/gnome/dummy', '', 0); } Authenticate(connection, url, timestamp) { this._queue.push({connection, url, timestamp}); this._processQueue(); } Close(connection) { for (let i = 0; i < this._queue.length; i++) { let obj = this._queue[i]; if (obj.connection === connection) { if (obj.window) obj.window.destroy(); this._queue.splice(i, 1); break; } } this._processQueue(); } Refresh(connection) { for (let i = 0; i < this._queue.length; i++) { let obj = this._queue[i]; if (obj.connection === connection) { if (obj.window) obj.window.refresh(); break; } } } _processQueue() { if (this._queue.length === 0) return; let top = this._queue[0]; if (top.window != null) return; top.window = new PortalWindow(this, top.url, top.timestamp, result => { this._dbusImpl.emit_signal('Done', new GLib.Variant('(ou)', [top.connection, result])); }); } }); Gettext.bindtextdomain(Config.GETTEXT_PACKAGE, Config.LOCALEDIR); Gettext.textdomain(Config.GETTEXT_PACKAGE); const app = new WebPortalHelper(); await app.runAsync([programInvocationName, ...programArgs]); (uuay)portalHelper/org/ shell/fileUtils.jsÌ // -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- import GLib from 'gi://GLib'; import Gio from 'gi://Gio'; export {loadInterfaceXML} from './dbusUtils.js'; /** * @typedef {object} SubdirInfo * @property {Gio.File} dir the file object for the subdir * @property {Gio.FileInfo} info the file descriptor for the subdir */ /** * @param {string} subdir the subdirectory to search within the data directories * @param {boolean} includeUserDir whether the user's data directory should also be searched in addition * to the system data directories * @returns {Generator} a generator which yields file info for subdirectories named * `subdir` within data directories */ export function* collectFromDatadirs(subdir, includeUserDir) { let dataDirs = GLib.get_system_data_dirs(); if (includeUserDir) dataDirs.unshift(GLib.get_user_data_dir()); for (let i = 0; i < dataDirs.length; i++) { let path = GLib.build_filenamev([dataDirs[i], 'gnome-shell', subdir]); let dir = Gio.File.new_for_path(path); let fileEnum; try { fileEnum = dir.enumerate_children('standard::name,standard::type', Gio.FileQueryInfoFlags.NONE, null); } catch (e) { fileEnum = null; } if (fileEnum != null) { let info; while ((info = fileEnum.next_file(null))) yield {dir: fileEnum.get_child(info), info}; } } } /** * @param {Gio.File} dir * @param {boolean} deleteParent */ export function recursivelyDeleteDir(dir, deleteParent) { let children = dir.enumerate_children('standard::name,standard::type', Gio.FileQueryInfoFlags.NOFOLLOW_SYMLINKS, null); let info; while ((info = children.next_file(null)) != null) { let type = info.get_file_type(); let child = dir.get_child(info.get_name()); if (type === Gio.FileType.REGULAR) child.delete(null); else if (type === Gio.FileType.DIRECTORY) recursivelyDeleteDir(child, true); } if (deleteParent) dir.delete(null); } /** * @param {Gio.File} srcDir * @param {Gio.File} destDir */ export function recursivelyMoveDir(srcDir, destDir) { let children = srcDir.enumerate_children('standard::name,standard::type', Gio.FileQueryInfoFlags.NOFOLLOW_SYMLINKS, null); if (!destDir.query_exists(null)) destDir.make_directory_with_parents(null); let info; while ((info = children.next_file(null)) != null) { let type = info.get_file_type(); let srcChild = srcDir.get_child(info.get_name()); let destChild = destDir.get_child(info.get_name()); if (type === Gio.FileType.REGULAR) srcChild.move(destChild, Gio.FileCopyFlags.NONE, null, null); else if (type === Gio.FileType.DIRECTORY) recursivelyMoveDir(srcChild, destChild); } } (uuay)gnome/__wasm32_user_entryresource:///org/gnome/shell/portalHelper/main.jsExecution of main.js threw exception: %sresource:///org/gnome/shellgnome-shellsearch-pathprogram-name/usr/share/localeUTF-8ÈäMhelloèH^Ihwjs.xmod_marshalhwjs.abi}©³Ð®“˜—±#c producerslanguageC11 processed-byclang422.0.0git (c10b205d17c9b08d48809b6e703af12059eea809)¦target_features +atomics+ bulk-memory+bulk-memory-opt+call-indirect-overlong+ multivalue+mutable-globals+nontrapping-fptoint+reference-types+sign-ext+simd128þwasm.linux.needed{"needed":["libc.so.1059c66b108c919232b9592de8fe340c2018b8b8738c1cd0fa86c53eb861dde6","libgio-2.0.so.0.7800.6.447a38ec7e72e2341ceb739b263e869972efacc33524c4b71b4d57fd01e815c3","libgmodule-2.0.so.0.7800.6.614646176ee1f460b31220e5cdb97f1fe8c0b869e843f637649eedd384c74e1c","libz.so.1.3.1.b671f6f42062378077cd9dcba9c4abc99b1323e906074af689f34e04730c9af1","libmount.so.1.1.0.0b1ae6b9ed8db6039325ccda9f5c66926e5150b1ba9e08b711cc93fed43bb1fa","libblkid.so.1.1.0.7cfa3ff548da6aba1c051a828d10e3c88972a6db1e5c6875fb2cb223b879a534","libgobject-2.0.so.0.7800.6.e59a62587393160effbb2ec63559f48d7a7f155ce23b4c138dfbb76ab7daad10","libffi.so.8.1.4.66edeae39708e9f632b38cfec0c367090da72bed483a6814b00367ba56fb9a48","libglib-2.0.so.0.7800.6.85abe90bacd56a9e638315c07a740b6ab684d730e7f5e4eea3d85e01377b6a00","libpcre2-8.so.0.12.0.e07aa52ca085381a05fdf0e31fede3c5115d737ffb49b88052d3c96de5e0d9ed","libgthread-2.0.so.0.7800.6.f7b9e65a0ef201370a8e5047efb1ff4538b0cb3392693b8c12a79d134f625cca","libcairo-gobject.so.2.11800.0.3f0ba8224b7efeea18bd7eef645c9df3483bfa838c2be63966e70c4b67cc4bbc","libcairo.so.2.11800.0.09b7225e63646198a9e32def15acd3246f7b21ab4d39cd49ef2769456e30a3d8","libfontconfig.so.1.12.1.cc8aef3a698fde89f8ca740506549d9c5016630e421688cd2a0f69487e38ac7a","libexpat.so.1.12.3.4fcbf0de5ad9ac4145cb89ece5ddd7abe7dbf3e9e933359bb6e8a63638274fc7","libfreetype.so.6.20.1.d7abd6bf67d5ef1ee84058f017e0bb2981fdcb3222205ed5059d90a9f93d1ce8","libpng16.so.16.41.0.5852ac9c3cb9d1ba424ab2fdcd807831c0875db78d196b1ab8122061e5d1fe98","libXrender.so.1.3.0.97d4d020f0d25134be942f95fe4737aaea4a6d255d3adf89938e1d4d599d9d7b","libxcb-render.so.0.0.0.c0a6c8ea1af348ab312068adcfa80eabb8c81ac7adf1cd4ae20d9b719e97ba1d","libxcb-shm.so.0.0.0.e526d154305d6fd4e6b55cf43d9176e1e688497a6a76a6eb9eca7cd085124df7","libpixman-1.so.0.42.2.6deefb9c0efa95190c417037ac6d3ad77019b4fb5635765c214336b741686f90","libXext.so.6.4.0.42ccacacf41808d8c2b0182feb2b7c65939b32851aedd24b41c43e6be4e40b89","libX11.so.6.4.0.26a03f3cf100b59b37aba6b3f0a6246f5fad6b12bfd9e9a875e524fee175a927","libxcb.so.1.1.0.bf755ca86a5dc81cd10de7e677010657dd98b4771eea04a0385f8b579f317a4d","libXau.so.6.0.0.1aee192e1c2f472900eb6793376d24ab67f362ca8b40d52efb3f63d7cf919e03","libXdmcp.so.6.0.0.789c33530d8cab8e051ad181be81c43daf40ec2b869ddfc70c0ac0d45c12fd68","libgjs.so.0.0.0.c115139abdb04f454fc4a836d128e648134a5a0affe1de82e165973001962ae0","libgirepository-1.0.so.1.0.0.0c23989f9d20ac6449df9fc23c02cb9e7feae5ec3045075e055be3fc91761c7f","libmozjs-115.so.1b7257810dc42e207007b4cd89d188c400b53a160c8a3505ba47fd881766d223","libc++abi.so.1.0.a54206e25ad7eed88c0e7292368fca3988497d0ce46ddd38440515ed118aef6a","libc++.so.1.0.a70c63b8a63c7470c5493a798dfc4986cc04fd6db0e3d4d7d8073f470c2573f0","libicui18n.so.74.2.3b89df64bbe8cde8361a45e216dc713801e76f592a2d2b0d2f36f42770ea90e5","libicuuc.so.74.2.a8107bd655931a480105f16d84841b7fa5db8f1d93c44476a1af507cb3640a9a","libicudata.so.74.2.c51659932abe7ef8473c2c2d9d48fbd032133f023ea75cfb29602ba2685b6003"],"suspenders_sha256":"23625cc135d419a9b126c57cb8e8852e50096c4650278a6718d228a47d26e468"}