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)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
mozilla64
People
(Reporter: bradwerth, Assigned: bradwerth)
References
Details
Attachments
(6 files)
46 bytes,
text/x-phabricator-request
|
emilio
:
review+
RyanVM
:
approval-mozilla-beta+
|
Details | Review |
46 bytes,
text/x-phabricator-request
|
emilio
:
review+
|
Details | Review |
46 bytes,
text/x-phabricator-request
|
emilio
:
review+
|
Details | Review |
5.89 KB,
patch
|
RyanVM
:
approval-mozilla-esr60+
|
Details | Diff | Splinter Review |
5.29 KB,
patch
|
Details | Diff | Splinter Review | |
11.34 KB,
patch
|
Details | Diff | Splinter Review |
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
Assignee | ||
Comment 2•6 years ago
|
||
Assignee | ||
Comment 3•6 years ago
|
||
Assignee | ||
Comment 4•6 years ago
|
||
Depends on D5106
Assignee | ||
Comment 5•6 years ago
|
||
Depends on D5341
Comment 6•6 years ago
|
||
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 7•6 years ago
|
||
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+
Assignee | ||
Comment 8•6 years ago
|
||
Comment 9•6 years ago
|
||
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+
Comment 10•6 years ago
|
||
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
Comment 11•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/57eda20ed463
https://hg.mozilla.org/mozilla-central/rev/768de4eb3d45
https://hg.mozilla.org/mozilla-central/rev/d5b6fd5ab512
Status: NEW → RESOLVED
Closed: 6 years ago
status-firefox64:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
Comment 12•6 years ago
|
||
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)
Assignee | ||
Comment 13•6 years ago
|
||
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 14•6 years ago
|
||
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+
Comment 15•6 years ago
|
||
bugherder uplift |
https://hg.mozilla.org/releases/mozilla-beta/rev/25c09c7aa7cb
https://hg.mozilla.org/releases/mozilla-beta/rev/b06282a810e5
https://hg.mozilla.org/releases/mozilla-beta/rev/1c22f27d31ec
status-firefox63:
--- → fixed
Assignee | ||
Comment 16•6 years ago
|
||
Assignee | ||
Comment 17•6 years ago
|
||
[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?
Assignee | ||
Comment 18•6 years ago
|
||
Assignee | ||
Comment 19•6 years ago
|
||
Comment 20•6 years ago
|
||
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+
Comment 21•6 years ago
|
||
bugherder uplift |
https://hg.mozilla.org/releases/mozilla-esr60/rev/1e6dad87efed
https://hg.mozilla.org/releases/mozilla-esr60/rev/6558c46df9ea
https://hg.mozilla.org/releases/mozilla-esr60/rev/686fcfa8abd6
status-firefox-esr60:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•