Anchor link to Firefox about:config?

倖福魔咒の 提交于 2019-12-29 07:44:10

问题


As the single way I found to uninstall a webapp is to go to the about:apps page, I wanted to code the following:

 <p>To uninstall the webapp, please go to 
 <a href="about:apps">about:apps</a></p>

But, on Firefox v21 it does not open any page.

Then, I failed also using about:config.

 <a href="about:config">about:config</a>

Therefore I wonder whether it is possible to provide a hypertext link to the about:apps or about:config... What are your advices about this issue?


EDIT: document.location does not help

<html>
<body>
<script type="text/javascript">

//document.location = 'http://www.mozilla.org';
// -> OK 

  document.location = 'about:config';
  // -> Error: Access to 'about:config' from script denied
</script>

回答1:


I think you are simple not allowed to insert a link to a local resource due to security issues.



来源:https://stackoverflow.com/questions/17018696/anchor-link-to-firefox-aboutconfig

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!