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

JS error (ReferenceError) shows when displaying a page with an Iframe and having dynamic URL change disabled

Details

    Description

      Issues:
      JS error (ReferenceError) shows when displaying a page with an Iframe and having dynamic URL change disabled

      Steps to reproduce

      1. For 6.2.X and 6.1.X, add the following property in ext.properties:
        iframe.dynamic.url.enabled=false

        For master, I do not figure out a way to set it false. So I changed code in IFrameConfiguration to make default value as false for testing

        	@Meta.AD(deflt = "false", required = false)
        	public boolean dynamicUrlEnabled();
        
      2. Add an Iframe to home page and configure it to load an external web
      3. Reload page

      Actual results

      ReferenceError: Can't find variable: _48_INSTANCE_xxx_monitorIframe

      Expected results
      No JS errors

      Attachments

        Issue Links

          Activity

            People

              felix.zhang Felix Zhang
              john.zhao John Zhao (Inactive)
              Marta Elicegui Marta Elicegui
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                7 years, 6 weeks, 6 days ago

                Packages

                  Version Package
                  6.2.4 CE GA5
                  6.2.X EE
                  7.0.0 M7