gecko

Geckoview get microphone permission

跟風遠走 提交于 2019-12-10 22:17:24
问题 I am trying to use the audio recording feature from a website inside a GeckoView element. Therefore I set the permission inside AndroidManifest.xml: <uses-permission android:name="android.permission.RECORD_AUDIO" /> When I now try to record the audio on the website, an HTML PopUp (which is part of the website, not a feature of the browser) tells me that I need to give permission. I can't do anything else - it's just a note without buttons. On the other hand: when I use the regular Firefox

Implementing nsIProtocolHandler with Delphi

本小妞迷上赌 提交于 2019-12-10 16:26:13
问题 I'm trying to build an nsIProtocolHandler implementation in Delphi. (I've done an IInternetProtocol before with success, and want to have in FireFox what I've got in Internet Explorer.) Thanks to the d-gecko project, that somehow links the TInterfacedObject magic to the nsISupports magic, I'm able to make a DLL that provides an nsIModule when asked, which provides an nsIFactory when asked, which provides one of my nsIProtocolHandler's when asked, which provides one of my nsIChannel

Print Stylesheet - Printed Page width Different in Webkit vs. Gecko/IE

邮差的信 提交于 2019-12-10 13:35:42
问题 When printing the page below in Safari/Chrome, the content (everything on the page, basically) is squished into the left side of the page, at about 60% of the page's width. However, in FireFox and IE 7, the printed page shows the content as the full width (and looks quite nice, imo). I resized all the layout elements to 100% width (using !important to make sure they're applying), and Safari/Chrome still won't print out the full width. Here's the page I'm referencing: http://archstl.org

moz-transform scale decrease div size problem

我是研究僧i 提交于 2019-12-10 12:40:38
问题 I'm having problems with mozilla moz-transform scale property. I'm looking for a replacement of the zoom property, which works fine in everything except firefox. When I want to shrink the div, its "content" does shrink, but the size of the container stays the same, leaving a big gap around other content. Is there any way I can force the container size to decrease as well? To clarify I put a simple example here. Open it in chrome and firefox, you will see the difference. 回答1: The only solution

Can I get an image's file size and mime-type via JavaScript (FireFox/Gecko/Mozilla only)

岁酱吖の 提交于 2019-12-10 11:38:09
问题 Can I get an image's file size and mime-type via JavaScript. I am writing a script for inspecting all images in a document. I will run the script in FireFox only so a solution specific to FireFox (undocumented/non-standard/otherwise) is perfectly acceptable. I can use jQuery if necessary. 回答1: You could make a HEAD request with XHR which will tell you the file size, provided these images are on your domain. 回答2: you can do it through HTTP head request var request; request = $.ajax({ type:

getUserMedia for Firefox OS

半腔热情 提交于 2019-12-09 23:02:44
问题 It was said that getUserMedia would land on Firefox OS 1.2. I have read the documentation and tried to look for it in the Google Groups, but I have not found anything related to it. I have developed a web app that works on Firefox Nightly (so, it works in Gecko): But when I try to use it in Firefox OS 1.4, I get a "Permission denied" error: I have tried to add the following permission to the manifest: "permissions":{ "camera":{} } But didn't solve the problem. Is there any other permission

request.getHeader() 相关详细

孤人 提交于 2019-12-09 19:18:23
在三种情况下,request.getHeader("REFERER")取值 1:通过链接跳过来 2:在地址栏中输入URL,打回车 3:刷新 当链接过来的时候,referer的值是链接过来的页面的URL,正常。我刷新的时候referer的值没有变,但当我在地址栏中打回车(URL没有改变,只是打回车),referer值却变成NULL了。 1):链接过来和在地址栏中直接输入URL,有没有什么区别?如果有,有什么区别? 2):刷新的时候URL为什么不变,为什么还是前一个URL地址,为什么不变成当前的URL? 3):直接输入为什么得不到 <%=request.getHeader("REFERER")的值? 如果是直接在浏览器里输入有referer的页面,返回是null,也就是说referer只有从别的页面点击连接来到这页的才会有内容。为NULL就是手工,非null就是连接过来的。刷新的时候,会检查服务端是否会有更新,没有的话,则使用本机的缓存,也就是说,你刷新时得到的响应依然是 前一次得到的服务端的内容,因为你的jsp文件没有变化。 referer是从哪里来的,也就是前一个页面。回车,则没有以前的,等同于你新打开一个浏览器,再次输入一样 。刷新,就是重复上一次的操作。 request.getHeader() 相关详细 //获取客户端向服务器端传送数据的协议名称 System.out

How to Configure “Gecko” with Vb.NET Forms Application

我是研究僧i 提交于 2019-12-08 12:00:26
问题 I have been given a task to integrate Gecko browser component to a existing winform control, but the issue i m facing is how to configure dll, I am trying with different version as well, but no luck, at point it does not load dll and gives the error Unable to find an entry point named 'NS_Alloc' in DLL 'xul'. I have downloaded separately from given link. Xulrunner the latest and also the 29 but it says , An error occurred creating the form. See Exception.InnerException for details. The error

How to add elements to web page from Firefox extension

孤街浪徒 提交于 2019-12-08 11:21:08
问题 I'm going to develop a Firefox extension which should put a button in the loaded pages, when the tag: <input type="file" ... > is found and a file has been selected. Likewise, I think the skype toolbar does a similar thing: when a website contains a phone number, the Skype extension automatically converts it into a button that can be clicked to call skype contacts. I'm on a GNU/Linux system, and unfortunately the skype extension does not work on Linux versions of Firefox/skype, so I can't

Accessing Firefox cache from an XPCOM component

落爺英雄遲暮 提交于 2019-12-08 00:13:46
问题 Does anybody know how to get local path of file cached by Firefox based on its URL from an XPCOM component? 回答1: To access cached items, new cache session must be created using createSession method provided in nsICacheService . This method creates nsICacheSession object. Information about cache item can be obtained using openCacheEntry method of the session object (method return nsICacheEntryDescriptor ). To read data user must open input stream using openInputStream method of the cache entry