Fix React warning in devtools/client/responsive/components/Browser.js `os: PropTypes.String`
Categories
(DevTools :: Responsive Design Mode, task, P3)
Tracking
(firefox77 fixed)
Tracking | Status | |
---|---|---|
firefox77 | --- | fixed |
People
(Reporter: jdescottes, Assigned: alisaur, Mentored)
Details
(Keywords: good-first-bug)
Attachments
(1 file)
What were you doing?
- Build Firefox with the build option
ac_add_options --enable-debug-js-modules
- Run Firefox
- Open RDM
What happened?
Several similar warnings about devices.phones[0].os
are logged, for instance:
Warning: Failed prop type: App: prop type `devices.phones[0].os` is invalid; it must be a function, usually from the `prop-types` package, but received `undefined`.
in App (created by Connect(App))
in Connect(App)
in Provider
What should have happened?
No error should be logged.
Anything else we should know?
The fix should be easy
os: PropTypes.String,
should be changed to
os: PropTypes.string,
(uppercase String
is not a valid PropType!)
This should be a good-first-bug for someone who wants to setup their development environment.
Out contributors documentation is at https://docs.firefox-dev.tools/
Comment 1•5 years ago
|
||
Hi,
I am new, however, I would like to work on this!
Thanks
Reporter | ||
Comment 2•5 years ago
|
||
Hi michaelw!
Thanks for offering to work on this, I'm assigning the bug to you.
Take a look at https://docs.firefox-dev.tools/ to get started, and don't hesitate to ask for help here or on slack/riot if needed.
Reporter | ||
Comment 3•5 years ago
|
||
Hi michaelw,
Do you need any help with the setup or with the bug?
Reporter | ||
Comment 4•5 years ago
|
||
No answer from the assignee, resetting.
Assignee | ||
Comment 5•5 years ago
|
||
Hello! Could I work on this?
I'm new, and I just got my local build up and running :)
Comment 6•5 years ago
|
||
(In reply to Alice :alisaur from comment #5)
Hello! Could I work on this?
I'm new, and I just got my local build up and running :)
Sure thing! I have assigned the issue to you.
Assignee | ||
Comment 7•5 years ago
|
||
Are there any related tests that need to be updated? I would think no, but wanted to double check...
Comment 8•5 years ago
|
||
(In reply to Alice :alisaur from comment #7)
Are there any related tests that need to be updated? I would think no, but wanted to double check...
No related tests need to be updated for this one.
Assignee | ||
Comment 9•5 years ago
|
||
Comment 10•5 years ago
|
||
Comment 11•5 years ago
|
||
bugherder |
Description
•