@@ -90,7 +90,6 @@ async def launch(
9090 browser = cast (
9191 Browser , from_channel (await self ._channel .send ("launch" , params ))
9292 )
93- browser ._local_utils = self ._playwright ._utils
9493 return browser
9594
9695 async def launch_persistent_context (
@@ -150,7 +149,6 @@ async def launch_persistent_context(
150149 from_channel (await self ._channel .send ("launchPersistentContext" , params )),
151150 )
152151 context ._options = params
153- context .tracing ._local_utils = self ._playwright ._utils
154152 return context
155153
156154 async def connect_over_cdp (
@@ -163,7 +161,6 @@ async def connect_over_cdp(
163161 params = locals_to_params (locals ())
164162 response = await self ._channel .send_return_as_dict ("connectOverCDP" , params )
165163 browser = cast (Browser , from_channel (response ["browser" ]))
166- browser ._local_utils = self ._playwright ._utils
167164
168165 default_context = cast (
169166 Optional [BrowserContext ],
@@ -194,6 +191,7 @@ async def connect(
194191 self ._connection ._object_factory ,
195192 transport ,
196193 self ._connection ._loop ,
194+ local_utils = self ._connection .local_utils ,
197195 )
198196 connection .mark_as_remote ()
199197 connection ._is_sync = self ._connection ._is_sync
@@ -216,7 +214,6 @@ async def connect(
216214 assert pre_launched_browser
217215 browser = cast (Browser , from_channel (pre_launched_browser ))
218216 browser ._should_close_connection_on_close = True
219- browser ._local_utils = self ._playwright ._utils
220217
221218 def handle_transport_close () -> None :
222219 for context in browser .contexts :
0 commit comments