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)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
mozilla55
Tracking | Status | |
---|---|---|
firefox55 | --- | fixed |
People
(Reporter: chenpighead, Assigned: chenpighead)
References
Details
Attachments
(1 file)
No description provided.
Comment hidden (mozreview-request) |
Assignee | ||
Updated•8 years ago
|
Attachment #8861340 -
Flags: review?(cam)
Comment 2•8 years ago
|
||
mozreview-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/#review136122
Attachment #8861340 -
Flags: review?(cam) → review+
Assignee | ||
Comment 3•8 years ago
|
||
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.
Assignee | ||
Comment 4•8 years ago
|
||
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.
Comment hidden (mozreview-request) |
Comment 6•8 years ago
|
||
We shouldn't be whitelisting entire classes, we should be whitelisting specific parameters as being writable.
Comment hidden (mozreview-request) |
Assignee | ||
Comment 8•8 years ago
|
||
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.
Assignee | ||
Updated•8 years ago
|
Attachment #8861340 -
Flags: review?(bobbyholley)
Comment 9•8 years ago
|
||
mozreview-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/#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 10•8 years ago
|
||
mozreview-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+
Updated•8 years ago
|
Priority: -- → P1
Assignee | ||
Comment 11•8 years ago
|
||
(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.
Comment hidden (mozreview-request) |
Comment 13•8 years ago
|
||
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
Comment 14•8 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox55:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
You need to log in
before you can comment on or make changes to this bug.
Description
•