File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ def blocked?
83
83
# @return [Boolean]
84
84
#
85
85
def finished?
86
- blocked? || response &.loaded? || !error . nil? || ping?
86
+ blocked? || response &.loaded? || !error . nil? || ping? || !! url &. start_with? ( "blob:" )
87
87
end
88
88
89
89
#
Original file line number Diff line number Diff line change 136
136
exchange . request = Ferrum ::Network ::Request . new ( { "type" => "Ping" } )
137
137
expect ( exchange . finished? ) . to be true
138
138
end
139
+
140
+ it "returns true for blob requests" do
141
+ exchange = Ferrum ::Network ::Exchange . new ( page , "1" )
142
+ expect ( exchange . finished? ) . to be false
143
+
144
+ exchange . request = Ferrum ::Network ::Request . new (
145
+ {
146
+ "type" => "Document" ,
147
+ "request" => {
148
+ "url" => "blob:null/75787aaf-a81f-4237-98d7-0d51fe6cfcba"
149
+ }
150
+ }
151
+ )
152
+ expect ( exchange . finished? ) . to be true
153
+ end
139
154
end
140
155
141
156
describe "#redirect?" do
You can’t perform that action at this time.
0 commit comments