[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [platform-swt-dev] Browser on Linux vs "navigator.product"/"navigator.productSub"
|
- From: "Christopher Deckers" <chrriis@xxxxxxxxx>
- Date: Mon, 12 May 2008 21:03:49 +0200
- Delivered-to: platform-swt-dev@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=oCRsvXLqAGbqPL2Zk84ChvTL4qyM9C8O2Uzsi4dCmck=; b=pGk8JI1qBzdmOGjZ00HuXcufoOnC/z9qNdCc7drcdf5tsi4flKUFzZQChU3Jz8dtUK9h33nWatyPQ2StdAclVqurYKejf2iveiD/MLcV3I9uRZ/+EEhA2GELa7wEwtSe+1n/8bHLqse/iqGZUVWT1w6zrP8DxQq1XjlnCfopfzs=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Okq55PjoiLywZqehCzVMauMx2mYLy7l8mHkz+bF1IB8dvw+jO99QdD3V2yEGV3tvdGoJkItGzrkNPjor7AO7EHgADgQuq1ZxElgy1cmD6aGewPqFenBsLVYe1+SgTbqTThy+R42HLvNUjMhmtnyZxsvjyXHyUC/LPc1rHt8BUcU=
Hi Grant,
> What context do you see these properties returning as empty?
It is under Ubuntu, with XULRunner 1.8.1.4-2ubuntu5 (that is what I
see in Synaptic). I can trigger the alert at any time and I always get
an empty string.
Note that "http://www.fckeditor.net/demo" works under Firefox, but not
in the embedded Mozilla instance. Raising the SWT.MOZILLA flag does
not change anything either.
I quickly made a test case to cross check your findings, and I found a
reproducible freeze along the way: executing the alert before changing
the URL seems to hang the application (and Ctrl+C does not even work
then).
Let me know if I should open a bug report for any of these, the most
important feature for me at the moment being the "Gecko" stuff.
-Christopher
PS: the code that freezes is:
public static void main(String[] args) {
final Display display = new Display();
final Shell shell = new Shell(display);
shell.setLayout(new FillLayout());
final Browser browser = new Browser(shell, SWT.NONE);
browser.execute("alert(navigator.product);");
browser.setUrl("http://www.fckeditor.net/demo");
shell.setSize(800, 600);
shell.open();
while(!shell.isDisposed()) {
if(!display.readAndDispatch()) {
display.sleep();
}
}
display.dispose();
}