Last modified: 2014-05-01 23:49:29 UTC
Created attachment 13712 [details] Link inspector and Math inspector together Steps to reproduce: 1.Click on the Edit beta 2.Add a media such as image 3.Now open the Math inspector from More>Latex Observed Result: The Math inspector does not open,Now if you click on link both the inspectors open together. See the screenshot attached.
At least one issue here is that MWExtensionInspector and MWMathInspector don't check that this.focusedNode is actually of the right type before doing things, so the math inspector will happily inspect references etc. I couldn't reproduce the double inspector offhand.
(In reply to comment #1) > I couldn't reproduce the double inspector offhand. I can now: 1. Insert an image 2. Unselect and reselect the image so just the image is selected 3. Open the math inspector. It attempts to inspect the image and crashes 4. Post-crash, you get the double inspector thing
Both issues caused by the math inspector not checking that what it's inspecting is really a math node, changing summary.
It also throws the following errors and the math inspector gets completely blank.: Uncaught TypeError: Cannot call method 'getAttribute' of null VM977:417 Uncaught TypeError: Cannot call method 'getOuterRange' of null
Created attachment 15126 [details] Errors and blank inspector
Fixed in Gerrit change #125933.
Verified the fix on Betalabs
Verified the fix on test2
Verified the fix on production