Duplicate tab in Chrome causes JavaObjects to return undefined
exevolution opened this issue · 4 comments
exevolution commented
Steps to reproduce:
- Open an Xplore tab
- Run method that would return [JavaObject] and its properties.
gs.getUserID();
- Note the results
- Right click the tab in Chrome and Duplicate
- Repeat step 2
- Note the return value is undefined
jneale commented
Hi, I cannot reproduce this issue. What version of ServiceNow, Xplore, and browser are you using?
exevolution commented
ServiceNow version: Quebec Patch 4 Hotfix 2b
Xplore version: 4.9
Browser: Chrome 94.0.4606.41 on Windows 10
exevolution commented
jneale commented
Turns out this was a bug with Chrome incorrectly copying the page and turning all the settings on which meant hoisting was enabled on the duplicate page. Hoisting requires a return value which is why it was failing.
It's fixed in 4.10.