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 227824 - Inconsistencies between browser switcher in toolbar and HTML5 project properties
Summary: Inconsistencies between browser switcher in toolbar and HTML5 project properties
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: Cordova (show other bugs)
Version: 7.4
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: Jan Becicka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-22 14:36 UTC by Petr Jiricka
Modified: 2013-03-28 02:15 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Jiricka 2013-03-22 14:36:00 UTC
Using the latest build from browser_toolbar_selector branch.

1. Create a HTML5 application
2. Go to Project properties -> PhoneGap

Problem 1: The dialog says "Run configurations for Android and iOS are not created" and displays the "Create Mobile Run Configurations button. This is irrelevent, as I don't need any run configurations since I don't have a PhoneGap application. It is even more confusing since the browser switcher combo box does contain mobile browsers.

3. Go to Run panel

Problem 2: The browser selection combo box in Run panel does not contain all the browsers available in the browser switcher combo box; in particular mobile targets are not present.

4. Cancel the dialog and switch the browser switcher in the toolbar to PhoneGap
5. Go to Project Properties -> Run

Problem 3: ProneGap checkbox is not checked - I would expect it to be checked since PhoneGap is my target (if we keep this checkbox at all). And vice versa, when I unckeck it, I would expect the browser switcher to be changed to some other browser.

One question related to this - should the browser switcher setting and the PhoneGap checkbox be shared among all users, or specific to each user? I would think that browser choice is private, whereas PhoneGap switch should be a shared setting, as that's a property of the project as such. Right now I see that the browser setting is in project.properties.
Comment 1 Jan Becicka 2013-03-25 10:08:15 UTC
Changeset: b5a730814da8
Author:    Jan Becicka <jbecicka@netbeans.org>
Date:      2013-03-25 10:53
Message:
Comment 2 Jan Becicka 2013-03-25 10:40:18 UTC
(In reply to comment #0)
> Using the latest build from browser_toolbar_selector branch.
> 
> 1. Create a HTML5 application
> 2. Go to Project properties -> PhoneGap
> 
> Problem 1: The dialog says "Run configurations for Android and iOS are not
> created" and displays the "Create Mobile Run Configurations button. This is
> irrelevent, as I don't need any run configurations since I don't have a
> PhoneGap application. It is even more confusing since the browser switcher
> combo box does contain mobile browsers.

Fixed

> 
> 3. Go to Run panel
> 
> Problem 2: The browser selection combo box in Run panel does not contain all
> the browsers available in the browser switcher combo box; in particular mobile
> targets are not present.

Bug? Davide?

> 
> 4. Cancel the dialog and switch the browser switcher in the toolbar to PhoneGap
> 5. Go to Project Properties -> Run
> 
> Problem 3: ProneGap checkbox is not checked - I would expect it to be checked
> since PhoneGap is my target (if we keep this checkbox at all). And vice versa,
> when I unckeck it, I would expect the browser switcher to be changed to some
> other browser.
> 
> One question related to this - should the browser switcher setting and the
> PhoneGap checkbox be shared among all users, or specific to each user? I would
> think that browser choice is private, whereas PhoneGap switch should be a
> shared setting, as that's a property of the project as such. Right now I see
> that the browser setting is in project.properties.

PhoneGap checkbox removed. It does not do anything any more. Build is controlled by switcher.
Comment 3 Petr Jiricka 2013-03-25 12:41:18 UTC
Thanks a lot Honzo, though with the latest state, I see a problem with distinguishing between PhoneGap and non-PhoneGap in new project wizard - I filed a separate issue 227901 for this.
Comment 4 David Konecny 2013-03-25 20:43:34 UTC
(In reply to comment #2)
> > Problem 2: The browser selection combo box in Run panel does not contain all
> > the browsers available in the browser switcher combo box; in particular
> > mobile targets are not present.
> 
> Bug? Davide?

That was my fault. Fixed in 3f90ed02e0df.
Comment 5 Petr Jiricka 2013-03-27 13:09:02 UTC
Verified. Regarding the shared/per-user setting dilemma, I filed this as a separate bug 227995.
Comment 6 Quality Engineering 2013-03-28 02:15:02 UTC
Integrated into 'main-golden', will be available in build *201303272300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/b5a730814da8
User: Jan Becicka <jbecicka@netbeans.org>
Log: Issue #227824 - Inconsistencies between browser switcher in toolbar and HTML5 project properties