mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-22 12:44:43 +00:00
zig fmt
This commit is contained in:
@@ -903,9 +903,9 @@ pub fn enter(self: *Context, hs: *js.HandleScope) Entered {
|
|||||||
const original = page.js;
|
const original = page.js;
|
||||||
page.js = self;
|
page.js = self;
|
||||||
|
|
||||||
const handle: *const v8.Context = @ptrCast(v8.v8__Global__Get(&self.handle, isolate.handle));
|
const handle: *const v8.Context = @ptrCast(v8.v8__Global__Get(&self.handle, isolate.handle));
|
||||||
v8.v8__Context__Enter(handle);
|
v8.v8__Context__Enter(handle);
|
||||||
return .{.original = original, .handle = handle, .handle_scope = hs};
|
return .{ .original = original, .handle = handle, .handle_scope = hs };
|
||||||
}
|
}
|
||||||
|
|
||||||
const Entered = struct {
|
const Entered = struct {
|
||||||
|
|||||||
@@ -74,7 +74,6 @@ pub fn add(self: *Scheduler, ctx: *anyopaque, cb: Callback, run_in_ms: u32, opts
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
pub fn run(self: *Scheduler) !?u64 {
|
pub fn run(self: *Scheduler) !?u64 {
|
||||||
_ = try self.runQueue(&self.low_priority);
|
_ = try self.runQueue(&self.low_priority);
|
||||||
return self.runQueue(&self.high_priority);
|
return self.runQueue(&self.high_priority);
|
||||||
|
|||||||
@@ -565,7 +565,7 @@ fn processMessages(self: *Client) !bool {
|
|||||||
|
|
||||||
// In case of auth challenge
|
// In case of auth challenge
|
||||||
// TODO give a way to configure the number of auth retries.
|
// TODO give a way to configure the number of auth retries.
|
||||||
if (transfer._auth_challenge != null and transfer._tries < 10) {
|
if (transfer._auth_challenge != null and transfer._tries < 10) {
|
||||||
var wait_for_interception = false;
|
var wait_for_interception = false;
|
||||||
transfer.req.notification.dispatch(.http_request_auth_required, &.{ .transfer = transfer, .wait_for_interception = &wait_for_interception });
|
transfer.req.notification.dispatch(.http_request_auth_required, &.{ .transfer = transfer, .wait_for_interception = &wait_for_interception });
|
||||||
if (wait_for_interception) {
|
if (wait_for_interception) {
|
||||||
|
|||||||
Reference in New Issue
Block a user