Steps to reproduce:
- Open VE and go to Media Settings dialog in Firefox.
- Select an image and click on "Insert"
Media Settings dialog gets stuck causing VE to crash .
Error in the console:
TypeError: node is null
Ryasmeen | |
Sep 14 2017, 5:49 PM |
F9565217: Screen Shot 2017-09-15 at 12.53.54 PM.png | |
Sep 15 2017, 8:11 PM |
F9535437: Screen Shot 2017-09-14 at 10.48.43 AM.png | |
Sep 14 2017, 5:49 PM |
Steps to reproduce:
Media Settings dialog gets stuck causing VE to crash .
Error in the console:
TypeError: node is null
Noticed the same error in couple of other scenarios in Firefox, they all might be coming from the same source, so listing here for now:
I do see this in production, but not locally or in beta. Maybe we've fixed it accidentally somewhere else.
@Ryasmeen I can't reproduce this in production in Firefox.
The image is inserted just fine.
Oh, also, in production that node is null error happens any time you hit enter, not just linked to the image-add.
I just made this edit using Firefox 55.0.3: https://en.wikipedia.org/w/index.php?title=User:Deskana_(WMF)/sandbox&diff=801256835&oldid=800072580
@Ryasmeen: Could you check and let me know whether this happens to you on the beta cluster currently? I'm trying to work out whether I'm just having problems reproducing it, or if it's fixed, and Dan's trouble reproducing it in production makes everything ambiguous there.
I can reproduce it in both beta and production, and I figured out why. If I press enter at any point after VisualEditor loading and trying to insert the image, then I get a node is null error in my browser console, and when I try to insert an image I encounter this issue. If I never press enter, then it will insert the image just fine.
I think this is essentially the same as T175852 (which https://gerrit.wikimedia.org/r/378378/ fixes)
Change 378378 had a related patch set uploaded (by Divec; owner: Divec):
[VisualEditor/VisualEditor@master] Setup slugs in TreeModifier
Change 378378 merged by jenkins-bot:
[VisualEditor/VisualEditor@master] Setup slugs in TreeModifier
Change 379328 had a related patch set uploaded (by Jforrester; owner: Divec):
[VisualEditor/VisualEditor@REL1_30] Setup slugs in TreeModifier
Change 379328 merged by jenkins-bot:
[VisualEditor/VisualEditor@REL1_30] Setup slugs in TreeModifier
Change 379557 had a related patch set uploaded (by DLynch; owner: DLynch):
[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (bd5da1725)
Change 379557 merged by jenkins-bot:
[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (0ec5fe55f)