Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit cf812cd

Browse files
committedFeb 5, 2016
Fixing httpOnly cookies in HtmlUnit driver
1 parent ce33ca9 commit cf812cd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
 

‎java/client/src/org/openqa/selenium/htmlunit/HtmlUnitDriver.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1592,6 +1592,7 @@ public org.openqa.selenium.Cookie apply(com.gargoylesoftware.htmlunit.util.Cooki
15921592
.path(c.getPath())
15931593
.expiresOn(c.getExpires())
15941594
.isSecure(c.isSecure())
1595+
.isHttpOnly(c.isHttpOnly())
15951596
.build();
15961597
}
15971598
};

‎java/client/test/org/openqa/selenium/CookieImplementationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ public void canHandleHttpOnlyCookie() {
436436
assertNotNull(retrieved);
437437
}
438438

439-
@Ignore(SAFARI)
439+
@Ignore({CHROME, SAFARI})
440440
@Test
441441
public void testRetainsHttpOnlyFlag() {
442442
Cookie addedCookie =

0 commit comments

Comments
 (0)
Please sign in to comment.