asmdylink.0!i````````````~`~``~`~“&env user_memory‚€€env__indirect_function_tablep"env__libc_start_mainenv__hwjs_status_adopt_topenv__hwjs_drive_adopt_parkedenv__hwjs_uncaught_unwindingenv__hwjs_status_longjmp_lostenv__hwjs_status_violationenv__hwjs_frame_allocenv__hwjs_frame_publishenv__hwjs_xmod_dispatch_checkenv__hwjs_status_channel_addrenv__hwjs_status_batonenv__hwjs_status_park_exitenv__hwjs_frame_freeenv__hwjs_xfer_returnenv__hwjs_set_parkedenv__hwjs_fpcast_target_sig_lookupenvg_static_resource_initenvg_static_resource_finienvbindtextdomainenvbind_textdomain_codesetenv textdomainenvgjs_context_get_typeenv g_object_newenvgjs_context_set_argvenvgjs_context_eval_module_file envg_log env g_error_freeenvg_object_unrefenv __cxa_atexitenv__hwjs_register_capsummary env!__hwjs_register_capsummary_target env__hwjs_register_fpcast_adapter env__hwjs_take_parkedenv __hwjs_driveenv__hwjs_drive_resumeGOT.mem__hwjs_status_channelDCL A€€À A A A A A A A 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_done]__wasm32_args_buf_addr0__wasm32_args_buf_size1__wasm32_user_entry2__hwjs_drive_abiM__hwjs_budget_not_refilledN__hwjs_promise_i32O__hwjs_register_suspendsP__hwjs_budget_setV__hwjs_budget_getW__hwjs_budget_uninitializedX hwjs_destroy^ hwjs_resume\__wasm32_set_stack_pointer___wasm32_get_stack_pointer`__wasm32_set_tls_basea__wasm32_get_tls_baseb__wasm32_get_tls_sizec__wasm32_get_tls_alignd __data_end __heap_base $ 'A !*+,IJ-GH.?@/342KL5786:;9=>`; 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_entry__main_argc_argvregister_call_dtors__wasm32_main_with_ctorsresource:///org/gnome/shell/portalHelper/main.jsExecution of main.js threw exception: %sportal_js_resourcesresource_constructorportal_js_resourcesresource_destructormain__wasm32_ctors_drivenresource:///org/gnome/shellgnome-shellsearch-pathprogram-name/usr/share/localeUTF-8hwjs.xmc.ladder.Fii.1hwjs.xmc.ladder.Fv.0È´NhelloèHJhwjs.xmod_marshalhwjs.abi}šð£¡±˜�¸z-(llvm.func_attr.annotate.hwjs.suspends.v1ÿÿÿÿ• producerslanguageC11 processed-byclangf22.0.0git (git@gitlab.com:brintos/toolchain/llvm-project.git cdbdb50af4c9003e047603314710702d12c17868)¦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.0d997a77b501ebcae12ac88ac89a414c7c137ce467adf918c0052ec56b68b1dd","libgio-2.0.so.0.7800.6.859af959233137a9e25e57a46192afa65180124aba0abaceeee8f99128ef1999","libgmodule-2.0.so.0.7800.6.93d253df52518b6467531426a2422bc2c638ce978d0f02ac4f4150c288914450","libz.so.1.3.1.c9130a3c4bd780e12adcf3c8db8130741470b8a2873e772001f3e8b3b359d1fd","libgobject-2.0.so.0.7800.6.672e2bb2cff972b5b7c418edc3469cd028ddeeacf77956e81fa9c8808ffc09c6","libffi.so.8.1.4.f5cbbb0b797c769c4bda6ab9633a014b388e35033df615ae7a9cb4f9e2f9527c","libglib-2.0.so.0.7800.6.56571766f1c40823b552549141d99ded1acc4e5fcc1caa0d61ebbcc3b7f80b80","libpcre2-8.so.0.12.0.57b02e217a1575f247fd63692ed644cd163041088bd2856cf6e1af1880d8ffe9","libgthread-2.0.so.0.7800.6.9d78892b5c1f2e44a606e4ecdb4bbfa635cf02133e313d4134e5fb1b319117ed","libcairo-gobject.so.2.11800.0.0c17003a445dcd6bf76accc936c51f1d5415ae74f1b6b652c9d8e43600708ba1","libcairo.so.2.11800.0.7fb54ac782c64d537f590eb3eb6f4e0a3aed5b130d672d527e114897a37db3f2","libfontconfig.so.1.12.1.a1dd67435962324c8eee5825dc313ae27fa8bada3ff1cff78862414fd0aa8252","libexpat.so.1.12.3.b950bb2384e1b764ff33137e60a14b6bab3c16782312b7ecec633b49128be49d","libfreetype.so.6.20.1.330c9e447df3b33f8069cfe52a7b1720ac8c2038ce5a3df89a8e400a6045165c","libpng16.so.16.41.0.ca42b7690733f00dfbb74ab66cd809042b5d65f090903daf94778111eadf3c25","libXrender.so.1.3.0.4c43764b933b94e6c6205cab01d7aaff08d85fffff9c7a2fec2396f82d81ea80","libxcb-render.so.0.0.0.ea3eccab2ac076355dc3a46537dc71297cf27f7723d05668fe68c3a34b48d2f0","libxcb-shm.so.0.0.0.45e5cb36088b6f7cafae51947bcb4de4fecf2ddd6f7dcd6c094744c9c23595f4","libpixman-1.so.0.42.2.18df2f06a3a2849ac3b31f0454d17c242e6dbe2d14a0dfb7b73c128847158451","libXext.so.6.4.0.8f7670b19a8af53ab4b8b1806dbe8a9e60d3d477fcb7b295b9504d4eadfddc8d","libX11.so.6.4.0.d56416f101ee2f72f54ef32f93ef08254bfc232961a87259a6c8ae1d798336d0","libxcb.so.1.1.0.9f9d21a2dc2a7643f4268b4102039e518425b29c00ebc6eb1ab63b59787b07ce","libXau.so.6.0.0.6a9fef589139338864770479208c1f4bba4cdfe3b5803818aaf11207a0c1f12a","libXdmcp.so.6.0.0.390c8fa8a74bebed68ceacb1684b2a79425bd1f4bd12479906889df7ffcc553d","libgjs.so.0.0.0.3f1a77f64f083467f37e9f05956559feea186482b4dc05d24eb310bd22565e74","libgirepository-1.0.so.1.0.0.d0c370b005d6149ada3db737180b380eb619178cb8e559427b07def328ffb795","libmozjs-115.so.4d3c1f036071b5e434a925292a1f7701d75db0bcc426b1ecbd69d436412d7ff7","libc++abi.so.1.0.81de9c58aa72fb76be1f1df259f80c128f37b6b72c9c5e1ce6fbd2ebe29fcd25","libc++.so.1.0.21361f13b39073f28bf2a4aa26c812716be83cf6d91765c1584459d27c24fff7","libicui18n.so.74.2.325538a64b678822c166a452ace98ad2e520739fc64a970fbeb2426ad8c85cfe","libicuuc.so.74.2.f2e011ca8c72787daf0d04b5246ea881cff2bee33a23b78665435b2ee672d3a4","libicudata.so.74.2.a0af0af484da193c5cf99c19f06a60b79336cb3cc8fde58e87f1c613273e394d"],"suspenders_sha256":"7a703cc31428f81a33d8fe851680ca0e7745c7aec46f3259bb3891caa8678abf"}