diff --git a/browser/components/sessionstore/test/browser_formdata_format.js b/browser/components/sessionstore/test/browser_formdata_format.js index 52d165a1c58f..231b2a266f68 100644 --- a/browser/components/sessionstore/test/browser_formdata_format.js +++ b/browser/components/sessionstore/test/browser_formdata_format.js @@ -105,7 +105,7 @@ function testTabRestoreData(aFormData, aExpectedValue, aCallback) { // force a change event to recollect the formdata let changeEvent = document.createEvent("Events"); changeEvent.initEvent("change", true, true); - input.dispatchEvent(changeEvent); + input1.dispatchEvent(changeEvent); }; waitForTabState(tab, tabState, tabStateCallback);