#22716 closed defect (bug) (fixed)
Exiting new media modal pushes user to bottom of page in Firefox
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.5 | Priority: | normal |
Severity: | normal | Version: | 3.5 |
Component: | Media | Keywords: | has-patch needs-testing commit |
Focuses: | Cc: |
Description
When exiting the new media modal in Firefox 17.0 on a Mac, I am pushed to the bottom of the screen. Steps to reproduce:
- Open a new post ("Add New Post")
- Press "Add Media"
- Press the upper-right-hand "x" to close the media window
At this point, one's page is pushed to the bottom, regardless of where the page position was prior to opening the media modal. I'm not sure this is intended behavior, as this doesn't happen in most other browsers. I believe I also saw this once in Safari 6.0.2 but was not able to do again.
Attachments (2)
Change History (20)
#2
@
12 years ago
- Keywords dev-feedback added
I can reproduce this closing the modal via both QuickPress and the post editor in Firefox. It's similar behavior to what I noted in the second bullet point in comment:ticket:21776:48, only in this case there's no hash being appended to the URL.
#3
@
12 years ago
A short screencast to illustrate the point: http://screencast.com/t/nv4aQsAGFRLc
#5
in reply to:
↑ description
@
12 years ago
Replying to tomthewebmaster:
When exiting the new media modal in Firefox 17.0 on a Mac, I am pushed to the bottom of the screen. Steps to reproduce:
- Open a new post ("Add New Post")
- Press "Add Media"
- Press the upper-right-hand "x" to close the media window
At this point, one's page is pushed to the bottom, regardless of where the page position was prior to opening the media modal. I'm not sure this is intended behavior, as this doesn't happen in most other browsers. I believe I also saw this once in Safari 6.0.2 but was not able to do it again.
#6
@
12 years ago
I can reproduce, but it must be pretty new unintentional behavior. Definitely had not noticed it before. Happens on any screen, with any method of closing the modal, including insertion or setting the featured image.
#7
@
12 years ago
Actually, it appears that it's happening on open, not close. Watch the page behind the modal.
#9
@
12 years ago
Thanks for the patch, johnkleinschmidt. Unfortunately, removing .focus()
is insufficient, as that will break keyboard shortcuts.
#10
@
12 years ago
- Keywords has-patch needs-testing added; dev-feedback removed
attachment:22716.2.diff records the original scroll position of the window and restores the scroll position on close. It also locks scrolling on the document, so scrolling in the modal will not scroll the document.
#13
@
12 years ago
I figured there was a good reason for the focus call and didn't think about needing it for keyboard shortcuts.
Your patch fixes it for me too.
#14
@
12 years ago
Works for me in FF. Tested in iPad for fun, with no ill effects noted, although you can still scroll the document there.
#16
@
12 years ago
- Keywords commit added
Fixes it. No ill effects in Chrome. Locks scrolling of background document in Chrome and FF (which is a win for a serious annoyance!).
I know helenyhou uses Firefox, and she has not reported this. Try checking plugin conflicts?