Suppose we have Mozilla Prism like the XULRunner app, an XUL window with the browser element, where the browser has a given Shows a web page on the domain (example, example.com).
Now there are many links on example.com. If a user follows a local link (i.e., resides on example.com) then it should be allowed to comply, if the link goes to elpmaxe.moc on the other hand, then any of those two possibilities (I have no brains No) should be:
- The "real" browser opens (just like the prism), or
- nothing happens.
Any ideas to do this? This is not enough to use browser.document.onload or DOMready or such events, because this page is securely blocking links while loading (i.e., none of these events is yet removed. has gone).
It seems that you want the functionality similar to the tasks provided by you - except you the domain of the app Want whitelisting in and block everything else There are some MDC documents that can help.
Alternatively, you can take a look through the source code and try and work where - it will allow you to apply an alternative behavior to avoid blocking and shipping. An extension with the app I think is an important file, it seems that the handler adds here (line 171):
var observerService = Components.classes ["@ mozilla.org/observer -service1 / 1] getService (Components.interfaces.nsIObserverService); ObserverService.addObserver (BlockSiteObserver, "HTTP-on-modification Th-request ", incorrect);
BlockSite Observer
function is defined only in the above code.
Comments
Post a Comment