mozilla

saveDocument() function from NSIWebBrowserPersist

我怕爱的太早我们不能终老 提交于 2019-12-04 20:18:36
As far as I know, 'save as..' feature from Firefox browser also uses this function, so I tried to implement this function in my code. All went well except the saved css and javascript files. They contain weird numbers. 'Save as..' from Firefox does not do this. Did I do something wrong? What I did: webBrowserPersist.saveDocument(content.document, file, dir, null, null, null); Did I miss something? Am I supposed to change MIME or encoding flags? (I don't understand these 4th and 5th parameters by the way) Thanks in advance. https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Reference

Open eclipse juno with error “No more handles …” in Ubuntu 12.04

故事扮演 提交于 2019-12-04 17:49:41
问题 Starting today, every time I open up the eclipse, I got a message box with title "Problem Occured" pops up saying: No more handles [Unknown Mozilla path (MOZILLA_FIVE_HOME not set)] possible args: {0}, {1}, {2}, {3} No more handles [Unknown Mozilla path (MOZILLA_FIVE_HOME not set)] Then I click "OK" and proceed to the workbench, I got another error saying An SWT error has occurred. You are recommended to exit the workbench. Subsequent errors may happen and exit the workbench without warning.

getUserMedia for Firefox OS

こ雲淡風輕ζ 提交于 2019-12-04 16:52:05
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 that I would need to add? getUserMedia support for the microphone landed in FxOS v1.2. getUserMedia

WebKit vs Mozilla vertical alignment of font glyphs in box

半腔热情 提交于 2019-12-04 16:43:13
问题 This test image shows how wildly different Safari positions text inside a box vs Firefox (Safari 5.0.5 and Firefox 5.0.1 for Mac OS X 10.6.7). Notice how the "S" for sans-serif is butted up to the top of the box in Firefox and not Safari. The difference seem to vary depending on typeface used, where some are even consistently rendered. I've read people saying that this is because of rounding issues between font-size and line-height (and fixed by setting smaller height than size), but I think

highlight the text of the DOM range element,

限于喜欢 提交于 2019-12-04 16:15:12
I am able to highlight the text on the HTML page(rendered through gtkmozembed), which is selected, like below. var range, sel; if (window.getSelection) { sel = window.getSelection(); if (sel.getRangeAt) { range = sel.getRangeAt(0); } document.designMode = "on"; if (range) { sel.removeAllRanges(); sel.addRange(range); } document.execCommand("HiliteColor", false, colour); document.designMode = "off"; } Well,it works very fine.Now i am trying to store the information(startNode, startOffset,endNode, endOffset) about the highlighted text, and next time when i open the same page,highlight the same

access2.log

只谈情不闲聊 提交于 2019-12-04 13:46:06
30.99.225.148 - - [15/Nov/2019:16:59:03 +0800] "GET /apiInterface/pig/fun/button/authcode?_r_=17673529 HTTP/1.1" 200 2944 "http://config.iag.pingan.com/?isAdmin=1" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36" 30.99.225.148 - - [15/Nov/2019:16:59:03 +0800] "GET /apiInterface/pig/user/account?_r_=14167508 HTTP/1.1" 200 249 "http://config.iag.pingan.com/?isAdmin=1" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36" 30.99.225.148 - - [15/Nov/2019:16

access3.log

混江龙づ霸主 提交于 2019-12-04 13:45:32
30.99.225.157 - - [15/Nov/2019:16:04:35 +0800] "GET /apiInterface/pig/department/employee/cur/user/employee?_r_=10588190 HTTP/1.1" 200 65 "http://config.iag.pingan.com/?isAdmin=1" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36" 30.99.225.157 - - [15/Nov/2019:16:04:36 +0800] "GET /apiInterface/pig/org/list/sys?current=1&pageSize=10&_r_=19014144 HTTP/1.1" 200 2471 "http://config.iag.pingan.com/?isAdmin=1" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537

Qt请求http地址数据

≯℡__Kan透↙ 提交于 2019-12-04 13:30:38
QNetworkAccessManager *manager = new QNetworkAccessManager(this);; QNetworkRequest network_request; QByteArray post_data; network_request.setUrl(QUrl("http://109.26.149.57:8080/tsinghuaVC/init/selectAllFolder.action")); network_request.setHeader(QNetworkRequest::UserAgentHeader,"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 UBrowser/6.2.4098.3 Safari/537.36"); connect(manager, SIGNAL(finished(QNetworkReply*)),this, SLOT(replyFinished(QNetworkReply*))); //发送请求 manager->get(network_request); void replyFinished(QNetworkReply* reply) { QTextCodec

mozilla specific css [duplicate]

巧了我就是萌 提交于 2019-12-04 13:21:49
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: Targeting only Firefox with CSS I need to target firefox specifically because of their min-width / box-sizing bug. So I have 1 normal min-width , but for mozilla I want a different min-width . Is there any pure CSS/HTML solution available? Thanks 回答1: You can use the following to target (as far as I understand it) all versions of Firefox, and nothing else: @-moz-document url-prefix() { /* firefox-only css goes

Console logging from a Firefox add-on

北城以北 提交于 2019-12-04 12:38:13
The Mozilla documentation ( https://addons.mozilla.org/en-US/developers/docs/sdk/latest/dev-guide/console.html ) says that I should use console.log to generate messages from an extension. Those messages are said to appear in the Firefox Error Console. But this is not the case for me. I'm using the Addon builder for the first time today, and I'd like to create an extension that switches tabs on certain events. The tabs are indeed switched, and to a tab which I expected, so my code definitely runs. But the console.log output is nowhere to see. I have set the filter to "All". All I see are CSS