mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13:28 +00:00
finalize document loading with non-HTML pages
Avoid infinite the loop of loading non-HTML documents with CDP.
This commit is contained in:
@@ -608,7 +608,10 @@ pub const Page = struct {
|
||||
self.clearTransferArena();
|
||||
|
||||
switch (self.mode) {
|
||||
.raw => |buf| self.mode = .{ .raw_done = buf.items },
|
||||
.raw => |buf| {
|
||||
self.mode = .{ .raw_done = buf.items };
|
||||
self.documentIsComplete();
|
||||
},
|
||||
.html => |*p| {
|
||||
const html_doc = p.html_doc;
|
||||
p.deinit(); // don't need the parser anymore
|
||||
|
||||
Reference in New Issue
Block a user