Closed Bug 1481833 Opened 7 years ago Closed 7 years ago

SVG animVal breaks console

Categories

(DevTools :: Console, defect, P1)

61 Branch
defect

Tracking

(firefox-esr60 unaffected, firefox61- wontfix, firefox62- verified, firefox63- verified)

VERIFIED FIXED
Firefox 63
Tracking Status
firefox-esr60 --- unaffected
firefox61 - wontfix
firefox62 - verified
firefox63 - verified

People

(Reporter: testqwertyuiop888, Assigned: nchevobbe)

Details

Attachments

(2 files)

Attached image Test image
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0 Build ID: 20180704192850 Steps to reproduce: 1. Open the test case provided 2. Open developer tools, select "Console" tab 3. Type the following: document.querySelector("image"); 4. Expand "image" tag -> href -> animVal Actual results: Console is no longer shown - we get a blank tab (<https://cdn.discordapp.com/attachments/346085743426273280/476751339045519360/2018-08-08_16-57-10.png>) Expected results: Something that I don't understand - animVal should be expanded
Confirmed on Nightly - I'll have a look shortly
Assignee: nobody → nchevobbe
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Priority: -- → P1
60 is not affected, but only because we couldn't expand the value.
Okay, so this patch fixes the issue: https://phabricator.services.mozilla.com/D2949 I'm going to file an issue on Reps and see if there's a prettier way to get such getter (animVal gets send through rdp because it's a safe getter).
A PR was created in Reps https://github.com/devtools-html/debugger.html/pull/6785/files I think we should try to link the attached patch here so we can request an uplift more easily.
Attachment #8998556 - Flags: review?(odvarko)
Comment on attachment 8998556 [details] Bug 1481833 - Fix expanding getter returning longString; r=Honza. Jan Honza Odvarko [:Honza] has approved the revision.
Attachment #8998556 - Flags: review+
Comment on attachment 8998556 [details] Bug 1481833 - Fix expanding getter returning longString; r=Honza. Why Phabricator creates a new `review` flag? Is that known issue? Honza
Attachment #8998556 - Flags: review?(odvarko)
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1a03fc28195e Fix expanding getter returning longString; r=Honza.
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 63
Comment on attachment 8998556 [details] Bug 1481833 - Fix expanding getter returning longString; r=Honza. Approval Request Comment [Feature/Bug causing the regression]: Ability to expand a longString in the console [User impact if declined]: Console crashes if user try to expand a getter returning a long string. This might not be frequent since we only evaluate getters which are known to be side-effect free. [Is this code covered by automated tests?]: yes [Has the fix been verified in Nightly?]: yes [Needs manual test from QE? If yes, steps to reproduce]: yes, see Comment 0 for STR [List of other uplifts needed for the feature/fix]: - [Is the change risky?]: I don't think so. [Why is the change risky/not risky?]: The change is quite constrained, and there is a test makins sure everything works as expected [String changes made/needed]: -
Attachment #8998556 - Flags: approval-mozilla-beta?
Comment on attachment 8998556 [details] Bug 1481833 - Fix expanding getter returning longString; r=Honza. Fix for a dev tools crash, scope seems limited to dev tools console, let's uplift for beta 17.
Attachment #8998556 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0 (20180813190114) I was able to reproduce the mentioned behavior using Nightly build from 08/08/2018 and Beta 62.0b16 and the provided steps. Using the latest Nightly and Beta 62.0b17 build, the issue is not reproducible anymore on Windows 10 x64, OS X 10.12 and Ubuntu 18.04 x64. When loading the provided picture and run "document.querySelector("image");" in the console I`m able to expand the "image" tag -> href -> animVal without any issue. The console is able to display the value of "animVal" correctly.
Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: