File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ def blocked?
8383 # @return [Boolean]
8484 #
8585 def finished?
86- blocked? || response &.loaded? || !error . nil? || ping?
86+ blocked? || response &.loaded? || !error . nil? || ping? || !! url &. start_with? ( "blob:" )
8787 end
8888
8989 #
Original file line number Diff line number Diff line change 136136 exchange . request = Ferrum ::Network ::Request . new ( { "type" => "Ping" } )
137137 expect ( exchange . finished? ) . to be true
138138 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 ( { "type" => "Document" , "request" => { "url" => "blob:null/75787aaf-a81f-4237-98d7-0d51fe6cfcba" } } )
145+ expect ( exchange . finished? ) . to be true
146+ end
139147 end
140148
141149 describe "#redirect?" do
You can’t perform that action at this time.
0 commit comments