Remember the urlbar being focused when switching to a tab with a modal prompt

VERIFIED FIXED in Firefox 7

Status

()

Firefox
Tabbed Browser
VERIFIED FIXED
6 years ago
3 years ago

People

(Reporter: dao, Assigned: dao)

Tracking

Trunk
Firefox 7
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

6 years ago
Created attachment 542827 [details] [diff] [review]
patch
Attachment #542827 - Flags: review?(gavin.sharp)
Comment on attachment 542827 [details] [diff] [review]
patch

can you add a test to browser_tabfocus.js?
Attachment #542827 - Flags: review?(gavin.sharp) → review+
(Assignee)

Comment 2

6 years ago
A test involving a tab-modal prompt? I'd rather not...
(Assignee)

Comment 3

6 years ago
http://hg.mozilla.org/mozilla-central/rev/23101a6aa6c3
Status: ASSIGNED → RESOLVED
Last Resolved: 6 years ago
Flags: in-testsuite?
Resolution: --- → FIXED
Target Milestone: --- → Firefox 7

Comment 4

6 years ago
Can you provide some STR please in order to verify this.
Thx
(Assignee)

Comment 5

6 years ago
1. Open data:text/html,<script>alert(1)</script> and don't close the alert
2. Switch back to the previous tab
3. Focus the location bar
4. Switch back to the tab you opened
5. Switch back to the previous tab

-> The location bar should be focused again

Comment 6

6 years ago
Considering comment5, setting resolution to Verified Fixed on Mozilla/5.0 (Windows NT 6.1; rv:7.0) Gecko/20100101 Firefox/7.0 beta 2
Status: RESOLVED → VERIFIED

Comment 7

6 years ago
This behavior does not apply to
Mozilla/5.0 (X11; Linux x86_64; rv:7.0) Gecko/20100101 Firefox/7.0 beta 2 and also the 32 bit version.

After flowing the steps from comment5, the location bar isn't in focus.
(Assignee)

Updated

3 years ago
Flags: in-testsuite?
You need to log in before you can comment on or make changes to this bug.