Closed Bug 1434155 Opened 6 years ago Closed 6 years ago

Remove (safe) innerHTML in RDM's Browser component

Categories

(DevTools :: Responsive Design Mode, enhancement, P3)

enhancement

Tracking

(firefox60 fixed)

RESOLVED FIXED
Firefox 60
Tracking Status
firefox60 --- fixed

People

(Reporter: jryans, Assigned: jryans)

References

Details

Attachments

(2 files)

Once DevTools upgrades to React 16, it should be possible for the Browser component to move away from `innerHTML`.  It's currently used only because React before 16 doesn't allow non-standard attributes.

Actions to take:

1. Convert Browser component to return normal React DOM components
2. Remove `document.allowUnsafeHTML = true;`
Assignee: nobody → jryans
Status: NEW → ASSIGNED
Comment on attachment 8950730 [details]
Bug 1434155 - Create RDM viewport as iframe component.

https://reviewboard.mozilla.org/r/219978/#review225808
Attachment #8950730 - Flags: review?(gl) → review+
Comment on attachment 8950731 [details]
Bug 1434155 - Remove extra container around RDM browser.

https://reviewboard.mozilla.org/r/219980/#review225812
Attachment #8950731 - Flags: review?(gl) → review+
Pushed by jryans@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/4d777d5f3adc
Create RDM viewport as iframe component. r=gl
https://hg.mozilla.org/integration/autoland/rev/e27e05f77f82
Remove extra container around RDM browser. r=gl
https://hg.mozilla.org/mozilla-central/rev/4d777d5f3adc
https://hg.mozilla.org/mozilla-central/rev/e27e05f77f82
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 60
Blocks: 1444394
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: