[ htmlunit-Bugs-1537375 ] Turn off the iframe

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ htmlunit-Bugs-1537375 ] Turn off the iframe

SourceForge.net
Bugs item #1537375, was opened at 2006-08-09 15:38
Message generated for change (Comment added) made by asoreng
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=448266&aid=1537375&group_id=47038

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Closed
Resolution: Invalid
Priority: 5
Submitted By: maomao (maomaode)
Assigned to: Marc Guillemot (mguillem)
Summary: Turn off the iframe

Initial Comment:
Don't know the reason, i can not send an email to the
group, i've subscribed it.

anyway, i'm tring to turn off the iframe, then when i
get a page with iframe embedded, it'll not to connet to
the src of the iframe.

but i can't find the related options/properties, do we
support to turn off the iframe?

----------------------------------------------------------------------

Comment By: Andre Soereng (asoreng)
Date: 2006-09-08 09:34

Message:
Logged In: YES
user_id=1400162

This is a feature I've also been looking for. More
generally, I think it should be possible to install some
kind of content filter that receives callbacks
with a context identifier (e.g 'iframe', 'frame',
'document.location',
'window.open', 'form-submit') and a WebRequestSettings.
The filter can then, based on the context and the web request,
return true or false depending on whether the request should
actually be made.

This is an "extremely" useful feature and is needed to
implement
a popup blocker, block iframe advertisements, prevent
javascripts
from changing the current location of the page with
'document.location'
and similar.

There shouldn't be much work involed with implementing this.
E.g here's one way
window.location
(src/java/com/gargoylesoftware/htmlunit/javascript/host/Window.java)
could be updated to support content filtering:

-            webWindow_.getWebClient().getPage(webWindow_,
new WebRequestSettings(url));
+            WebRequestSettings settings = new
WebRequestSettings(url);
+            if
(webWindow_.getWebClient().getContentFilter().permit(WINDOW_LOCATION,
settings)) {
+              
webWindow_.getWebClient().getPage(webWindow_, settings);
+            }



----------------------------------------------------------------------

Comment By: Marc Guillemot (mguillem)
Date: 2006-09-07 17:35

Message:
Logged In: YES
user_id=402164

No answer received since too long

----------------------------------------------------------------------

Comment By: Marc Guillemot (mguillem)
Date: 2006-08-16 12:45

Message:
Logged In: YES
user_id=402164

what do you understand with turning off an iframe?

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=448266&aid=1537375&group_id=47038

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
HtmlUnit-develop mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop