Replacing object.method changes what a subsequent property lookup returns. It does not change a function already stored in a variable. That distinction mattered in a first-party Proteus research harness: the harness needed API access to follow an attempt’s lifecycle, while consumer code could retain a bound function before the attempt was prepared.
The engineering work dates to 6 September 2026. This sanitized case study was published on 29 September 2026. It concerns harness ownership, not a newly disclosed vulnerability in a third-party product.
The problem: a property is not every reference
The inspected harness controlled access to a browser resource API. Its synthetic browser fixture explicitly cached a bound API function during initialization, then used that reference when a later action began. Installing a guard only at action time would miss that alias: calls through the property could reach the guard while cached calls still reached the earlier function.
This is ordinary JavaScript reference behavior, not an exotic browser feature. Binding a function preserves a callable reference and its receiver; it does not arrange to look up the property again on every invocation. Restoring or replacing the property later cannot revoke that bound reference.
The public demonstration reduces this to an ordinary in-memory resource pool. It first caches api.acquire, replaces the property with a rejecting function, and checks that the cached original still issues a resource. No browser, camera, SDK, device, or network operation is involved.
The change: make the cached reference a forwarding boundary
The first-party change installed a stable forwarding function at document start, before the consumer could cache the API. Runtime preparation connected that function to the existing attempt guard later. Installation itself did not acquire the resource.
There are now two distinct things: a stable function identity that consumers can retain, and mutable lifecycle state consulted whenever that function runs. The essential shape in the independently authored demonstration is:
let delegate = null;
const forwarding = label => {
if (delegate === null) throw new Error('Resource attempt is not armed');
return delegate(label);
};
The complete source installs this function on the synthetic API. Its arm() operation supplies the delegate only if the boundary is still installed, not already armed, and not closed. Calls before arming fail without issuing a resource. Armed calls use the captured original with its original receiver. The demonstration uses synchronous return values and exceptions; it does not reproduce the browser API’s promise contract or implement the harness’s attempt guard.
Timing is the important prerequisite. The inspected controller registered its bootstrap through the Chrome DevTools Protocol’s new-document script mechanism before reloading the page. Installing after a consumer has already captured the original cannot retroactively bring that reference under control.
Teardown has two obligations
First, teardown must disarm the forwarding function itself. Clearing its delegate means a cached forwarder cannot continue serving calls just because restoring the property left that function object alive. In the demonstration, teardown closes the boundary permanently: a later attempt to arm it fails.
Second, teardown must respect current property ownership. The first-party implementation restores the original property only when the property still contains its own forwarding function. If another owner has replaced it, cleanup leaves that replacement alone. Restoration also distinguishes an original own property from an inherited method: removing the temporary own property exposes the inherited method again.
These obligations are independent. Even when a later owner must be preserved, the earlier forwarder must still be disarmed. Conversely, restoring the original API intentionally makes fresh property lookups reach the original again. This design disables retained forwarding references; it is not global resource revocation. It also does not reclaim resources already issued or cancel operations already in flight.
Inspectable artifact and checks
Download or inspect demo.mjs, then run it locally with Node.js:
node demo.mjs
It has no package dependencies and uses Node’s built-in strict assertions. It checks the original cached-reference failure, unarmed rejection without side effects, armed direct and cached calls, rejection of cached calls after teardown, original receiver preservation, own and inherited property restoration, and preservation of an intervening owner. It also checks that a closed boundary cannot be rearmed. Only after those assertions complete does it emit a concise JSON result; an assertion failure terminates execution instead. These describe runnable checks, not a claimed execution result for the retained browser fixture.
The new example ran on 29 September 2026 with Node.js 24.15.0 and emitted status: "passed" after all four scenarios completed. The execution receipt binds that output to the demonstration-source digest. It does not report a run of the historical browser fixture.
Evidence, provenance, and limits
The private first-party source inspected for this account was component commit 7ce62bd, dated 2026-09-06: the forwarding bootstrap and controller registration, the design section on surface lifetime, and a synthetic browser fixture’s early-bound API reference and later call. The fixture also contains resource-ownership assertions. Its existence and source inspection are evidence of intended coverage; its original execution remains unverified here. Private implementation and fixture files are not published as reproducible public artifacts.
The downloadable example is newly and independently authored. It contains no third-party implementation, protocol, outcome count, or captured research data. JavaScript reference semantics, Node.js assertions, and the Chrome DevTools Protocol are upstream facilities, not inventions claimed by this work.
Finally, this boundary assumes cooperative ordering and controlled lifecycle ownership. Hostile same-realm code can retain earlier references, replace properties, or interfere with shared execution. Passing an in-memory demonstration cannot establish complete browser coverage or security isolation. The narrower, inspectable contribution is making cached calls follow explicit lifecycle state—and ensuring cleanup does not silently seize somebody else’s property.