Closed Bug 1634643 Opened 4 years ago Closed 4 years ago

Warning: Failed prop type: The prop `stacktrace` is marked as required in `StackTrace`, but its value is `null`.

Categories

(DevTools :: Netmonitor, defect, P3)

defect

Tracking

(firefox78 fixed)

RESOLVED FIXED
Firefox 78
Tracking Status
firefox78 --- fixed

People

(Reporter: Honza, Assigned: bomsy)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

STR:

  1. Load http://janodvarko.cz/firebug/tests/601/Issue601.htm
  2. Open DevTools and select the Network panel
  3. Click the POST button on the page to generate a request
  4. Select the request and pick Resend
  5. Click the new request to open the side bar and select the Stack Trace panel

Check out the Browser Console for the following error:

Warning: Failed prop type: The prop `stacktrace` is marked as required in `StackTrace`, but its value is `null`.
    in StackTrace (created by StackTracePanel)
    in StackTracePanel (created by TabboxPanel)
    in div (created by Panel)
    in Panel (created by TabboxPanel)
    in div (created by Tabs)
    in div (created by Tabs)
    in div (created by Tabs)
    in Tabs (created by Sidebar)
    in Sidebar (created by Tabbar)
    in div (created by Tabbar)
    in Tabbar (created by TabboxPanel)
    in TabboxPanel (created by NetworkDetailsBar)
    in div (created by NetworkDetailsBar)
    in NetworkDetailsBar
    in VisibilityHandler
    in Unknown (created by Connect(Component))
    in Connect(Component) (created by MonitorPanel)
    in div (created by SplitBox)
    in div (created by SplitBox)
    in SplitBox (created by MonitorPanel)
    in div (created by MonitorPanel)
    in MonitorPanel
    in VisibilityHandler
    in Unknown (created by Connect(Component))
    in Connect(Component) (created by App)
    in div (created by DropHarHandler)
    in DropHarHandler (created by App)
    in div (created by App)
    in App
    in VisibilityHandler
    in Unknown (created by Connect(Component))
    in Connect(Component)
    in Provider react-dev.js:2726:15
Severity: -- → normal
Has STR: --- → yes

Bomsy, this could be easy to fix.

Honza

Flags: needinfo?(hmanilla)

:Honza, if you think that's a regression, then could you try to find a regression range in using for example mozregression?

I can't see it in 76, so looks like a regression.

Honza

Yes its a regression. looking into it now.

Flags: needinfo?(hmanilla)

Default set stacktrace to [] if its falsy
Added check for empty array ahead to return early

Assignee: nobody → hmanilla
Status: NEW → ASSIGNED

Hard to test using mozregression since a special flag needs to be added into the .mozconfig file ac_add_options --enable-debug-js-modules
The attached patch fixes the problem so we seem to be good here.

Honza

Pushed by hmanilla@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d3b0b878f7c1
Make sure array is passed to stacktrace r=Honza
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 78
QA Whiteboard: [qa-78b-p2]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: