The relevant canon is as follows, and makes no mention of either of the obligations cited in your post:
§ 1. Among the various Catholic rites, one belongs to that one according to whose ceremonies
one was baptized, unless perhaps baptism by a minister of an alien rite was brought about
fraudulently, or in case of grave necessity when it was not possible to have a priest of one’s own
rite present, or if it came about by apostolic dispensation whereby the faculty was given to baptize
one in a certain rite while remaining ascribed to the other rite.
§ 2. Clerics shall not presume in any manner to induce latin-rite faithful to transfer to an oriental
[rite], or oriental-rite faithful to transfer to the latin [rite].
§ 3. It is not lawful for anyone, without coming to the Apostolic See, to transfer to another rite,
or, after legitimate transfer, to return to the former.
§ 4. It is the right of a woman of rite different from the rite of the man, either going into marriage
or during it, to transfer [rites]; when the marriage is ended, she has the power of returning freely
to her former rite, unless by particular law it is provided otherwise.
§ 5. The practice, however long in duration, of receiving the sacred Synax in a foreign rite does
not bring about a change of rite.
By "when the marriage is ended" in § 4 above, one presumes this refers to the death of the other spouse.