You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry, I could not reply earlier, as I was very busy the last week.
Are you using some third-party library that overwrites standard Map or is it you in house solution? If you can point to a public website with the problem or share actual example, that'd be helpful. We've addressed a few similar issues in the past with other web APIs that were broken by some popular libraries.
The tested target application is on SAP systems. We are not part of SAP. Even if SAP would provide a patch for it, it takes a lot of time until the fix is deployed to all our customers.
We saw the map replacement in 2 files on the server:
I am probably not allowed to share the actual sources, but i don't think it is some part of any public library.
We need to understand the scope of the problem here and which Playwright APIs you call, as many parts of the injected script already run in an isolated world and are immune to these kind issues.
We call for example BrowserContext.AddInitScript and Page.EvaluateAsync and need to work with some Map objects within the called scripts. The Init script might still work, as it is executed early enough. But EvaluateAsync might fail when the sap scripts have been evaluated before.
Example
No response
Motivation
We need more information to act on this report. As long as we can't repro it, it is unlikely with can make progress with it. Allow me to close it, but please file a new one and link to this issue when you get back to it!
The text was updated successfully, but these errors were encountered:
We call for example BrowserContext.AddInitScript and Page.EvaluateAsync and need to work with some Map objects within the called scripts. The Init script might still work, as it is executed early enough. But EvaluateAsync might fail when the sap scripts have been evaluated before.
So your app (I understand that it is not your fault) breaks Map type and you can't use it in your evaluate. Can you save it to window._Map in init script?
VM799:24 Uncaught (in promise) TypeError: callbacks.set is not a function
at <anonymous>:24:64
at new Promise (<anonymous>)
at globalThis.<computed> (<anonymous>:24:21)
at <anonymous>:7607:9
at <anonymous>:1506:25
at Map.forEach (<anonymous>)
at <anonymous>:1492:35
at Map.forEach (<anonymous>)
at #forwardEvent (<anonymous>:1481:13)
(anonymous) @ VM799:24
globalThis.<computed> @ VM799:24
(anonymous) @ VM804:7607
(anonymous) @ VM804:1506
(anonymous) @ VM804:1492
#forwardEvent @ VM804:1481
Promise.then
(anonymous) @ VM804:7607
(anonymous) @ VM804:1506
(anonymous) @ VM804:1492
#forwardEvent @ VM804:1481
VM804:990 build-css-selector: 0.953125 ms
VM804:990 build-css-selector: 0.47314453125 ms
So when use the html below and expose a function myExposedFunction() you should be able to reproduce the exception.
🚀 Feature Request
See #34328
Sorry, I could not reply earlier, as I was very busy the last week.
The tested target application is on SAP systems. We are not part of SAP. Even if SAP would provide a patch for it, it takes a lot of time until the fix is deployed to all our customers.
We saw the map replacement in 2 files on the server:
sap(====)/bc/bsp/sap/ic_base/scripts/common/ic_base_utils_map.js
sap(====)/bc/bsp/sap/crmcmp_ic_frame/crmcmp_ic_frame_utils_map.js
I am probably not allowed to share the actual sources, but i don't think it is some part of any public library.
We call for example
BrowserContext.AddInitScript
andPage.EvaluateAsync
and need to work with some Map objects within the called scripts. The Init script might still work, as it is executed early enough. But EvaluateAsync might fail when the sap scripts have been evaluated before.Example
No response
Motivation
The text was updated successfully, but these errors were encountered: