Archive for the ‘firefox’ Category

‘JavaScript component does not have a method named: “onLocationChange”‘ when calling method: [nsIWebProgressListener::onLocationChange]“

在项目中使用jsTree,在firefox的js控制台输出以下错误:

[Exception... "'JavaScript component does not have a method named:
"onLocationChange"' when calling method:
[nsIWebProgressListener::onLocationChange]"  nsresult: "0x80570030
(NS_ERROR_XPC_JSOBJECT_HAS_NO_FUNCTION_NAMED)"  location: "JS frame ::
file:///C:/Program%20Files/Mozilla%20Firefox/components/nsSessionStore.js
:: sss_observe :: line 320"  data: no]
file:///C:/Program%20Files/Mozilla%20Firefox/components/nsSessionStore.js
Line 320

[Exception... "'JavaScript component does not have a method named:
"onLocationChange"' when calling method:
[nsIWebProgressListener::onLocationChange]"  nsresult: "0x80570030
(NS_ERROR_XPC_JSOBJECT_HAS_NO_FUNCTION_NAMED)"  location: "<unknown>"
data: no]

参考此文 此文 此文 还有此文得知是firebug和flashgot扩展到冲突造成的,把flashgot禁用或者卸载掉就可以了。

 

Firefox 3.6 beta 5 隐藏菜单栏

Firefox 3.6 beta 5 加入隐藏菜单栏的功能。右击导航栏或者菜单栏,反选“菜单栏”就隐藏掉了菜单栏。

根据现有的主流分辨率来看,可以节省出20到40像素。

Hide menu bar in Firefox 3.6

当你需要使用菜单栏的时候,按住Alt键,菜单栏会临时弹出。

如果你需要在Firefox 3.5中隐藏菜单栏,你需要类似于Personal Menu 或者 Compact Menu 2 的扩展。

via

 

Firebug : console is not defined

今天在公司没事干,公司产品的代码读了个大概50%。

打算将这个系统的人员组织结构树用jquery.treeview这个插件来实现,所以正在熟悉这个插件。

调试调用这个插件:

1
2
3
4
5
6
    $(document).ready(function(){
        $("#browser").treeview({
            toggle: function() {
                console.log("%s was toggled.", $(this).find(">span").text());
            }
        });

F5刷新,点任意树状节点,Web Developer扩展里面出现一个javascript错误:

console is not defined

google了一下发现console是firebug提供了一个用于js调试的对象,除了log,还提供了很多其他的方法。

难怪Web Developer无法识别console是嘛东东。

直接打开firebug查看调试信息,Web Developer的错误信息可以不用理会,firebug太tmd强大了。

firebug console output

 

解决Firefox连接example.com:443时发生错误。 由于SSL协议被禁用,无法安全的连接。 (错误码: ssl_error_ssl_disabled)

打开firefox出现警告框,然后https协议的网站都打不开,错误提示:“连接example.com:443时发生错误。 由于SSL协议被禁用,无法安全的连接。 (错误码: ssl_error_ssl_disabled)”
出现问题的可能有:

硬盘空间不足

查看自己的硬盘分区,看有没有快空间耗尽的,有就清理下。

文件权限不够

检查profile目录下面cert8.db是否为只读,请务必不要勾选只读选项。我的系统现在是windows 7,profile目录是C:\Users\Administrator\AppData\Roaming\Mozilla\Firefox\Profiles\b05uoda1.default

文件损坏

cert8.db文件可能因为系统原因而损坏,关闭firefox,删除cert8.db,然后启动firefox。

以下听说是cert8d.db损坏的原因:

Non-Latin characters in username

There seems to be a bug with non-Latin (For example Chinese or Russian) characters in your username. There’s no fix yet but a workaround is to make another account with a Latin characters only username.

via,
刚才好像是灵魂出窍了,blogspot可直接访问。

 

iceweasel[firefox]的kde4主题:KFirefox

才安装好kde4.3,发现iceweasel(也就是firefox)的默认主题十分的丑陋,或许是因为我用的是kde桌面环境,而firefox for linux是用gtk+开发,于是乎发现了个仿kde4的主题:KFirefox , 主页和下载地址:http://ramonantonio.net/kde-firefox/

对比一下安装前后:

安装前:

before-firefox-theme-kde43

安装后:

firefox-theme-kde43

 

firefox 3.5壁纸和t-shirt

firefox在09.6.30放出后,就有了巨大的下载量,因为firefox一直是我的首选浏览器,我也按不住内心的冲动,今天升级了一下。

升级之前我都用的版本是3.0.11 ,装了10个左右的扩展,安装在D:\app\firefox目录,升级之前用mozbackup备份一下资料,然后安装firefox 3.5到d:\app\firefox ,不用mozbackup还原,所有的cookie、浏览历史、扩展、配置 都在,只是在运行firefox 3.5之前的扩展兼容性检查中有几个不兼容,有迅雷,bitcomet,嘀址,如果非要使用,可以手动修改xpi文件,应该影响不大,因为这些扩展没有使用到firefox的一些高级接口,比如右击添加链接之类的,所有和以后的3.5版本应该没有多大的冲突。google toolbar虽说通过兼容性检查,但是所有按钮都点不起,及时单词翻译也只出现一个小空格。

firefox 3.5相关资料:

面向开发人员的firefox 3.5 new features https://developer.mozilla.org/En/Firefox_3.5_for_developers

Firefox 地理位置定位 http://zh-cn.www.mozilla.com/zh-CN/firefox/geolocation/

firefox video http://www.mozilla.com/en-US/firefox/video/

发行说明 http://www.mozilla.com/en-US/firefox/3.5/releasenotes/

update:Google Toolbar 5.0.20090324 这个最新版本使用没有问题。

现在周边的东西已经推出 t-shirt到这里mozilla商店有卖,突然就是本文配图,叫做word cloud. 价格24$,太贵了,买不起。

不过可以下点壁纸安慰一下,以下分辨率都支持。
800×600
1024×768
1280×1024
1440×900
1680×1050
1920×1200

—-irrellevant————–

今天下午去吃饭的路上,摔了一跤,因为穿的拖鞋,很滑,pp很痛,也很囧。啥倒霉的事都让我碰得上,下次估计就是尝试汽车炸弹了。

 

Firefox 无法将文件安装至 http://xxxx原因为: 不预期的安装错误 详情请查看错误控制台日志。 -203

前几天安装了win7,在安装之前把firefox的资料都用mozbackup备份了一次,然后安装好了后还原,问题就来了。cookie,密码,缓存都正常,就是扩展里面一片空白,于是心想估计是丢了,无所谓就重新下载,结果安装任何的扩展都出现这样的错误:

Firefox 无法将文件安装至 http://xxxx原因为: 不预期的安装错误 详情请查看错误控制台日志。 -203

google了,也有人出现这样的问题,但是没有明确的解决方法,最后在http://kb.mozillazine.org/Unable_to_install_themes_or_extensions_-_Firefox找到了答案。里面列出了所有的出现无法安装卸载扩展的原因和解决方案,用查找搜索“203”定位到这里:

Corrupt extension files

Files that store information about the extensions you have installed can sometimes be corrupted. Deleting them can fix a number of extension issues; they will be regenerated the next time you start Firefox. [17][18]. Exit Firefox completely, then open your Firefox profile folder (read the linked article for its location) and delete* these three files:

extensions.ini
extensions.cache
extensions.rdf
  • Note : Although unwanted files/folders can be deleted, renaming them is generally considered a safer option. This achieves the same result, but allows the user to retrieve any possibly required information from them later on. In the case above, rename the above 3 files as , ‘extensionsOLD.ini’, ‘extensionsOLD.cache’, ‘extensionsOLD.rdf’

Unexpected installation error -203

Installing themes or extensions may fail with the message, Unexpected installation error -203. (If this occurs after a Software Update you may find that add-ons that were previously installed also do not work.) Follow the above directions to remove corrupt extension files. [19] If the problem is not resolved and you use ZoneAlarm or CA Firewall, disable it temporarily (enable Windows Firewall in the interim) to allow the installation. [20] If the problem persists, your profile may be corrupt (bug 361358). Use the Profile Manager to create a new profile [21] or create a new default profile [22] and then transfer your data to the newly-created profile.

——————————-

搞了半天结果是扩展损坏造成的,解决方法是:删除 C:\Users\tun\AppData\Roaming\Mozilla\Firefox\Profiles\3neukyyj.default (win7系统是这个目录,找不到这些文件,用windows搜索。)目录下的extensions.ini extensions.cache extensions.rdf 这3个文件,当然最好是备份,免得数据丢失。删除后这3个文件重新生成,也就是说里面关于扩展的记录都消失了,全部扩展需要重新安装。

 

Firefox3.5最后更新:新logo

Firefox3.5(Shiretoko)即将发布,Mozilla公司正在准备最后一个更新:新的firefox logo。

所有logo比较:

firefox_logo

这个是iteration 2,看起来最大的区别就是尾巴相当的”fire”。

更多关于firefox设计的信息,请参见Alex Faaborg的博客(Mozilla首席设计师)

 

Widerbug:宽屏Firebug

Widerbug

如果你的显示器是宽屏的(比如我现在用的19宽(1400px X 900px)),且你也是一个web developer 那么这款扩展算是来得太及时了。

http://www.command-tab.com/2008/01/19/widerbug-widescreen-firebug/ 这是是项目主页,该扩展是基于Firebug通过tweak把位置放到了右边,非常适合宽屏用户。

 

Firefox 3.0.8更新

没啥新功能,修复了两个安全漏洞:

MFSA 2009-13 Arbitrary code execution through XUL <tree> element
MFSA 2009-12 XSL Transformation vulnerability

新功能都放到3.1去了。