Closed Bug 520729 Opened 15 years ago Closed 14 years ago

last loaded title attribute retained during private browsing

Categories

(Firefox :: Private Browsing, defect)

x86_64
Windows Vista
defect
Not set
trivial

Tracking

()

RESOLVED FIXED
Firefox 3.7a4

People

(Reporter: bugzilla.3.ado2102, Assigned: ehsan.akhgari)

Details

Attachments

(1 file, 1 obsolete file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.2 NET_mmhpset (.NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.2 NET_mmhpset (.NET CLR 3.5.30729)

After exiting private browsing, the title attribute of the last image/link hovered on appears to be saved.  Make it pop up by holding down the middle mouse button and moving the cursor over the lower status bar (the one that says "done" when something is loaded).

Reproducible: Always

Steps to Reproduce:
CTRL+SHIFT+P (enter private browsing)

Browse website under private browsing.
Mouse over image or link with title attribute (pops up little yellow box with name)

CTRL+SHIFT+P (exit private browsing)

Press and hold middle mouse button.
Hover mouse over lower status bar (the one that says "done" when a page has finished loading)


Actual Results:  
Voila, the last loaded title attribute pops up as if you had just moused over the link again.

Expected Results:  
Deleted the title attribute from memory.
Whiteboard: [DUPEME]
searches didn't find a dupe.
Whiteboard: [DUPEME]
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.3a4pre) Gecko/20100406 Minefield/3.7a4pre

I can confirm this.  This is probably the most weird bug I've seen in the private browsing module!  This might be something to fix in session restore code, though.  Investigating.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Version: unspecified → Trunk
Attached patch Patch (v1) (obsolete) — Splinter Review
I think this would fix the problem.  I've posted the patch to the try server, and will verify the fix on Windows when it's finished.

I'm not sure if it's possible to test this automatically though.
Assignee: nobody → ehsan
Status: NEW → ASSIGNED
Comment on attachment 437415 [details] [diff] [review]
Patch (v1)

This doesn't solve the problem.  Still investigating.
Attachment #437415 - Attachment is obsolete: true
Attached patch Patch (v2)Splinter Review
OK, this patch actually solves the problem.  The same problem could be reproduced by getting a tooltip to show in one tab, then switching to another tab and performing the middle-mouse magic mentioned in comment 0.
Attachment #437427 - Flags: review?(gavin.sharp)
Comment on attachment 437427 [details] [diff] [review]
Patch (v2)

>diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js

>  * XXX - this must move into XBL binding/equiv! Do not want to pollute
>  *       browser.js with functionality that can be encapsulated into
>  *       browser widget. TEMPORARY!

TEMPORARY!, ha!

>- * NOTE: Any changes to this routine need to be mirrored in ChromeListener::FindTitleText()
>+ * NOTE: Any changes to this routine need to be mirrored in DefaultTooltipTextProvider::GetNodeText()

Good job on the CVS archeology :)

> function FillInHTMLTooltip(tipElement)
> {
>   var retVal = false;
>-  if (tipElement.namespaceURI == "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul")
>+  if (tipElement.namespaceURI == "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" ||
>+      !tipElement.ownerDocument)

Maybe add a comment here that explains what cases this is handling (tipElement is a document).
Attachment #437427 - Flags: review?(gavin.sharp) → review+
http://hg.mozilla.org/mozilla-central/rev/d0ccd8f2be49
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 3.7a4
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: