Closed Bug 1359313 Opened 8 years ago Closed 8 years ago

stylo: whitelist moz-border-*-colors related bindings to satisfy heap write analysis

Categories

(Core :: CSS Parsing and Computation, defect, P1)

defect

Tracking

()

RESOLVED FIXED
mozilla55
Tracking Status
firefox55 --- fixed

People

(Reporter: chenpighead, Assigned: chenpighead)

References

Details

Attachments

(1 file)

No description provided.
Attachment #8861340 - Flags: review?(cam)
Comment on attachment 8861340 [details] Bug 1359313 - whitelist -moz-border-*-colors related bindings to satisfy heap write analysis. https://reviewboard.mozilla.org/r/133330/#review136122
Attachment #8861340 - Flags: review?(cam) → review+
A quick fix for hazard bustage by increase the NUM_ALLOWED_WRITE_HAZARDS is pushed in bug 1348173 comment 37. In this bug, we shall do the actual fix and restore the NUM_ALLOWED_WRITE_HAZARDS.
Blocks: stylo
try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=1e5a0162d61613dcae5002b7e68add2cfcda2f02 Looks like adding outparams whitelist is not enought, since we further pass nsStyleBorder struct to set/clear its members. I'll try adding nsStyleBorder to the class/struct whitelist and see if this could be a fix.
We shouldn't be whitelisting entire classes, we should be whitelisting specific parameters as being writable.
try looks good with the latest patch: https://treeherder.mozilla.org/#/jobs?repo=try&revision=d97fb7a067eb9a91ce90ba122fcf82b634193c5f Per Bobby's comment (comment 6), I'm not sure if this is the right fix, so request another round of review from Bobby.
Attachment #8861340 - Flags: review?(bobbyholley)
Comment on attachment 8861340 [details] Bug 1359313 - whitelist -moz-border-*-colors related bindings to satisfy heap write analysis. https://reviewboard.mozilla.org/r/133330/#review136976 I would expect these to live in treatAsSafeArgument, where we would just whitelist the arg for writing, rather than whitelisting the function completely (which is dangerous).
Attachment #8861340 - Flags: review?(bobbyholley) → review-
Comment on attachment 8861340 [details] Bug 1359313 - whitelist -moz-border-*-colors related bindings to satisfy heap write analysis. https://reviewboard.mozilla.org/r/133330/#review137140 Per IRC, move these up section so that the indirection explanation is clearer, and add some more detailed comments. r=me with that
Attachment #8861340 - Flags: review- → review+
Priority: -- → P1
(In reply to Bobby Holley (:bholley) (busy with Stylo) from comment #10) > Comment on attachment 8861340 [details] > Bug 1359313 - whitelist -moz-border-*-colors related bindings to satisfy > heap write analysis. > > https://reviewboard.mozilla.org/r/133330/#review137140 > > Per IRC, move these up section so that the indirection explanation is > clearer, and add some more detailed comments. r=me with that Thank you for the review. :) Since the patch is not modified (just moving couple lines up), so we shall reuse the try result in comment 4. I'm landing this.
Pushed by jichen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7964174edf5f whitelist -moz-border-*-colors related bindings to satisfy heap write analysis. r=bholley,heycam
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: