Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@
- `Ferrum::ServerError`, nothing raised it
- `:browser_name`, it only switched between Chrome-named defaults and raised `NotImplementedError` for anything else, set
`:browser_path` to run Opera or Edge
- `cookie.sameparty?` and `same_party?`, Chrome dropped SameParty cookies and they always returned `nil`


## [0.20.2](https://github.com/rubycdp/ferrum/compare/v0.20.1...v0.20.2) (November 19, 2026) ##
Expand Down
11 changes: 0 additions & 11 deletions lib/ferrum/cookies/cookie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,17 +122,6 @@ def priority
@attributes["priority"]
end

#
# Specifies whether the cookie is a first-party set cookie or not.
#
# @return [Boolean]
#
def sameparty?
@attributes["sameParty"]
end

alias same_party? sameparty?

#
# The scheme (`"Unset"`, `"NonSecure"`, `"Secure"`) that the cookie was set with.
#
Expand Down
7 changes: 0 additions & 7 deletions spec/cookies/cookie_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"secure" => false,
"session" => false,
"priority" => "Medium",
"sameParty" => false,
"sourceScheme" => "Secure",
"sourcePort" => 443
}
Expand Down Expand Up @@ -96,12 +95,6 @@
end
end

describe "#sameparty?" do
it "returns the 'sameParty' attribute" do
expect(subject.sameparty?).to eq(attributes["sameParty"])
end
end

describe "#source_scheme" do
it "returns the 'sourceScheme' attribute" do
expect(subject.source_scheme).to eq(attributes["sourceScheme"])
Expand Down
Loading