INNER CODE UNIT · Python
op_dispose
feder-cr/invisible_playwright · src/invisible_playwright/_juggler/server.py:91
def op_dispose(self, params: Dict) -> Any:
try:
self._undo()
except Exception:
# ⛔ A caller tidying up must not be handed an error because the
# page it belonged to is already gone.
pass
self.dispose()
return None
class RefusingDispatcher(Dispatcher):
"""An object that exists so the tree is well formed, and refuses the rest.
⛔ IT EXISTS BECAUSE THE PROTOCOL REQUIRES IT, NOT BECAUSE WE SUPPORT IT.
`BrowserContext`'s initializer names a `tracing`, a `debugger` and a
`requestContext`, and `_browser_context.py` reads all three with
`from_channel` at construction time. Leaving them out does not disable