-
Bug
-
Resolution: Fixed
-
None
-
None
-
Medium
-
Emptyshow more show less
problem
If the iframe is not ready in Editor.plugins.VisualReview.controller.SegmentMapping::getSegmentDom, it can come to the following JS error:
"Unable to get property 'query' of undefined or null reference" in line 381!
If the extFrame is falsy the whole function should return also false.
aleksandar please fix, but with minimal effort so that this may not cause future complications with other functionality in the code (see below discussion)
Exception details:
Browser / Device:
Browser: | Microsoft Edge 16.16299 |
OS: | Windows 10 |
Window size: | 1536 x 747 |
Device pixel ratio: | 1.25 |
UserAgent: | Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Edge/16.16299 |
Touch: | |
Language: | de-DE |
Installed Plugins: |
|
Application:
Environment: | |
Version identifier: | development |
Framework: | ExtJS 620 |
This happening after switchting the view:
user.click | #editorViewport #visualReviewActionButtons #taskActionButtons #switchEditorModeBtn => .x-btn-icon-el |
marcmittag basicly you have right. But I don't have a good feeling on leaving known null references in the code, smells like a boomerang. With the loading mask we reduce the chance of getting that problem via user interaction, but what is if the actions causing that errors are triggered other ways (ajax callback or so).
What is if VisualReview gets more features where the iframe content changes or so?