Closed Bug 1571318 Opened 6 years ago Closed 6 years ago

Event bubble inline source code view scrolling is broken

Categories

(DevTools :: Inspector, defect)

defect
Not set
normal

Tracking

(firefox-esr60 unaffected, firefox-esr68 unaffected, firefox68 unaffected, firefox69 unaffected, firefox70 fixed)

RESOLVED FIXED
Firefox 70
Tracking Status
firefox-esr60 --- unaffected
firefox-esr68 --- unaffected
firefox68 --- unaffected
firefox69 --- unaffected
firefox70 --- fixed

People

(Reporter: rowbot, Assigned: jdescottes)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [qa-70b-p2])

Attachments

(2 files)

Attached image inspector.PNG

Sorry, not sure what feature name this goes by anymore (Visual Events/Event Bubbles/Examine Event Listener)? The inline source code viewer seems to overflow its container, causing text to appear cutoff.

STR:

  1. Go to a page with event listeners registered. (Firefox's Activity Stream should do fine)
  2. Click on the event bubble next to the element in the Inspector.
  3. Find an event that requires you to scroll to see the entire source code inline.
  4. The bottom of the source code view is cutoff.
Component: General → Inspector

I can reproduce this on nightly, but not on devedition by opening any event bubble to view the inline source. Looking at the differences between the css. It seems we are no longer setting the iframe width and height, which contains the CM editor.

For comparison, this is the CSS I saw that was missing:
width: 100%;
height: 100%;
border-style: none;

@miker, any chance you could look at this?

Flags: needinfo?(mratcliffe)

This does not appear to be a regression. It seems we are running into a CSP when calling setAttribute for an iframe in EventTooltipHelper.js#265.

This is the error reported:
Content Security Policy: The page’s settings blocked the loading of a resource at inline (“default-src”). EventTooltipHelper.js:265:13

One idea for the fix would be to add a class for the iframe and move the styles into the tooltips.css stylesheet.

I will take it since it's a regression from the CSP change

Assignee: nobody → jdescottes
Status: NEW → ASSIGNED
Flags: needinfo?(mratcliffe)
Pushed by jdescottes@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9c4d643cd88a Stop using inline styles in event tooltip r=gl
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 70
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: