Firefox about:config? 的锚链接 [英] Anchor link to Firefox about:config?

查看:25
本文介绍了Firefox about:config? 的锚链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为我发现的唯一卸载方式一个 webapp 要转到 about:apps 页面,我想编写以下代码:

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>

但是,在 Firefox v21 上它不会打开任何页面.

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

然后,我也使用 about:config 失败了.

Then, I failed also using about:config.

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

因此我想知道是否可以提供指向 about:apps 或 about:config 的超文本链接...您对这个问题有什么建议?

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?

document.location 没有帮助

<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>

推荐答案

我认为您很简单,由于安全问题,不允许插入指向本地资源的链接.

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

这篇关于Firefox about:config? 的锚链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆