Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-147704

Create a PoC to explore potential solutions

    Details

    • 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

      Description

      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)

        Attachments

          Activity

            People

            Assignee:
            diego.nascimento Diego Nascimento
            Reporter:
            daniel.sanz Daniel Sanz
            Engineering Assignee:
            Diego Nascimento
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:

                Packages

                Version Package