gecko

Force visible scrollbar in Firefox on Mac OS X

♀尐吖头ヾ 提交于 2019-12-02 19:04:12
Firefox 24 introduced Lion scrollbar support. This will show scrollbars in Lion style on Mac OS X. See: https://wiki.mozilla.org/Lion_Scrollbars/Triage This causes a problem for me: a scrollbar on a div is now hidden by default. Sometimes I want to force a visible scrollbar. For WebKit there is a nice solution (mentioned at https://davidwalsh.name/osx-overflow ): ::-webkit-scrollbar { -webkit-appearance: none; width: 7px; } ::-webkit-scrollbar-thumb { border-radius: 4px; background-color: rgba(0,0,0,.5); -webkit-box-shadow: 0 0 1px rgba(255,255,255,.5); } Does anybody know how I can force a

C# How to get cookies from GeckoWebBrowser control

随声附和 提交于 2019-12-01 23:17:35
问题 I am using the GeckoWebBrowser control for navigate an URL. It actually should have cookies when that page is loaded. But if I tried to get the cookie, I get a blank text even the page is loaded. GeckoWebBrowser m_Browser = ... // ... after navigated. string sCookie = m_Browser.Document.Cookie.ToString(); Is there another way to get the cookies from GeckoWebBrowser? Please help me. Thanks 回答1: This is verified to work with GeckoFX v29.0. var uri = new Uri(txtURL.Text); //often cookies are

C# How to get cookies from GeckoWebBrowser control

久未见 提交于 2019-12-01 23:07:26
I am using the GeckoWebBrowser control for navigate an URL. It actually should have cookies when that page is loaded. But if I tried to get the cookie, I get a blank text even the page is loaded. GeckoWebBrowser m_Browser = ... // ... after navigated. string sCookie = m_Browser.Document.Cookie.ToString(); Is there another way to get the cookies from GeckoWebBrowser? Please help me. Thanks This is verified to work with GeckoFX v29.0 . var uri = new Uri(txtURL.Text); //often cookies are stored on domain level, so ".google.com", not "www.google.com" (leading dot is important) string host = uri

排版引擎-Webkit,Gecko,Trident简介

强颜欢笑 提交于 2019-11-30 21:30:16
1.webkit WebKit是Mac OS X v10.3及以上版本所包含的软件框架(对v10.2.7及以上版本也可通过软件更新获取)。同时,WebKit也是Mac OS X的Safari网页浏览器的基础。WebKit是一个开源项目,主要由KDE的KHTML修改而来并且包含了一些来自苹果公司的一些组件。 WebKit跨平台之路: Symbian V3,iPhone OS,2008年10月22日投入市场的Android,其内置浏览器Google Chrome Lite是第一款Linux平台的稳定版WebKit浏览器 WebKit引擎的浏览器: Google Chrome,Safari,Maxthon 3(傲游3),QQ浏览器5,搜狗高速浏览器 2.Gecko(中文:壁虎) Gecko是一套开放源代码、C++编写的网页排版引擎。目前为Mozilla家族网页浏览器以及Netscape 6以后版本浏览器所使用。该引擎原本是由网景通信公司开发的,现则由Mozilla基金会维护。 这套排版引擎提供了一个丰富的程序接口以供互联网相关的应用程序使用,例如:网页浏览器、HTML编辑器、客户端/服务器等等。虽然最初主要针对Netscape和Mozilla Firefox的Mozilla派生产品,但现在已有很多其他软件在使用这个排版引擎。Gecko是跨平台的,能在Microsoft Windows

How to turn off the Marionette/gecko driver logs in selenium 3

时间秒杀一切 提交于 2019-11-30 18:01:31
I need to turn off the Marionette/GeckoDriver logging; is there is any way to do that? I've been searching a lot, but I am not getting the proper answer. The INFO logs were: 1484653905833 geckodriver INFO Listening on 127.0.0.1:15106 Jan 17, 2017 5:21:46 PM org.openqa.selenium.remote.ProtocolHandshake createSession INFO: Attempting bi-dialect session, assuming Postel's Law holds true on the remote end 1484653906715 mozprofile::profile INFO Using profile path C:\Users\vtiger\AppData\Local\Temp\3\rust_mozprofile.7d2LEwDKoE8J 1484653906720 geckodriver::marionette INFO Starting browser C:\Program

How can I add a recurring timer to a Firefox addon?

别等时光非礼了梦想. 提交于 2019-11-30 17:33:42
问题 I am trying to create an addon with the new addons builder preview (https://builder.addons.mozilla.org/), and I need a function to run about once every 10 minutes. I have tried both setInterval and setTimeout, but they both return the following error: error: An exception occurred. Traceback (most recent call last): File "resource://jid0-31njasqk3btmpa6paroepuybjn4-myaddon-lib/main.js", line 41, in setTimeout(function() { timedCount(); }, 10000); ReferenceError: setTimeout is not defined (with

How to turn off the Marionette/gecko driver logs in selenium 3

时光总嘲笑我的痴心妄想 提交于 2019-11-30 16:43:09
问题 I need to turn off the Marionette/GeckoDriver logging; is there is any way to do that? I've been searching a lot, but I am not getting the proper answer. The INFO logs were: 1484653905833 geckodriver INFO Listening on 127.0.0.1:15106 Jan 17, 2017 5:21:46 PM org.openqa.selenium.remote.ProtocolHandshake createSession INFO: Attempting bi-dialect session, assuming Postel's Law holds true on the remote end 1484653906715 mozprofile::profile INFO Using profile path C:\Users\vtiger\AppData\Local\Temp

render HTML (convert to bitmap)

风格不统一 提交于 2019-11-30 16:06:29
问题 Can somebody recommend the best (and preferably portable) way to render HTML documents onto a bitmap? As far as I understand my main 2 options are WebKit and Gecko, but I wasn't able to find a good starting point on how to do it. When I last tried doing this 5 years ago, I ended up using Gecko to send the document to a printer, which is not really what I need. I need rendering to a in-memory bitmap. To clarify: server side, no Java, no .NET, batch processing, performance, not interactive, no

render HTML (convert to bitmap)

萝らか妹 提交于 2019-11-30 16:02:44
Can somebody recommend the best (and preferably portable) way to render HTML documents onto a bitmap? As far as I understand my main 2 options are WebKit and Gecko, but I wasn't able to find a good starting point on how to do it. When I last tried doing this 5 years ago, I ended up using Gecko to send the document to a printer, which is not really what I need. I need rendering to a in-memory bitmap. To clarify: server side, no Java, no .NET, batch processing, performance, not interactive, no Javascript. You can do this from the command line using webkit2png.py , which uses Python and QtWebKit

Buttons too tall on Firefox

萝らか妹 提交于 2019-11-30 03:52:39
I've got a problem unique to Firefox. I'm trying to style links and buttons to look exactly the same. On every browser except Firefox, this works as desired. On Firefox, the height of the button's content is 18 pixels, compared to 15 pixels for the link. On Chrome, Safari, and Internet Explorer, they're both the proper 15 pixels tall. Why is this? Here's a demo on jsFiddle of the problem. Here's the result I get on Chrome: and here's the Firefox result: I've tried changing the height manually in CSS, but that doesn't entirely work and breaks the layout on other browsers. Setting -moz