changeset 4977:9ab492f337a5

RT-32611 Remove PolicyClientImpl
author peterz
date Thu, 05 Sep 2013 10:51:39 +0400
parents 9cf30bb25652
children a18f63e9aba6
files modules/web/src/main/java/com/sun/javafx/webkit/PolicyClientImpl.java modules/web/src/main/java/javafx/scene/web/WebEngine.java
diffstat 2 files changed, 1 insertions(+), 59 deletions(-) [+]
line wrap: on
line diff
--- a/modules/web/src/main/java/com/sun/javafx/webkit/PolicyClientImpl.java	Thu Sep 05 10:50:23 2013 +0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,58 +0,0 @@
-/*
- * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
- */
-package com.sun.javafx.webkit;
-
-//import javafx.scene.web.Policy;
-//import javafx.scene.web.Policy.Request;
-//import javafx.scene.web.Policy.ContentRequest;
-//import javafx.scene.web.Policy.CookieRequest;
-//import javafx.scene.web.Policy.FormRequest;
-//import static javafx.scene.web.Policy.Request.Type.*;
-
-import java.net.URL;
-
-import com.sun.webkit.PolicyClient;
-
-
-public final class PolicyClientImpl implements PolicyClient {
-
-//    private boolean permitAction(Request request) {
-//        Policy policy = web.getPolicy();
-//        return policy != null
-//               ? policy.permitAction(request)
-//               : true;
-//    }
-
-    @Override public boolean permitNavigateAction(long frameID, URL url) {
-        return true; //permitAction(new Request(NAVIGATE, url));
-    }
-
-    @Override public boolean permitRedirectAction(long frameID, URL url) {
-        return true; //permitAction(new Request(REDIRECT, url));
-    }
-
-    @Override public boolean permitAcceptResourceAction(long frameID, URL url) {
-        return true; //permitAction(new Request(ACCEPT_RESOURCE, url));
-    }
-
-    @Override public boolean permitSubmitDataAction(long frameID, URL url, String httpMethod) {
-        return true; //permitAction(new FormRequest(SUBMIT_DATA, url, httpMethod));
-    }
-
-    @Override public boolean permitResubmitDataAction(long frameID, URL url, String httpMethod) {
-        return true; //permitAction(new FormRequest(RESUBMIT_DATA, url, httpMethod));
-    }
-
-    @Override public boolean permitEnableScriptsAction(long frameID, URL url) {
-        return true; //permitAction(new Request(ENABLE_SCRIPTS, url));
-    }
-
-    @Override public boolean permitNewPageAction(long frameID, URL url) {
-        return true; //permitAction(new Request(NEW_PAGE, url));
-    }
-
-    @Override public boolean permitClosePageAction(long frameID) {
-        return true; //permitAction(new Request(CLOSE_PAGE, null));
-    }
-}
--- a/modules/web/src/main/java/javafx/scene/web/WebEngine.java	Thu Sep 05 10:50:23 2013 +0400
+++ b/modules/web/src/main/java/javafx/scene/web/WebEngine.java	Thu Sep 05 10:51:39 2013 +0400
@@ -810,7 +810,7 @@
         page = new WebPage(
             new WebPageClientImpl(accessor),
             new UIClientImpl(accessor),
-            new PolicyClientImpl(),
+            null,
             new InspectorClientImpl(this),
             new ThemeClientImpl(accessor),
             false);