Skip to content

Commit c353310

Browse files
committed
refactor: remove debug_assert for HttpOnly
1 parent 45a89fb commit c353310

1 file changed

Lines changed: 2 additions & 11 deletions

File tree

src/wkwebview/mod.rs

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,17 +1044,8 @@ r#"Object.defineProperty(window, 'ipc', {
10441044
};
10451045
}
10461046

1047-
let wkwebview_cookie = NSHTTPCookie::cookieWithProperties(&properties)
1048-
.expect("failed to create wkwebview cookie, report this as bug to `wry`");
1049-
1050-
// check if `HttpOnly` works as expected
1051-
debug_assert_eq!(
1052-
wkwebview_cookie.isHTTPOnly(),
1053-
cookie.http_only().unwrap_or(false),
1054-
"HTTPOnly mismatch, report this as bug to `wry`"
1055-
);
1056-
1057-
wkwebview_cookie
1047+
NSHTTPCookie::cookieWithProperties(&properties)
1048+
.expect("failed to create wkwebview cookie, report this as bug to `wry`")
10581049
}
10591050

10601051
pub fn cookies_for_url(&self, url: &str) -> Result<Vec<cookie::Cookie<'static>>> {

0 commit comments

Comments
 (0)