mozilla

Mozilla WebApp Manifest asks for HTTP Header

匿名 (未验证) 提交于 2019-12-03 02:34:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've been searching for hours, but cannot find a solution. Currently I would like to upload a first webapp to Mozillas new platform, and the second step to do so is, to add a manifest file. I took the information from here and try to build the manifest with the name manifest.webapp But the result is the following message: What am I doing wrong. What line of code am I missing? 回答1: The solution to your problem is to add a line in your .htaccess file so Apache creates the HTTP headers. You can read for more details here . 文章来源: Mozilla WebApp

Firefox extension not working

匿名 (未验证) 提交于 2019-12-03 02:26:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've created a Firefox extension but I can't use it (nothing happens). Does someone know why ? The module hierarchy my_firefox_extension chrome.manifest install.rdf chrome/ content/ locale.html overlay.js sample.xul The code chrome.manifest content firefox_extension chrome/content/ overlay chrome://browser/content/browser.xul chrome://firefox_extension/content/sample.xul install.rdf <?xml version="1.0"?> <RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#"> <Description about="urn:mozilla

Playing a sound in a Firefox add-on

匿名 (未验证) 提交于 2019-12-03 02:15:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I would like to create a simple add-on that would play a different MP3 recording every time the user double clicks a word in a webpage he is visiting and selects a special option from the context menu. The MP3 files are located on a remote server. Normally I would use JavaScript+Flash to play the MP3 file. In a Firefox add-on, however, I'm unable to load external scripts for some reason (playing the sound works fine if it's the webpage itself that loads the scripts, but of course I need it to work with every website and not just the ones

Playing a sound in a Firefox add-on

匿名 (未验证) 提交于 2019-12-03 02:14:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I would like to create a simple add-on that would play a different MP3 recording every time the user double clicks a word in a webpage he is visiting and selects a special option from the context menu. The MP3 files are located on a remote server. Normally I would use JavaScript+Flash to play the MP3 file. In a Firefox add-on, however, I'm unable to load external scripts for some reason (playing the sound works fine if it's the webpage itself that loads the scripts, but of course I need it to work with every website and not just the ones

Programmatically Install Certificate into Mozilla

匿名 (未验证) 提交于 2019-12-03 02:12:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Is there a way to programmatically install a certificate into mozilla? We're trying to script everything to eliminate deviations in environment so installing it by hand through mozilla preferences does not work for our needs. I assume theres a way to do it with certutil, but I am not sure of Mozilla's internals, etc. 回答1: The easiest way is to import the certificate into a sample firefox-profile and then copy the cert8.db to the users you want equip with the certificate. First import the certificate by hand into the firefox profile of the

Difference between webdriver.firefox.marionette &amp; webdriver.gecko.driver

匿名 (未验证) 提交于 2019-12-03 02:11:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am now learning selenium and have met a problem. I am aware that Selenium supported old Firefox version by default without driver. And for recent versions of Firefox, we have to download driver and define it using System.setProperty . According to this link , for Firefox 45 and 46, start driver code could look like this: WebDriver driver = new FirefoxDriver(); My Firefox is version 45.5.1., but above code still won't work. So according to this link , I have added System.setProperty("webdriver.firefox.marionette","C:\\geckodriver.exe"); And

swt browser No more handles Error

匿名 (未验证) 提交于 2019-12-03 01:59:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I wrote a simple program. just a CTabFolder and a WelcomTab inherent from CTabItem. I want to fill my WelcomeTab by a browser which render my htmls. at the init() method of WelcomeTab I Create a Browser but when program want to construct it I get this Error Exception in thread "main" org.eclipse.swt.SWTError: No more handles [Unknown Mozilla path (MOZILLA_FIVE_HOME not set)] at org.eclipse.swt.SWT.error(Unknown Source) at org.eclipse.swt.browser.Mozilla.initMozilla(Unknown Source) at org.eclipse.swt.browser.Mozilla.create(Unknown Source) at

Why do Chrome and IE put “Mozilla 5.0” in the User-Agent they send to the server? [duplicate]

匿名 (未验证) 提交于 2019-12-03 01:58:03
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: This question already has an answer here: What does it mean when IE reports two versions in UserAgent? 3 answers When i myself send many request to the server and found a little thing amazing that in IE if i choose opera user string that the value of user string was User - Agent Opera / 9.80 ( Windows NT 6.1 ; U ; en ) Presto / 2.2 . 15 Version / 10.00 but if i choose other browser in internet explorer that he put Mozilla 5.0 in the user string first. when i send the ajax request from chrome that i found same thing that they put

MDN javascript docs for offline use

匿名 (未验证) 提交于 2019-12-03 01:58:03
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to make MDN's Javascript Reference available for offline browsing (personal use). I am not the website's owner nor developer, and I can only access its generated output. My first thought was to inject an HTML5 appcache.manifest in the page ; Using manifestR I have generated a list of the page's assets. Then I've tried pointing to my local manifest file using the file:/// protocol, using the http:// protocol and finally using a base64 string , representing the file's contents ( data:text/cache-manifest, ). Nothing seems to work.

FindWindow does not find the a window

匿名 (未验证) 提交于 2019-12-03 01:57:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Hey guys I've plan for make a simple trainer console with C++ but first step I've got problem with FindWindow() #include #include #include #include #include LPCTSTR WindowName = "Mozilla Firefox"; HWND Find = FindWindow(NULL,WindowName); int main(){ if(Find) { printf("FOUND\n"); getch(); } else{ printf("NOT FOUND"); getch(); } } The above code I use to try whether the command FindWindow() but when I execute the output always show NOT FOUND I've replaced Character Set on property Project from Use Unicode Character Set to Use Multi-Byte