Skip to content

Commit 6ffe56e

Browse files
committed
some tweaks
1 parent 880f7bb commit 6ffe56e

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

playwright/src/main/java/com/microsoft/playwright/impl/BrowserContextImpl.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,6 @@ protected void handleEvent(String event, JsonObject params) {
805805
} else if ("response".equals(event)) {
806806
String guid = params.getAsJsonObject("response").get("guid").getAsString();
807807
ResponseImpl response = connection.getExistingObject(guid);
808-
response.request.existingResponse = response;
809808
listeners.notify(EventType.RESPONSE, response);
810809
if (params.has("page")) {
811810
PageImpl page = connection.getExistingObject(params.getAsJsonObject("page").get("guid").getAsString());

playwright/src/main/java/com/microsoft/playwright/impl/PageImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ public class PageImpl extends ChannelOwner implements Page {
4646
private final KeyboardImpl keyboard;
4747
private final MouseImpl mouse;
4848
private final TouchscreenImpl touchscreen;
49+
private final OverlayImpl overlay;
4950
final Waitable<?> waitableClosedOrCrashed;
5051
private ViewportSize viewport;
5152
private final Router routes = new Router();
@@ -100,7 +101,6 @@ private static final Map<EventType, String> eventSubscriptions() {
100101
private VideoImpl video;
101102
private final PageImpl opener;
102103
private String closeReason;
103-
private final OverlayImpl overlay;
104104

105105
enum EventType {
106106
CLOSE,

playwright/src/main/java/com/microsoft/playwright/impl/VideoImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ public void stop() {
7878
page.sendMessage("videoStop", new JsonObject(), ChannelOwner.NO_TIMEOUT);
7979
if (savePath != null) {
8080
saveAs(savePath);
81+
savePath = null;
8182
}
8283
}
8384

0 commit comments

Comments
 (0)