Skip to content

Cookie Secure Only Flag Handling #1840

Description

@titusfortner

System

  • Version: 0.29
  • Platform: Mac, Linux
  • Firefox: 84.0.2
  • Selenium: 4 alpha

Chrome & Firefox have different behaviors for handling "secure-only-flag"
Chrome will not set the cookie with secure-only-flag on an http URL; Firefox will
The spec isn't exactly clear on this: https://w3c.github.io/webdriver/#dfn-cookie-secure-only
But the Chrome actions seem to make more sense to me.

Testcase

Here's the Selenium test that is failing, but will apply for any http URL:
https://github.com/SeleniumHQ/selenium/blob/trunk/rb/spec/integration/selenium/webdriver/manager_spec.rb#L67

Stacktrace

Here's the test result:
(cookie is set when I would expect that it not be)
https://github.com/SeleniumHQ/selenium/runs/1816108484?check_suite_focus=true#step:8:527

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions