mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-06-11 01:25:53 -04:00
remove blocking from RequestParams
This commit is contained in:
@@ -871,13 +871,6 @@ pub const RequestParams = struct {
|
||||
notification: *Notification,
|
||||
timeout_ms: u32 = 0,
|
||||
|
||||
// This is only relevant for intercepted requests. If a request is flagged
|
||||
// as blocking AND is intercepted, then it'll be up to us to wait until
|
||||
// we receive a response to the interception. This probably isn't ideal,
|
||||
// but it's harder for our caller (ScriptManager) to deal with this. One
|
||||
// reason for that is the Http Client is already a bit CDP-aware.
|
||||
blocking: bool = false,
|
||||
|
||||
const ResourceType = enum {
|
||||
document,
|
||||
xhr,
|
||||
|
||||
@@ -292,7 +292,6 @@ pub fn addFromElement(self: *ScriptManager, comptime from_parser: bool, script_e
|
||||
.frame_id = frame._frame_id,
|
||||
.loader_id = frame._loader_id,
|
||||
.headers = headers,
|
||||
.blocking = true,
|
||||
.cookie_jar = &frame._session.cookie_jar,
|
||||
.cookie_origin = frame.url,
|
||||
.resource_type = .script,
|
||||
@@ -316,7 +315,6 @@ pub fn addFromElement(self: *ScriptManager, comptime from_parser: bool, script_e
|
||||
.frame_id = frame._frame_id,
|
||||
.loader_id = frame._loader_id,
|
||||
.headers = headers,
|
||||
.blocking = false,
|
||||
.cookie_jar = &frame._session.cookie_jar,
|
||||
.cookie_origin = frame.url,
|
||||
.resource_type = .script,
|
||||
|
||||
@@ -114,7 +114,6 @@ fn fetchRobotsThenRequest(
|
||||
.url = robots_url,
|
||||
.method = .GET,
|
||||
.headers = headers,
|
||||
.blocking = false,
|
||||
.frame_id = req.params.frame_id,
|
||||
.loader_id = req.params.loader_id,
|
||||
.cookie_jar = req.params.cookie_jar,
|
||||
|
||||
Reference in New Issue
Block a user