Bug 199277 - Advanced browser selection
Advanced browser selection
Status: NEW
Product: javafx
Classification: Unclassified
Component: Deployment
7.1
PC Windows 7
: P3 with 1 vote (vote)
: 7.4
Assigned To: Roman Svitanic
issues@javafx
et_15
: PLAN
Depends on:
Blocks: 199283
  Show dependency treegraph
 
Reported: 2011-06-08 15:21 UTC by Anton Chechel
Modified: 2013-09-04 13:46 UTC (History)
5 users (show)

See Also:
Issue Type: TASK
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Chechel 2011-06-08 15:21:41 UTC
Currently NetBeans supports only selection of installed browser.

Requests from JavaFX SDK team:

1. User should be able to select not only family of installed web browser but also architecture (32 vs 64).
2. If user attempts to run as applet or WS app without having the corresponding Java + FX RT then NetBeans will instruct the user as to what he needs to do to fix the problem. It is said what FX SDK team will provide a utility to detect installed FX RT versions.
Comment 1 Antonin Nebuzelsky 2011-06-20 14:31:38 UTC
ad (1) - per offline discussion with David - there is a requirement that the user specifies the web browser for an individual project and certain actions (e.g. Run which is supposed to open a URL in a browser?) use this project-specific browser to display the URL.

Stando, what are your comments regarding possibility of this given the current browser-related APIs?

Jesse, comments related to having this only for JavaSE project with FX files? Another option to have the browser selection UI in options of all projects? (which would probably mean that all browser specific actions in all project types would need to specify the browser parameter?)
Comment 2 Stanislav Aubrecht 2011-06-20 15:19:42 UTC
(In reply to comment #1)
> ad (1) - per offline discussion with David - there is a requirement that the
> user specifies the web browser for an individual project and certain actions
> (e.g. Run which is supposed to open a URL in a browser?) use this
> project-specific browser to display the URL.
> 
> Stando, what are your comments regarding possibility of this given the current
> browser-related APIs?

URLDisplayer class has method showURLExternal(URL) to open given URL in external browser (at the moment it just delegates to the default browser option). perhaps we could extend options UI to allow selecting a different browser for this method. but i don't know if that would be enough...
Comment 3 Jesse Glick 2011-06-27 19:11:08 UTC
I do not see a simple solution. Is this really so important? Why would you want to use different browsers for different projects? Is the switching so common that it is impractical to just use Tools > Options > General > Web Browser?
Comment 4 Petr Jiricka 2011-06-28 07:50:26 UTC
I am wondering about that as well. In the context of web applications, per-project browser selection hasn't been requested by real users before.
Comment 5 Anton Chechel 2011-06-28 11:59:28 UTC
I am wondering why there was no requests from web users. IMHO it's very useful and it exists in Eclipse AFAIK.

Here are comments from Igor Nekrestyanov (FX SDK team):
===
IMHO, I do not think we have a requirement to do browser selection per project and store selection in project settings.

The requirement we have is that developer should be able to quickly test its project in different browsers.
Changing "Tools > Options > General > Web Browser" is not practical as web developers need to retest with multiple browsers often.

What i was thinking of as possible UE was:
  a) add UI to add browser browser configurations similar java platforms
      - browser platfroms are IDE wise, not save in project properties (except may be last browser selection for developer convinience) (note that if project is copied to other system and open in other NB then different set of browser may be available)
         In other words this is per user config, not per project.
      - browser is defined as
             - name/label
             - path to executable
             - 32 or 64 bit
             - command line options (by default empty but developer may use this to define custom browser sessions/profile to be used,  so his testing does not interfere with his other work)

  b) For FX projects have easy way to switch between different execution modes (in the toolbar?) Once applet execution is selected add pulldown menu to choose the browser to use. Either to toolbar or as menu on right click on the run/debug/profile buttons.
===

Would it be easier to implement if it will would not per project?
Comment 6 Petr Jiricka 2011-06-28 13:27:37 UTC
> I am wondering why there was no requests from web users.

I think this is because the requirement that "developer should be able to quickly test its project in different browsers" can be easily accomplished even now, using the following steps:
1. Run the application - this will open it in your default/preferred browser
2. Tes the application using this browser
3. Copy the URL from the address bar
4. Open another browser using UI provided by your operating system
5. Paste the URL in the address bar and test using this browser
6. Repeat steps 4 and 5 for other browsers that you wish to support
Comment 7 John Jullion-ceccarelli 2011-07-05 15:41:50 UTC
Sure, people can just copy and paste but that is not a very elegant solution. I think being able to test an app in a specific browser other than the IDE default browser is a valid use case. For example, I use Chrome for all of my work but I need to test my app in IE.

Anyway, with JavaFX the differences between 32 and 64 bit could be more significant than the differences between running a PHP app in 32 and 64 bit browser, so this requirement becomes more important.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo