Closed Bug 699308 Opened 13 years ago Closed 13 years ago

[highlighter] highlighter closes during iframe requests

Categories

(DevTools :: General, defect, P1)

defect

Tracking

(Not tracked)

VERIFIED FIXED
Firefox 10

People

(Reporter: rcampbell, Assigned: msucan)

Details

(Whiteboard: [fixed-in-fx-team][[testday-20111125]])

Attachments

(1 file, 1 obsolete file)

STR:

1. open a page with AJAX on it. (e.g., http://arstechnica.com/apple/news/2011/11/stale-mac-pro-lineup-has-pro-users-concerned.ars)
2. open the highlighter
3. wait.

Expected:

highligher stays up.

Actual:

When an XMLRPC request fires, the highlighter closes.
This is caused by the InspectorProgressListener, see onStateChange():

    // If the request is about to happen in a new window, we are not concerned
    // about the request.
    if (aProgress.DOMWindow != this.IUI.win) {
      return;
    }

The check above is not sufficient.
Summary: [highlighter] highlighter closes during xmlrpc requests → [highlighter] highlighter closes during iframe requests
Attached patch proposed fix (obsolete) — Splinter Review
This is the proposed fix. We just needed more fine-tuning of filtering the states. Please test and let me know if this patch fixes the problem. It does on my system.

The patch is missing a test because (1) it's late here and (2) we can't run mochitests anymore.

If we get a fix for running mochitests by tomorrow or Monday, I'd happily write a test for this patch.

Given the importance of this fix we should try as much as possible to land this in time for fx10.

Looking forward for your feedback. Thank you!
Assignee: nobody → mihai.sucan
Status: NEW → ASSIGNED
Attachment #572216 - Flags: feedback?(rcampbell)
OS: Mac OS X → All
Hardware: x86 → All
Version: unspecified → Trunk
tests should be fixed now if you repull from m-c or fx-team.

I'll test this locally and give it a read through. Thanks!
Comment on attachment 572216 [details] [diff] [review]
proposed fix

This tested well here. I ran it against Yahoo's front page and moused over the middle part of the page that has the different stories associated with pictures and the Highlighter stayed up. I'll look around on a couple of other sites I was seeing this happening on, but I think this'll work.
Attachment #572216 - Flags: feedback?(rcampbell) → feedback+
Priority: -- → P1
Attached patch fix + testSplinter Review
Updated patch. Added a mochitest. Two javascript:location.reload() calls in the iframe are sufficient to trigger the bug.

Looking forward for your review. Thank you!

(asking both for review, I don't know who has time to get to review the patch sooner)
Attachment #572216 - Attachment is obsolete: true
Attachment #572293 - Flags: review?(rcampbell)
Attachment #572293 - Flags: review?(dcamp)
Comment on attachment 572293 [details] [diff] [review]
fix + test

yup!
Attachment #572293 - Flags: review?(rcampbell) → review+
https://hg.mozilla.org/mozilla-central/rev/ec6b4d73b906
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 10
Attachment #572293 - Flags: review?(dcamp)
Verified fixed using
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:10.0a2) Gecko/20111124 Firefox/10.0a2
and
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0a2) Gecko/20111123 Firefox/10.0a2
Status: RESOLVED → VERIFIED
Whiteboard: [fixed-in-fx-team] → [fixed-in-fx-team][[testday-20111125]]
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: