@@ -30,6 +30,12 @@ public class BrowsingContextInfo {
30
30
31
31
private final List <BrowsingContextInfo > children ;
32
32
33
+ private final String clientWindow ;
34
+
35
+ private final String originalOpener ;
36
+
37
+ private final String userContext ;
38
+
33
39
private final String parentBrowsingContext ;
34
40
35
41
public String getId () {
@@ -44,22 +50,40 @@ public List<BrowsingContextInfo> getChildren() {
44
50
return children ;
45
51
}
46
52
53
+ public String getClientWindow () {
54
+ return clientWindow ;
55
+ }
56
+
57
+ public String getOriginalOpener () {
58
+ return originalOpener ;
59
+ }
60
+
61
+ public String getUserContext () {
62
+ return userContext ;
63
+ }
64
+
47
65
public String getParentBrowsingContext () {
48
66
return parentBrowsingContext ;
49
67
}
50
68
51
69
public BrowsingContextInfo (
52
- String id , String url , List <BrowsingContextInfo > children , String parentBrowsingContext ) {
70
+ String id , String url , List <BrowsingContextInfo > children , String clientWindow , String originalOpener , String userContext , String parentBrowsingContext ) {
53
71
this .id = id ;
54
72
this .url = url ;
55
73
this .children = children ;
74
+ this .clientWindow = clientWindow ;
75
+ this .originalOpener = originalOpener ;
76
+ this .userContext = userContext ;
56
77
this .parentBrowsingContext = parentBrowsingContext ;
57
78
}
58
79
59
80
public static BrowsingContextInfo fromJson (JsonInput input ) {
60
81
String id = null ;
61
82
String url = null ;
62
83
List <BrowsingContextInfo > children = null ;
84
+ String clientWindow = null ;
85
+ String originalOpener = null ;
86
+ String userContext = null ;
63
87
String parentBrowsingContext = null ;
64
88
65
89
input .beginObject ();
@@ -81,6 +105,18 @@ public static BrowsingContextInfo fromJson(JsonInput input) {
81
105
parentBrowsingContext = input .read (String .class );
82
106
break ;
83
107
108
+ case "clientWindow" :
109
+ clientWindow = input .read (String .class );
110
+ break ;
111
+
112
+ case "originalOpener" :
113
+ originalOpener = input .read (String .class );
114
+ break ;
115
+
116
+ case "userContext" :
117
+ userContext = input .read (String .class );
118
+ break ;
119
+
84
120
default :
85
121
input .skipValue ();
86
122
break ;
@@ -89,6 +125,6 @@ public static BrowsingContextInfo fromJson(JsonInput input) {
89
125
90
126
input .endObject ();
91
127
92
- return new BrowsingContextInfo (id , url , children , parentBrowsingContext );
128
+ return new BrowsingContextInfo (id , url , children , clientWindow , originalOpener , userContext , parentBrowsingContext );
93
129
}
94
130
}
0 commit comments