Closed Bug 739151 Opened 12 years ago Closed 12 years ago

Inspector 3D view (Tilt) doesn't support framesets

Categories

(DevTools :: Inspector, defect)

12 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 17

People

(Reporter: vporof, Assigned: sankha)

Details

(Whiteboard: [tilt][good first bug][mentor=vporof@mozilla.com][lang=js])

Attachments

(1 file, 1 obsolete file)

For example, open this page in Tilt: http://users.dsic.upv.es/~jsilva/wwv2012/ - It's much too flat :) Granted, it's hard to still find pages with framesets in them, but still, it would be nice to support them.

I think TiltUtils.jsm is the place to start. Specifically, the traverse() function doesn't handle framesets (or frames) at all, only iframes. Testing could be done by extending browser_tilt_utils05.js (it would be nice to add testing in that html string for both framesets, frames and iframes).
Whiteboard: [tilt][mentor=vporof@mozilla.com] → [tilt][mentor=vporof@mozilla.com][lang=js]
Added a whiteboard note to make this bug findable in http://is.gd/cS47Rb
Whiteboard: [tilt][mentor=vporof@mozilla.com][lang=js] → [tilt][good first bug][mentor=vporof@mozilla.com][lang=js]
Can you please assign me this bug? I would like to work on it.
Hey, thanks for the interest!
Let me know if you need any additional help.
Assignee: nobody → sankha93
Status: NEW → ASSIGNED
Attached patch Tilt now supports frames (obsolete) — Splinter Review
Attachment #638741 - Flags: review?(vporof)
Comment on attachment 638741 [details] [diff] [review]
Tilt now supports frames

Review of attachment 638741 [details] [diff] [review]:
-----------------------------------------------------------------

Thanks for the patch! Works nicely!

The reason we're creating a top level iframe in browser_tilt_utils05.js is just to have some DOM we'll parse later, which is given by the html string for the iframe source. The test you added doesn't address the actual content that will eventually be displayed in Tilt, but makes the visualized document container a frame instead of iframe.

For the test, please revert back to using an iframe as a container, like in the utils05.js test, and add some more intricate frameset(s) + frames in the html source string. Please make sure that you're handling interesting cases like multiple frames, iframes, maybe a couple of framesets as well. You can also remove all the extra nodes that are already tested in utils05.js, like script and head.
Attachment #638741 - Flags: review?(vporof)
Attachment #638741 - Attachment is obsolete: true
Attachment #640924 - Flags: review?(vporof)
Comment on attachment 640924 [details] [diff] [review]
Updated the tests with nested frames

Review of attachment 640924 [details] [diff] [review]:
-----------------------------------------------------------------

This is an awesome patch! Thanks!
Definitely r+ for a great and comprehensive test.

Pushed to try: https://tbpl.mozilla.org/?tree=Try&rev=ac47d6d7876f
Attachment #640924 - Flags: review?(vporof) → review+
Comment on attachment 640924 [details] [diff] [review]
Updated the tests with nested frames

Rob, please take a look so we can land this.
Attachment #640924 - Flags: review?(rcampbell)
Comment on attachment 640924 [details] [diff] [review]
Updated the tests with nested frames

you bet!

thanks for the patch! :D
Attachment #640924 - Flags: review?(rcampbell) → review+
Whiteboard: [tilt][good first bug][mentor=vporof@mozilla.com][lang=js] → [tilt][good first bug][mentor=vporof@mozilla.com][lang=js][land-in-fx-team]
https://hg.mozilla.org/integration/fx-team/rev/564ed4fde8ab
Whiteboard: [tilt][good first bug][mentor=vporof@mozilla.com][lang=js][land-in-fx-team] → [tilt][good first bug][mentor=vporof@mozilla.com][lang=js][fixed-in-fx-team]
https://hg.mozilla.org/mozilla-central/rev/564ed4fde8ab
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [tilt][good first bug][mentor=vporof@mozilla.com][lang=js][fixed-in-fx-team] → [tilt][good first bug][mentor=vporof@mozilla.com][lang=js]
Target Milestone: --- → Firefox 17
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: