Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 340897 - [client] Focus issue when logging in at coding.html
Summary: [client] Focus issue when logging in at coding.html
Status: CLOSED INVALID
Alias: None
Product: Orion
Classification: ECD
Component: Editor (show other bugs)
Version: 0.2   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-24 14:46 EDT by Mark Macdonald CLA
Modified: 2011-10-27 15:34 EDT (History)
2 users (show)

See Also:


Attachments
Screenshot of the focus issue (115.34 KB, image/png)
2011-03-24 14:49 EDT, Mark Macdonald CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Macdonald CLA 2011-03-24 14:46:16 EDT
1. Log in to orion.eclipse.org
2. Browse to the default content in org.eclipse.orion.client.core, and open a .JS file.
4. Copy the resulting URL from your address bar. Mine was:
  http://orion.eclipse.org/coding.html#/file/org.eclipse.orion.client.core/static/js/auth.js
5. Using a different browser, navigate to the link that you just copied.
6. You'll see the login dialog. Hit Reload.
7. At this point the page refreshes, and you'll see the login dialog again. But, the editor also loads and shows the content of auth.js. It receives focus, the caret appears, and I can type in it. This all happens while the editor is greyed out and the login dialog is still visible.

It seems that after the editor manages to successfully load a file, it steals focus from the login dialog. Normally the editor fails to load (403) when you need to log in, so you don't see this issue. But since the default content on orion.eclipse.org is viewable by everyone, the editor will load it and steal focus.
Comment 1 Mark Macdonald CLA 2011-03-24 14:49:52 EDT
Created attachment 191854 [details]
Screenshot of the focus issue

Here's a picture
Comment 2 Mark Macdonald CLA 2011-03-24 15:40:15 EDT
(In reply to comment #0)
> since the default content on orion.eclipse.org is viewable by everyone, the
> editor will load it and steal focus.

Correction: since everything on orion.eclipse.org is publicly viewable, this happens on any file, not just the default content
Comment 3 Mark Macdonald CLA 2011-10-27 15:34:36 EDT
The login widget doesn't steal focus anymore. Closing...