Closed Bug 593003 Opened 14 years ago Closed 14 years ago

WebConsole: iFrames can get associated to wrong HUD

Categories

(DevTools :: General, defect)

defect
Not set
normal

Tracking

(blocking2.0 final+)

RESOLVED FIXED
Tracking Status
blocking2.0 --- final+

People

(Reporter: julian.viereck, Assigned: msucan)

References

Details

(Whiteboard: [kd4b7])

Attachments

(1 file, 2 obsolete files)

Attached patch how-this-could-be-solved-patch (obsolete) — Splinter Review
It seems like iFrames get associated to the WebConsole that is opened in the current selected tab and not the WebConsole of the parentWindow the iFrames is added to.

Testcase:

Open the WebConsole on http://www.heise.de/ and on another page. Reload heise.de and switch over to the other tab with opened WebConsole. You will see network logging of iFrames of the heise.de page in the false/other WebConsole.

Patch:

The patch enclosed checks if the initialized window is an iFrames. If that's try the top most parent window is queried and the hudId is looked up by looking up the hudid associated with the parentWindow.
Assignee: nobody → pwalton
Whiteboard: [kd4b6]
Attachment #471460 - Flags: feedback?(ddahl)
Severity: normal → blocker
blocking2.0: --- → ?
Assignee: pwalton → mihai.sucan
Reprioritizing bugs. You can filter the mail on the word TEABAGS.
Severity: blocker → normal
Whiteboard: [kd4b6] → [kd4b7]
Attached patch proposed patch (obsolete) — Splinter Review
Proposed fix. The previous patch was correct in its intent on how to fix the issue, but there were some bugs which caused the entire WebConsole to fail during windowInitialize() - I think Julian did not have sufficient time to test the patch.

In this patch I've corrected the fix for the windowInitializer method, and I have also included an automatic test for the problem.
Attachment #471460 - Attachment is obsolete: true
Attachment #472615 - Flags: feedback?(ddahl)
Attachment #471460 - Flags: feedback?(ddahl)
Status: NEW → ASSIGNED
Attachment #472615 - Flags: feedback?(ddahl) → feedback+
Comment on attachment 472615 [details] [diff] [review]
proposed patch

Thank you David for the feedback+!

Asking for review from Shawn.
Attachment #472615 - Flags: review?(sdwilsh)
Blocks: 568643
Comment on attachment 472615 [details] [diff] [review]
proposed patch

nit: use the public domain license header in the tests please per http://www.mozilla.org/MPL/license-policy.html

r=sdwilsh
Attachment #472615 - Flags: review?(sdwilsh) → review+
Updated patch per reviewer comment. Thanks Shawn!
Attachment #472615 - Attachment is obsolete: true
Comment on attachment 473143 [details] [diff] [review]
[checked-in] updated patch

carried forward r+. approval requested to land this improvement to the console's handling of iframes.
Attachment #473143 - Flags: review+
Attachment #473143 - Flags: approval2.0?
Attachment #473143 - Flags: approval2.0? → approval2.0+
blocking2.0: ? → final+
Keywords: checkin-needed
Blocks: devtools4b7
Comment on attachment 473143 [details] [diff] [review]
[checked-in] updated patch

http://hg.mozilla.org/mozilla-central/rev/a7d83f9da547
Attachment #473143 - Attachment description: updated patch → [checked-in] updated patch
Marking the bug as fixed.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: