| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[BugFix][DevTool] Show corejs and page scripts under new share group Under the shared-VM per-page-context scheme, enable_new_share_group creates a dedicated context that evaluates corejs and per-page contexts copy properties from it. The devtool only tracked a single context per group, so lynx_core.js, app-service.js, and background bundles were missing from the debug console. - jsi.h / runtime_manager.cc: mark the group-owned corejs runtime as a shared global context and register it with the inspector before its scripts are evaluated, without attaching a page session to it. - v8/quickjs inspector clients and managers: track and release every page context in a shared group instead of only the first one, and skip the shared global context when reporting inspector sessions. - quickjs inspector impl: route debugger requests to the context that owns the target script or script URL so breakpoints and getScriptSource resolve to the correct realm. - Why: the separate corejs context and the per-page contexts were invisible to the debugger, so their scripts never appeared and their sources were empty. - Verified on a connected Android device with V8 and PrimJS: two pages in one group share a single corejs script id and expose their own page scripts, closing a page removes only its scripts, and the legacy single-context path is unaffected. TEST: Manual DevTool verification on device for V8 and PrimJS shared groups. AutoSubmit: True | 1 个月前 | |
[BugFix][DevTool] Show corejs and page scripts under new share group Under the shared-VM per-page-context scheme, enable_new_share_group creates a dedicated context that evaluates corejs and per-page contexts copy properties from it. The devtool only tracked a single context per group, so lynx_core.js, app-service.js, and background bundles were missing from the debug console. - jsi.h / runtime_manager.cc: mark the group-owned corejs runtime as a shared global context and register it with the inspector before its scripts are evaluated, without attaching a page session to it. - v8/quickjs inspector clients and managers: track and release every page context in a shared group instead of only the first one, and skip the shared global context when reporting inspector sessions. - quickjs inspector impl: route debugger requests to the context that owns the target script or script URL so breakpoints and getScriptSource resolve to the correct realm. - Why: the separate corejs context and the per-page contexts were invisible to the debugger, so their scripts never appeared and their sources were empty. - Verified on a connected Android device with V8 and PrimJS: two pages in one group share a single corejs script id and expose their own page scripts, closing a page removes only its scripts, and the legacy single-context path is unaffected. TEST: Manual DevTool verification on device for V8 and PrimJS shared groups. AutoSubmit: True | 1 个月前 | |
[BugFix][DevTool] Fix inspector cleanup for reused shared contexts A shared context could be created while JS debugging was disabled and later reused after debugging was enabled. The reuse path initialized its inspector without registering the group in group_to_engine_type_. When that reused context was released, OnRelease could not select the corresponding release callback, leaving stale context and inspector entries in QJSInspectorClientImpl. Recreating the same group could then access state associated with the destroyed QuickJS context. DisconnectSession also retained a reference to the channel-owned group ID after erasing that channel, resulting in a dangling reference. - Call EnsureSharedContextRegistered before OnRuntimeReady when reusing a shared context. - Remove the group registration from group_to_engine_type_ when releasing the shared context. - Copy the group ID before DisconnectSession erases the channel that owns it. - Log requested and registered engine types in EnsureSharedContextRegistered. TEST: js_debug_unittest_exec | 16 天前 | |
[BugFix][DevTool] Synchronize QuickJS inspector interrupt access Protect interrupt helper registration, dispatch, and teardown with a mutex. | 1 个月前 | |
initial commit | 1 年前 | |
initial commit | 1 年前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 1 个月前 | ||
| 1 个月前 | ||
| 16 天前 | ||
| 1 个月前 | ||
| 1 年前 | ||
| 1 年前 |