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