Closed Bug 669686 Opened 13 years ago Closed 13 years ago

Changing innerHTML of a link while url overlay is showing results in stuck overlay

Categories

(Firefox :: General, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 647665

People

(Reporter: eugene.zar, Unassigned)

Details

Attachments

(1 file, 1 obsolete file)

Attached file firefox-innerhtml-url-testcase.html (obsolete) (deleted) —
User Agent: Mozilla/5.0 (Windows NT 5.1; rv:6.0a2) Gecko/20110705 Firefox/6.0a2 Build ID: 20110705042005 Steps to reproduce: Test case attached 1. Hover over a link such as <a href="#anything">Anything</a> 2. Note that the correct value shows in the URL overlay 3. Click the link. 4. The event listener then replaces the innerHTML of some ancestor of the link. (see code in attached testcase) Actual results: The URL overlay continues to show the link's URL, even though the link is gone. Moving your mouse doesn't make it disappear, either -- only taking some action that would normally trigger the overlay to change actually returns the overlay to the correct behavior. Expected results: The URL overlay disappears. (Though in theory, if it was replaced with a new link or something that would normally trigger an overlay, it should.)
I reproduced this in the latest nightly, 7.0a1 (2011-07-05), as well as the current stable and beta.
Attachment #544290 - Attachment mime type: text/plain → text/html
Attached file Working Testcase (deleted) —
Sorry, testcase wasn't working. Fixed now.
Attachment #544290 - Attachment is obsolete: true
Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.2.18) Gecko/20110614 Firefox/3.6.18 Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20100101 Firefox/5.0 Mozilla/5.0 (X11; Linux x86_64; rv:8.0a1) Gecko/20110706 Firefox/8.0a1 My status bar shows "http://www.google.com" both when hovering and after clicking the link.
@Thomas That is the issue. The link is gone -- the status bar should no longer show a URL at all. The test case is simple to make understanding the issue simple, but I spotted this bug at work where we were designing a "lightbox" widget in JS. When you click a link within the lightbox, we make an XMLHttpRequest call and use innerHTML to replace the entire lightbox. The content is replaced with something that has no links, but the status bar continues to show the previous link, which is confusing, it seems like if you click within the lightbox you'll be taken somewhere else.
OS: Other → All
Version: 7 Branch → Trunk
Attachment #544328 - Attachment mime type: text/plain → text/html
Maybe related to/Dupe of Bug 647665/Bug 629024 (and those + this to a yet-to-be-found ancient Core Bug)?
There is anything new about this issue?
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: