diff --git a/modules/javafx.web/src/test/java/test/javafx/scene/web/MiscellaneousTest.java b/modules/javafx.web/src/test/java/test/javafx/scene/web/MiscellaneousTest.java
index 957dafa93e2..122daefaa7e 100644
--- a/modules/javafx.web/src/test/java/test/javafx/scene/web/MiscellaneousTest.java
+++ b/modules/javafx.web/src/test/java/test/javafx/scene/web/MiscellaneousTest.java
@@ -217,9 +217,15 @@ public void call(long createdTime, long interval, int index) {
         }
     }
 
-    @Ignore("JDK-8335548")
-    @Test public void testCookieEnabled() {
+
+    @Test public void testCookieEnabled() throws Exception {
         final WebEngine webEngine = createWebEngine();
+        String location = new File("src/test/resources/test/html/cookie.html")
+                .toURI().toASCIIString().replaceAll("^file:/", "file:///");
+        Platform.runLater(() -> {
+            webEngine.load(location);
+        });
+        Thread.sleep(1000);
         submit(() -> {
             final JSObject window = (JSObject) webEngine.executeScript("window");
             assertNotNull(window);
diff --git a/modules/javafx.web/src/test/resources/test/html/cookie.html b/modules/javafx.web/src/test/resources/test/html/cookie.html
new file mode 100644
index 00000000000..458f5453d7f
--- /dev/null
+++ b/modules/javafx.web/src/test/resources/test/html/cookie.html
@@ -0,0 +1,6 @@
+<!DOCTYPE html>
+<html>
+<body>
+test cookie
+</body>
+</html>