mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-15 04:43:41 +00:00
fix(webview): suppress GTK fallback error document events
This commit is contained in:
1 parent
3415364ab7
commit
183616fcc0
3 files changed
+4
-1
No files matched your search
@@ -98,6 +98,7 @@ func RunEventContract(t *testing.T, provider wv.Provider) {
|
||||
if e.Data["message"] == "" || !strings.Contains(fmt.Sprint(e.Data["url"]), "/failure") {
|
||||
t.Fatal(e)
|
||||
}
|
||||
quiet() // A handled failure must not load a browser-generated fallback page.
|
||||
if err := page.Close(); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user