You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assert.ok(browser.tabs.update.withArgs({url: 'https://bafybeiemxf5abjwjbikoz4mc3a3dla6ual3jsgpdr4cjr3oz3evfyavhwq.ipfs.dweb.link/wiki/',active: true}).calledOnce,'tabs.update should be called with default subdomain gateway URL')
57
+
assert.ok(browser.tabs.update.withArgs(request.tabId,{url: 'https://bafybeiemxf5abjwjbikoz4mc3a3dla6ual3jsgpdr4cjr3oz3evfyavhwq.ipfs.dweb.link/wiki/',active: true}).calledOnce,'tabs.update should be called with default subdomain gateway URL')
58
58
})
59
59
it('should do nothing if broken request is a non-IPFS request',asyncfunction(){
assert.ok(browser.tabs.update.withArgs({url: 'https://ipfs.io/ipfs/QmYbZgeWE7y8HXkH8zbb8J9ddHQvp8LTqm6isL791eo14h',active: true}).calledOnce,'tabs.update should be called with IPFS default public gateway URL')
92
+
assert.ok(browser.tabs.update.withArgs(request.tabId,{url: 'https://ipfs.io/ipfs/QmYbZgeWE7y8HXkH8zbb8J9ddHQvp8LTqm6isL791eo14h',active: true}).calledOnce,'tabs.update should be called with IPFS default public gateway URL')
assert.ok(browser.tabs.update.withArgs({url: 'https://bafybeiemxf5abjwjbikoz4mc3a3dla6ual3jsgpdr4cjr3oz3evfyavhwq.ipfs.dweb.link/wiki/',active: true}).calledOnce,'tabs.update should be called with default subdomain gateway URL')
156
+
assert.ok(browser.tabs.update.withArgs(request.tabId,{url: 'https://bafybeiemxf5abjwjbikoz4mc3a3dla6ual3jsgpdr4cjr3oz3evfyavhwq.ipfs.dweb.link/wiki/',active: true}).calledOnce,'tabs.update should be called with default subdomain gateway URL')
157
157
})
158
158
it('should do nothing if failed request is a non-IPFS request',asyncfunction(){
assert.ok(browser.tabs.update.withArgs({url: 'https://ipfs.io/ipfs/QmYbZgeWE7y8HXkH8zbb8J9ddHQvp8LTqm6isL791eo14h',active: true}).calledOnce,'tabs.update should be called with IPFS default public gateway URL')
182
+
assert.ok(browser.tabs.update.withArgs(request.tabId,{url: 'https://ipfs.io/ipfs/QmYbZgeWE7y8HXkH8zbb8J9ddHQvp8LTqm6isL791eo14h',active: true}).calledOnce,'tabs.update should be called with IPFS default public gateway URL')
183
183
})
184
184
it('should recover from unreachable HTTP server by reopening DNSLink on the active gateway',asyncfunction(){
assert.ok(browser.tabs.update.withArgs({url: expectedUrl,active: true}).calledOnce,'tabs.update should be called with DNSLink on local gateway URL')
191
+
assert.ok(browser.tabs.update.withArgs(request.tabId,{url: expectedUrl,active: true}).calledOnce,'tabs.update should be called with DNSLink on local gateway URL')
192
192
dnslinkResolver.clearCache()
193
193
})
194
194
it('should recover from failed DNS for .eth opening it on EthDNS gateway at .eth.link',asyncfunction(){
assert.ok(browser.tabs.update.withArgs({url: expectedUrl,active: true}).calledOnce,'tabs.update should be called with ENS resource on local gateway URL')
202
+
assert.ok(browser.tabs.update.withArgs(request.tabId,{url: expectedUrl,active: true}).calledOnce,'tabs.update should be called with ENS resource on local gateway URL')
0 commit comments