Uploaded image for project: 'PUBLIC - Liferay Alloy UI'
  1. PUBLIC - Liferay Alloy UI
  2. AUI-1419

Safari only - SPA will continuously reload the page if an iframe with src attribute exists on the page

    Details

      Description

      Due to this [changeset]http://trac.webkit.org/changeset/69432, Webkit will fire a popstate event when and iframe completes a network connection with it's src attribute.

      The Surface App subscribes to the popstate event and erroneously reloads the page as the iframe network connection completes.

      Steps to reproduce:

      1. Navigate to alloy-ui/demos/surface
      2. `npm install`
      3. Open `layouts.soy` for edting
      4. Add an iframe with the src attribute as the first child of BODY
      5. Save `layouts.soy`
      6. `node server.js`
      7. Open http://localhost:3000/demos/surface/home
      8. Assert the page will continuously reload...

      Example of iframe that causes the issue:

      <iframe frameborder="0" height="315" src="http://www.youtube.com/embed/G5aDDMpHZhY" style="outline: none;" width="460"></iframe>

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  5 years, 21 weeks, 1 day ago

                  Packages

                  Version Package
                  master
                  master-deprecated
                  3.0.x
                  3.1.x