Skip to content

Commit 41215db

Browse files
committed
scope handling fix (wip)
1 parent 4e7aa8d commit 41215db

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/main/java/org/htmlunit/WebWindowImpl.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,11 +379,13 @@ public void setOuterHeight(final int outerHeight) {
379379
private void writeObject(final ObjectOutputStream oos) throws IOException {
380380
oos.defaultWriteObject();
381381
oos.writeObject(scriptObject_);
382+
oos.writeObject(topLevelScope_);
382383
}
383384

384385
private void readObject(final ObjectInputStream ois) throws ClassNotFoundException, IOException {
385386
ois.defaultReadObject();
386387
scriptObject_ = (HtmlUnitScriptable) ois.readObject();
388+
topLevelScope_ = (TopLevel) ois.readObject();
387389
}
388390

389391
/**

0 commit comments

Comments
 (0)