jneale/Xplore

Duplicate tab in Chrome causes JavaObjects to return undefined

exevolution opened this issue · 4 comments

Steps to reproduce:

  1. Open an Xplore tab
  2. Run method that would return [JavaObject] and its properties.
    gs.getUserID();
  3. Note the results
  4. Right click the tab in Chrome and Duplicate
  5. Repeat step 2
  6. Note the return value is undefined

Hi, I cannot reproduce this issue. What version of ServiceNow, Xplore, and browser are you using?

ServiceNow version: Quebec Patch 4 Hotfix 2b
Xplore version: 4.9
Browser: Chrome 94.0.4606.41 on Windows 10

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.