xulrunner

XULRunner: Prevent links to arbitrary domains

核能气质少年 提交于 2019-12-07 21:07:14
问题 suppose, we have a Mozilla Prism like XULRunner app. There is a XUL window with a <browser/> element, where the browser shows a web page on a given domain (say, example.com). Now there are several links on example.com. If a user follows a local link (i.e., stays on example.com) she should be allowed to follow. If on the other hand the link goes to elpmaxe.moc, there should be (I don't mind) any of those two possibilities: The "real" browser opens (just like in Prism), or nothing happens. Any

How to run a XUL application in Mac OS X Snow Leopard?

一曲冷凌霜 提交于 2019-12-07 15:07:06
问题 I am trying to create a XUL "Hello World" application in Mac OS X. I download the XULRunner from here, followed this tutorial and then this tutorial and then this tutorial... None worked. So, I looked at it better and found this section, whose instructions I followed. Unfortunately, it does not work yet. I even can run the application with the command /Library/Frameworks/XUL.framework/xulrunner-bin $PWD/application.ini However, no window is presented and no error is printed. It happens when I

SWT x64 with xulrunner 3.6.28 x86

让人想犯罪 __ 提交于 2019-12-07 02:37:31
问题 is there any way to run xulrunner 3.6.28 (x86 there is no other) with swt x64? I cant use the newer xulrunner 10.4esr becouse i have some issues with it. The old one runs like a charm, but there is no x64 of it. If i try loading 3.6.28 i get some weird errors: org.eclipse.swt.SWTError: XPCOM error 0x80004005 at org.eclipse.swt.browser.Mozilla.error(Unknown Source) at org.eclipse.swt.browser.Mozilla.initXULRunner(Unknown Source) at org.eclipse.swt.browser.Mozilla.create(Unknown Source) at org

How to package a standalone xulrunner app for OS X?

耗尽温柔 提交于 2019-12-06 12:27:48
I'm trying to create a xulrunner app for OS X 10.9+. I need it to be standalone, i.e. to not require any extra additional software (including Firefox) to be installed on the box along with the app. I was not able to google up an up-to-date guide on how to do that. It seems that I've hit every issue described here: https://bugzilla.mozilla.org/show_bug.cgi?id=923979 One of the last ones is: $ open MyApp.app LSOpenURLsWithRole() failed with error -10810 for the file /Path/To/MyApp.app. Here is an what I have so far: https://drive.google.com/file/d/0BxRquYs2Nx92ZTZaVjk0QThMN2c/view?usp=sharing

XULRunner: Prevent links to arbitrary domains

别等时光非礼了梦想. 提交于 2019-12-06 05:13:40
suppose, we have a Mozilla Prism like XULRunner app. There is a XUL window with a <browser/> element, where the browser shows a web page on a given domain (say, example.com). Now there are several links on example.com. If a user follows a local link (i.e., stays on example.com) she should be allowed to follow. If on the other hand the link goes to elpmaxe.moc, there should be (I don't mind) any of those two possibilities: The "real" browser opens (just like in Prism), or nothing happens. Any ideas hwo to do this? It is not sufficient to use browser.document.onload or DOMready or such events,

Single-file app with xulrunner - possible?

女生的网名这么多〃 提交于 2019-12-05 19:39:41
I have tried to mess with xulrunner before, and now I'm trying once again :) The "real" tutorial ( Getting started with XULRunner - MDN ) does, in fact, show that one is supposed to have application.ini and other files ( possibly zipped as .xpi, which then requires --install-app ... ), and then the call should be like: xulrunner `pwd`/application.ini ... however, I'd like an easier way to start up - and hence, my hope for single-file XUL application approach :) ( A good note here is that one also cannot use the zipped .xpi as an argument to xulrunner , see XULRunner question - DonationCoder

SWT x64 with xulrunner 3.6.28 x86

ぃ、小莉子 提交于 2019-12-05 08:30:37
is there any way to run xulrunner 3.6.28 (x86 there is no other) with swt x64? I cant use the newer xulrunner 10.4esr becouse i have some issues with it. The old one runs like a charm, but there is no x64 of it. If i try loading 3.6.28 i get some weird errors: org.eclipse.swt.SWTError: XPCOM error 0x80004005 at org.eclipse.swt.browser.Mozilla.error(Unknown Source) at org.eclipse.swt.browser.Mozilla.initXULRunner(Unknown Source) at org.eclipse.swt.browser.Mozilla.create(Unknown Source) at org.eclipse.swt.browser.Browser.<init>(Unknown Source) at GUI.TFSBrowser$1.run(TFSBrowser.java:54) Any

How to know if the network is (dis)connected?

走远了吗. 提交于 2019-12-04 02:39:58
How can I know, in Xul, if the network is (dis)connected? --update Using: function observe(aSubject, aTopic, aState) { if (aTopic == "network:offline-status-changed") { write("STATUS CHANGED!"); } } var os = Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService); os.addObserver(observe, "network:offline-status-changed", false); and the preference: pref("network.manage-offline-status", true); it's not working.. There's a bug report here , but I don't think it has something to do with it. -- Actually I think it's not possible to be notified, as

Finding the difference in rows in query using SQLite

左心房为你撑大大i 提交于 2019-12-03 14:52:46
I have an SQLite table that contains prices for various products. It's a snapshot table, so it contains the prices on 5 minute intervals. I would like to write a query that would return the difference in price from one row to the next on each item. The columns are id (auto inc), record_id (id of the product), price (price at that point in time), time (just seconds since epoch) I'm trying to return a 'difference' column that contains a value of difference between intervals. Given the following id record_id price time 1 apple001 36.00 ... 67 apple001 37.87 ... 765 apple001 45.82 ... 892 apple001

Using the 64bit XulRunner in Eclipse SWT under Windows

一曲冷凌霜 提交于 2019-12-01 06:16:49
Is it possible to use the 64bit XulRunner for Windows ( available from here ) with the Eclipse browser widget? It works fine under 32bit Windows and the answer to this question explains how this works. But when I try this under 64bit Windows I get the following exception: org.eclipse.swt.SWTError: No more handles (java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons: no swt-xulrunner-win32-3834 in java.library.path no swt-xulrunner-win32 in java.library.path Can't load library: C:\Users\...\.swt\lib\win32\x86_64\swt-xulrunner-win32- 3834.dll Can't load library: C:\Users\...\.swt