Closed Bug 1434963 Opened 7 years ago Closed 6 years ago

Apply CORS Mode to shape-outside ImageValues at point of construction

Categories

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

defect

Tracking

()

RESOLVED FIXED
mozilla64
Tracking Status
firefox-esr60 --- fixed
firefox63 --- fixed
firefox64 --- fixed

People

(Reporter: bradwerth, Assigned: bradwerth)

References

Details

Attachments

(6 files)

Bug 1418930 adds a method of CORS mode setting for shape-outside images that mutates the style structs at display time. The CORS mode setting should be done earlier, when the ImageValues are constructed. This requires larger changes to ImageValue constructors and also to the Stylo methods that call them. Gecko code sites that need changes: ImageValue constructors nsRuleNode::ComputeDisplayData nsStyleStruct::FinishStyle (remove the method used in Bug 1418930) Stylo code sites that need changes: Gecko_ImageValue_Create basic_shape::parse ImageOrUrl::parse build_image_value https://bugzilla.mozilla.org/show_bug.cgi?id=1418930#c42
[ Triage 2017/02/20: P2 ]
Priority: -- → P2
Comment on attachment 9006764 [details] Bug 1434963 Part 1: Change Gecko_ImageValue_Create to take a CORS mode argument. Emilio Cobos Álvarez (:emilio) has approved the revision.
Attachment #9006764 - Flags: review+
Comment on attachment 9007399 [details] Bug 1434963 Part 3: Remove style struct mutation in nsStyleDisplay::FinishStyle. Emilio Cobos Álvarez (:emilio) has approved the revision.
Attachment #9007399 - Flags: review+
Comment on attachment 9007397 [details] Bug 1434963 Part 2: Expand the Parser trait to allow anonymous CORS to be applied. Emilio Cobos Álvarez (:emilio) has approved the revision.
Attachment #9007397 - Flags: review+
Pushed by bwerth@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/57eda20ed463 Part 1: Change Gecko_ImageValue_Create to take a CORS mode argument. r=emilio https://hg.mozilla.org/integration/autoland/rev/768de4eb3d45 Part 2: Expand the Parser trait to allow anonymous CORS to be applied. r=emilio https://hg.mozilla.org/integration/autoland/rev/d5b6fd5ab512 Part 3: Remove style struct mutation in nsStyleDisplay::FinishStyle. r=emilio
Please request Beta on these. They graft cleanly as-landed. Also, please provide rebased patches for ESR60 and request approval on those when ready.
Flags: needinfo?(bwerth)
Comment on attachment 9006764 [details] Bug 1434963 Part 1: Change Gecko_ImageValue_Create to take a CORS mode argument. Approval Request Comment [Feature/Bug causing the regression]: 1418930 [User impact if declined]: Other needed CORS mode fixes require this. [Is this code covered by automated tests?]: Yes [Has the fix been verified in Nightly?]: Yes [Needs manual test from QE? If yes, steps to reproduce]: No [List of other uplifts needed for the feature/fix]: parts 2 and 3 of this bug. [Is the change risky?]: no [Why is the change risky/not risky?]: no behavior change associated with it [String changes made/needed]: none
Flags: needinfo?(bwerth)
Attachment #9006764 - Flags: approval-mozilla-beta?
Comment on attachment 9006764 [details] Bug 1434963 Part 1: Change Gecko_ImageValue_Create to take a CORS mode argument. Approved for 63.0b10.
Attachment #9006764 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
[Approval Request Comment] If this is not a sec:{high,crit} bug, please state case for ESR consideration: This part, and parts 2 and 3 to follow are blockers for security bug 1418470. User impact if declined: Security bug 1418470 won't land. Fix Landed on Version: 63 Risk to taking this patch (and alternatives if risky): Low risk. This makes no change to web behavior. String or UUID changes made by this patch: none See https://wiki.mozilla.org/Release_Management/ESR_Landing_Process for more info.
Attachment #9012431 - Flags: approval-mozilla-esr60?
Comment on attachment 9012431 [details] [diff] [review] esr60-cors1.patch Needed for bug 1418470, approved for ESR 60.3.
Attachment #9012431 - Flags: approval-mozilla-esr60? → approval-mozilla-esr60+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: