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

Editing a web content article from search result asset details causes iframe to load indefinitely

    Details

      Description

      Steps to reproduce:

      1. Create a web content article titled "apple"
      2. Within the home page embedded search bar, search for "apple"
      3. Click on the search result for the "apple" web content to navigate to the asset detail page
      4. Open the edit form for this web content article from this page by clicking on the edit icon (hover over the asset preview details to get the edit icon to appear)
      5. Add some text in the content field and Publish
      6. Observed: the web content is updated successfully
      7. Edit the same web content, change the content, and Publish

      Actual result: The edit iframe loads indefinitely. Browser console errors are thrown. There are no server errors. This will happen on all subsequent edits of this particular web content article via the asset details.

      Browser console errors:

      Uncaught TypeError: Cannot read property 'dom' of undefined
          at CKEDITOR.dom.document.getWindow (VM323 ckeditor.js:87)
          at O._clearSelections (VM327 alloy-editor-no-ckeditor-min.js:633)
          at O.destructor (VM327 alloy-editor-no-ckeditor-min.js:633)
          at O._callChain (VM327 alloy-editor-no-ckeditor-min.js:842)
          at O.destroy (VM327 alloy-editor-no-ckeditor-min.js:842)
          at component.destructor (VM364 view-min.js:45)
          at component._destroyHierarchy (VM364 view-min.js:1)
          at component._baseDestroy (VM364 view-min.js:1)
          at component._defDestroyFn (VM364 view-min.js:3)
          at Y.CustomEvent.CEProto.fireComplex (combo?browserId=other&minifierType=js&languageId=en_US&b=7310&t=1588069788884&/o/frontend-js-aui-web/aui/aui/aui.js&/o/frontend-js-aui-web/liferay/modules.js&/o/frontend-js-aui-web/liferay/browser_selectors.js&/o/frontend-js-aui-web/liferay/aui_sandbox.js&/o/frontend-js-aui-web/aui/attribute-base/attribute-base.js&/o/frontend-js-aui-web/aui/attribute-complex/attribute-complex.js&/o/frontend-js-aui-web/aui/attribute-core/attribute-core.js&/o/frontend-js-aui-web/aui/attribute-observable/attribute-observable.js&/o/frontend-js-aui-web/aui/attribute-extras/attribute-extras.js&/o/frontend-js-aui-web/aui/event-custom-base/event-custom-base.js&/o/frontend-js-aui-web/aui/event-custom-complex/event-custom-complex.js&/o/frontend-js-aui-web/aui/oop/oop.js&/o/frontend-js-aui-web/aui/aui-base-lang/aui-base-lang.js&/o/frontend-js-aui-web/liferay/dependency.js&/o/frontend-js-aui-web/liferay/util.js&/o/frontend-js-aui-web/aui/aui-base-html5-shiv/aui-base-html5-shiv.js&/o/frontend-js-aui-web/aui/arraylist-add/arraylist-add.js&/o/frontend-js-aui-web/aui/arraylist-filter/arraylist-filter.js&/o/frontend-js-aui-web/aui/arraylist/arraylist.js&/o/frontend-js-aui-web/aui/array-extras/array-extras.js&/o/frontend-js-aui-web/aui/array-invoke/array-invoke.js&/o/frontend-js-aui-web/aui/base-base/base-base.js&/o/frontend-js-aui-web/aui/base-pluginhost/base-pluginhost.js&/o/frontend-js-aui-web/aui/classnamemanager/classnamemanager.js&/o/frontend-js-aui-web/aui/datatype-xml-format/datatype-xml-format.js&/o/frontend-js-aui-web/aui/datatype-xml-parse/datatype-xml-parse.js&/o/frontend-js-aui-web/aui/dom-base/dom-base.js&/o/frontend-js-aui-web/aui/dom-core/dom-core.js&/o/frontend-js-aui-web/aui/dom-screen/dom-screen.js&/o/frontend-js-aui-web/aui/dom-style/dom-style.js&/o/frontend-js-aui-web/aui/event-base/event-base.js&/o/frontend-js-aui-web/aui/event-delegate/event-delegate.js&/o/frontend-js-aui-web/aui/event-focus/event-focus.js&/o/frontend-js-aui-web/aui/event-hover/event-hover.js:389)
      

       
      Steps to reproduce within Result Rankings:

      1. Create a web content article titled "apple"
      2. Navigate to Control Panel >  Search Tuning > Result Rankings
      3. Click the plus button, type in "apple" in the Search Query and click "Customize Results"
      4. Click on the search result for the "apple" web content which will open up a new browser tab with the asset preview
      5. Open the edit form for this web content article from this page by clicking on the edit icon (hover over the asset preview details to get the edit icon to appear)
      6. Add some text in the content field and Publish

      Actual result: Same as within default search page. However, this will happen on the first try instead of needing to edit the web content twice. 

      Note: The changes applied to the web content article are saved. This seems to only happen on certain browsers.

      Reproducible on:
      Chrome Version 81.0.4044.122
      Portal master git commit: f0367b567ad4588375253a758a84f64c3d313829v

      Not reproducible on:
      Chrome Version 65.0.3325.0
      Firefox ESR 52.0.2

        Attachments

        1. load.mp4
          757 kB
        2. wcload.mp4
          964 kB

          Issue Links

            Activity

              People

              Assignee:
              joshua.chong Joshua Chong
              Reporter:
              joshua.chong Joshua Chong
              Participants of an Issue:
              Recent user:
              Clarissa Velazquez
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 33 weeks, 3 days ago

                  Packages

                  Version Package
                  7.1.10 DXP FP26
                  7.1.10.7 SP7
                  7.1.X
                  7.2.10 DXP FP9
                  7.2.X
                  7.3.3 CE GA4
                  7.3.5 CE GA6
                  7.3.10 DXP GA1
                  Master