xulrunner

XULRunner ignores updates on edited files

﹥>﹥吖頭↗ 提交于 2019-12-12 01:37:44
问题 I am writing a XUL application following the default structure for standalone XUL apps - that is, I have the following files: ./application.ini ./chrome ./chrome/chrome.manifest ./chrome/content ./chrome/content/main.xul ./chrome.manifest ./defaults ./defaults/preferences ./defaults/preferences/prefs.js What bothers me is that sometimes I run my application with xulrunner, note something wrong and go change my main.xul file. However, when I run my application again with xulrunner, the

SWT-Browser: How to load a resource using HTTPS if the certificate is untrusted?

让人想犯罪 __ 提交于 2019-12-11 14:12:11
问题 I am using the SWT Browser Widget to load the image of a webcam-server via HTTPS. Sadly the webcam-server certificate is untrusted. I tried to 2 variants to load the image: Browser.setHTML(String) Load the image using HTML+JavaScript every second. This is the prefered way to avoid flickering. This works very fine for HTTP, if i have a HTTPS connection i will see noting at all except my alternative text. Browser.setUrl(String) Load the image by setting the URL every second. This causes massiv

Is it possible to reference remote content from chrome.manifest? (XULRunner)

白昼怎懂夜的黑 提交于 2019-12-11 13:22:56
问题 I have a xulrunner application and I've been trying to reference remote content from chrome.manifest file. Tt's an application for the company I work in; it's run on a number of computers (most of them are used by other employees as well) as a kind of an internet monitoring service. The problem I'd like to solve is this: updating the code of such application usually requires me to manually copy the modified files to every computer that the application is running on (I've had no luck trying to

In XUL or JavaScript, is there a way to move the mouse cursor to specified position?

故事扮演 提交于 2019-12-11 06:36:32
问题 In XUL or JavaScript, is there a way to move the mouse cursor to specified position? 回答1: The only time that Gecko moves the mouse is on Windows for the snap-to-default-button effect. This is used by XUL dialogs and wizards. The backend code doesn't actually check that you're giving it a button; any XUL control works. The mouse is moved to the centre of the element, if that point is on-screen, and the window is active. Normally the code checks that the system cursor snapping is enabled, but

In xul, how to retrieve an environment variable?

一个人想着一个人 提交于 2019-12-10 23:13:05
问题 I have an environment called $REP , how can I access the value of this variable using Xulrunner in a Linux environment? --udpate attempting with nslEnvironment: var env = Components.classes["@mozilla.org/process/environment;1"].getService(Components.interfaces.nsIEnvironment); dump("bash=" + env.exists("BASH") + '\n'); dump("bash=" + env.exists("$BASH") + '\n'); the output was: bash=false bash=false as you imagine, it should output "/bin/bash" as it does in the terminal. I also tried using

Get the visible range in Firefox

丶灬走出姿态 提交于 2019-12-10 11:57:39
问题 Is it possible to get the current viewport Range (the visible part of the page inside the browser) using XUL functions from Javascript or plain Javascript? Thank you! 回答1: For the viewport you need to use document.documentElement.scrollTop / scrollLeft / scrollHeight / scrollWidth . There is a slight complication: I think that in quirks mode ( document.compatMode is "BackCompat" ) you need to check these properties on document.body instead of document.documentElement . See https://developer

Is it possible to use local resources from a web-delivered XUL app?

…衆ロ難τιáo~ 提交于 2019-12-10 11:04:13
问题 Is there a way to execute a XUL program delivered via "trusted" web site outside of the browser sandbox? My XUL program executes beautifully in local XULRunner and in firefox with the -add parameter. Now, I'd like to put it on my secure intranet and allow users to click a button which will launch it. My app has behaviors that access local resources such as .exes, so it seems like the browser sandbox will prohibit the app from carrying out those behaviors. But I'd really like to create a

How to use XULRunner to run SQLite Manager outside of Firefox in Mac OS X Lion?

扶醉桌前 提交于 2019-12-10 10:54:23
问题 I have installed XULRunner 11.0 (xr) from here: Downloads - sqlite-manager - Extension for Firefox and other apps to manage any sqlite database - Google Project Hosting I have followed the steps listed here: kiveo - Mac SQLite Manager Standalone App I have read and tried the suggestions here (though they're for version 6.0): stackoverflow: How to Install and run a XulRunner Application on Mac OS X? I am able to get the help listing with this command: /Library/Frameworks/XUL.framework

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 can I open pdf files in SWT browser window while using XULRunner?

拜拜、爱过 提交于 2019-12-08 09:16:40
问题 I am working on an eclipse based application wherein I need to preview pdf documents as part of a functionality. As of now clicking on preview button opens a prompt for saving the pdf but it does not directly open the document in the required window. Is there any way where I can add any arguments/Plugins in the XULRunner or the application's ini file so that the pdf can be opened in the window itself by default ? (I am using Red Hat Linux 6.5 (Santiago)) 回答1: The following applies to Linux