This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 219040 - Running page in Chrome shows warning dialog
Summary: Running page in Chrome shows warning dialog
Status: VERIFIED FIXED
Alias: None
Product: ide
Classification: Unclassified
Component: Extbrowser (show other bugs)
Version: 7.3
Hardware: PC Linux
: P1 normal (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-26 08:30 UTC by Vladimir Riha
Modified: 2012-10-03 02:43 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
dialog (8.29 KB, image/png)
2012-09-26 08:30 UTC, Vladimir Riha
Details
IDE log (28.99 KB, text/x-log)
2012-09-26 10:14 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2012-09-26 08:30:01 UTC
Created attachment 124926 [details]
dialog

Following warning dialog is opened every FIRST time I run page (or project) in Chrome. If I run different/same page from project that is already running in browser, the dialog is not opened. If projectA is running in Chrome and I run projectB for the first time, dialog is again opened.

However it seems that everything works. New page is opened in browser, Select Mode, CSS styles etc. all fine


The command works in command line. I even tried to restart OS but no change.

I think this should be fixed for J1 even though it seems that everything is working but it gives bad impression. 



Chrome Version 22.0.1229.79
Product Version: NetBeans IDE Dev (Build 201209260001)
Java: 1.7.0_07; Java HotSpot(TM) Client VM 23.3-b01
System: Linux version 3.2.0-31-generic-pae running on i386; UTF-8; en_US (nb)
Comment 1 Vladimir Riha 2012-09-26 08:32:13 UTC
... if I change default browser in IDE from "Default System Browser" to "Chrome", nothing changes. The same dialog is also present if I run page in "Chrome" configuration (so w/o IDE integration)
Comment 2 Tomas Mysik 2012-09-26 09:16:49 UTC
Reassigning to David, perhaps he knows what is going on here.

Thanks.
Comment 3 David Konecny 2012-09-26 09:55:56 UTC
(In reply to comment #2)
> Reassigning to David, perhaps he knows what is going on here.

I don't. :-) Is this reproducible? On what platforms? In Beta or trunk? What are the steps to reproduce it? If reproducible then it should be easy to fix. I have not seen it before.
Comment 4 Vladimir Riha 2012-09-26 10:08:40 UTC
(In reply to comment #3)
> Is this reproducible? On what platforms? 

Yes, as I wrote even OS restart or fresh user dir does not help. 

Windows seems to be OK, I didn't try Mac. This is from Ubuntu 12.04 32b

> In Beta or trunk? 

in description, since beta is postponed I test only trunk

> are the steps to reproduce it?

as written in description, happens if you run project for the first time (so none of project's pages is already opened in browser) - you can either run project or run some file in it (but again, none of project's pages is opened in browser before running)
Comment 5 Vladimir Riha 2012-09-26 10:14:52 UTC
Created attachment 124930 [details]
IDE log

IDE log, but imho it doesn't say anything
Comment 6 Vladimir Riha 2012-09-26 10:37:56 UTC
I tried older build where it used to work and the issue is there now. So it is related either to OS updates or Chrome update
Comment 7 Vladimir Riha 2012-09-26 11:15:28 UTC
P2 since it to be only Ubuntu issue
Comment 8 Petr Jiricka 2012-09-26 11:59:06 UTC
Can not reproduce on:
Product Version: NetBeans IDE Dev (Build web-main-8674-on-20120926)
System: Mac OS X version 10.7.5 running on x86_64; UTF-8; en_US (nb)
Java 1.7.0_10-ea; Java HotSpot(TM) 64-Bit Server VM 23.4-b01; Oracle Corporation
Chrome 22.0.1229.79
Comment 9 Vladimir Riha 2012-09-26 13:15:13 UTC
I debugged that part and it seems that in UnixBrowserImpl.java in extbrowser module I'm getting "exitStatus" 23, no idea why. There seems to be a bug in Chrome, please check 

"Exit code 23 when opening URL in existing session"
http://code.google.com/p/chromium/issues/detail?id=146762

I can reproduce the error code from console using:
google-chrome http://www.google.com ; echo $?
Comment 10 David Konecny 2012-09-26 20:13:01 UTC
I will try to patch it by ignoring exitStatus when it is 23.
Comment 11 David Konecny 2012-09-26 20:43:31 UTC
Ignore exitStatus 23 - 6a0a901492f4. I will push the fix in few hours.
Comment 12 Vladimir Riha 2012-09-27 06:53:36 UTC
Thanks David, would it be possible to integrate it to Beta?  I think I am not going to be the only one facing this issue
Comment 13 Tomas Mysik 2012-09-27 06:55:02 UTC
(In reply to comment #12)
> Thanks David, would it be possible to integrate it to Beta?

I will do that once hg.netbeans.org is up again.

> I think I am not going to be the only one facing this issue

All Linux users are affected.
Comment 14 David Konecny 2012-09-27 07:40:33 UTC
I have not had a chance to push the fix yet.
Comment 15 Tomas Mysik 2012-09-27 10:01:34 UTC
I have applied patch from David. Láďo, please verify so I can backport it to Beta.

Thanks.

http://hg.netbeans.org/web-main/rev/6a049d33a3dd
Comment 16 Vladimir Riha 2012-09-27 11:11:15 UTC
Thanks. Verified, no warning dialog is opened. Please integrate it to Beta, thanks


Product Version: NetBeans IDE Dev (Build web-main-8687-on-20120927)
Java: 1.7.0_07; Java HotSpot(TM) Client VM 23.3-b01
System: Linux version 3.2.0-31-generic-pae running on i386; UTF-8; en_US (nb)
Comment 17 Tomas Mysik 2012-09-27 12:25:05 UTC
Backported.

http://hg.netbeans.org/releases/rev/038f9c503dbf
Comment 18 Quality Engineering 2012-09-27 18:11:19 UTC
Integrated into 'releases', will be available in build *201209271612* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/038f9c503dbf
User: Tomas Mysik <tmysik@netbeans.org>
Log: #219040 - Running page in Chrome shows warning dialog

Applied patch from David Konecny.
(transplanted from 6a049d33a3dd6ab8916c5a5b630afd4d9f9424af)
Comment 19 Vladimir Riha 2012-10-01 08:15:51 UTC
verified in beta


Product Version: NetBeans IDE 7.3 Beta (Build 201210010205)
Java: 1.7.0_07; Java HotSpot(TM) Client VM 23.3-b01
System: Linux version 3.2.0-31-generic-pae running on i386; UTF-8; en_US (nb)
Comment 20 Quality Engineering 2012-10-01 12:07:49 UTC
Integrated into 'main-golden', will be available in build *201210010929* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/6a049d33a3dd
User: Tomas Mysik <tmysik@netbeans.org>
Log: #219040 - Running page in Chrome shows warning dialog

Applied patch from David Konecny.
Comment 21 Quality Engineering 2012-10-03 02:43:10 UTC
Integrated into 'main-golden', will be available in build *201210030002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/6a0a901492f4
User: David Konecny <dkonecny@netbeans.org>
Log: #219040 - Running page in Chrome shows warning dialog