-
Type:
Spike
-
Status: Closed
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: JS APIs and Utilities
-
Labels:None
-
Spike Type:Technical
-
Epic Link:
-
Sprint:S05E02 - Path of Exile
The goal of this spike is to work on a PoC to explore solutions for the functions that are going to be deprecated in cross-origin iframes by chrome
PoC expected outcome includes:
- A curated list of functions affected by this deprecation, i.e. double check that alert(), confirm() and prompt() are the only functions we need to worry about
- Analysis of places to load the new functions so that they'll be available for all DXP browser-side code
- Alternatives for function logic to deal with the requirements:
- How smart solution could be?. E.g. fallback to the native behavior if not being rendered in an iframe,
- How configurable solution could be? E.g Use postMessage to the parent frame vs rendering a non-native dialog, vs any other option
- Consequences of not blocking the main JS loop. Should the new solution force this?
- Possible configurations in DXP to enable/disable this (FF) and even to use different behavioral variants
- Usage analyisis: verify where DXP code base is making use of the offending functions and how the changes would look like (e.g. substitute if confirm() logic)