Firefox附加SDK错误:无法从内部工具栏中删除 [英] Firefox addon SDK error: Unable to Remove from Inner-Toolbar

查看:185
本文介绍了Firefox附加SDK错误:无法从内部工具栏中删除的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  [CustomizableUI] Widget动作-button  -  myAddonID-misspelutton找不到,无法从inner-toolbar-myAddonID-title-of-addon1中删除CustomizableUI.jsm:171 

所以,插件的小部件id拼写错误,卡在某处。这个术语不会出现在我的任何代码中。



详细信息:我最初使用XUL覆盖层构建了这个插件,并使用Firefox AddOn SDK重建它。我想(但我不知道)这个问题是这样发生的:我从Firefox的Addon Repo安装了我的签名插件,然后我用 jpm post --post-url http:// localhost: 8888 / 将其安装到运行 Extension Auto-Installer < a>。



在我的代码中,我有这个,但是我已经删除了它和与之相关的所有内容:

  const {CustomizableUI} = Cu.import('resource:///modules/CustomizableUI.jsm',{}); 

[更新]



我也试过这样的:卸载插件,进入自定义模式,选择恢复到默认值,将所有工具栏重置为默认值。然后我退出Firefox并重新启动它。当我运行jpm来安装插件时,错误代码仍然存在。



有趣的是,当我使用工具箱检查器查看按钮时,它显示#id就像在错误中那样。

那么,如何解决这个问题而不需要创建一个新的firefox配置文件?

解决方案

某些内容在配置文件中堵塞。



在删除所有与 customizableUI 有关的代码后,我知道这一点,然后卸载addon,然后使用Restore Defaults 在自定义面板中,重新启动Firefox并重新安装插件,但问题仍然存在。

因此,不要在我现有的配置文件中使用它:

  jpm post --post-url http:// localhost:8888 / 

我用它来运行一个新鲜干净的:

$ $ p $ jpm run - -binaryC:\ Program Files(x86)\Firefox Developer Edition \firefox.exe



< (我正在使用 post 而不是 run ,因为我运行Firefox的多个实例并且不想运行使它们退出;但是添加 - binary 和Firefox dev的路径有效)在新的配置文件中,一切正常,甚至使用 Customizabl 代码 EUI 。在控制台中没有任何错误。


After hours and hours trying to get things working, I have this error in my console:

[CustomizableUI] Widget action-button--myAddonID-misspelutton not found, unable to remove from inner-toolbar-myAddonID-the-title-of-my-addon1 CustomizableUI.jsm:171

So, the addon's widget id is misspelled somehow and stuck somewhere. The term does not appear in any of my code.

Details: I originally built this addon using XUL overlays, and am rebuilding it with the Firefox AddOn SDK. I think (but I'm not sure) this problem happens like this: I installed my signed addon from the Firefox Addon Repo, and then I used jpm post --post-url http://localhost:8888/ to install it into Firefox Developer Edition running the Extension Auto-Installer.

In my code I had this, but I've removed it and everything that pertains to it:

const { CustomizableUI } = Cu.import('resource:///modules/CustomizableUI.jsm', {});

[update]

I have also tried this: uninstall the addon, enter customization mode and choose "Restore to Defaults" which resets all the toolbars to default. Then I exited Firefox and restarted it. When I run jpm to install the addon, the error code persists.

Funny thing also is this: when I view the button using the toolbox inspector, it shows the #id of that button just like in the error.

With that said, how do I resolve the problem without creating a new firefox profile?

解决方案

Something was "jammed" in the profile.

I knew this after I removed all code relating to customizableUI, then uninstalling the addon and then using "Restore Defaults" in the customization panel, restarting Firefox and reinstalling the addon, but the problem persisted.

So instead of using this with my existing profile:

jpm post --post-url http://localhost:8888/

I used this to run it on a fresh clean one:

jpm run --binary "C:\Program Files (x86)\Firefox Developer Edition\firefox.exe"

(I was using post instead of run because I run multiple instances of Firefox and did not want run to cause them to exit; but adding --binary and the path to Firefox dev did the trick )

In a fresh profile everything works just fine, even with the code utilizing CustomizableUI. There are no errors relating to that in the console.

这篇关于Firefox附加SDK错误:无法从内部工具栏中删除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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