Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Gecko Bug 1548524] Remove attributes deprecated from MathML3. #18725

Merged
merged 1 commit into from
Aug 28, 2019

Conversation

moz-wptsync-bot
Copy link
Collaborator

See w3c/mathml#5 (comment)
and https://groups.google.com/forum/#!topic/mozilla.dev.platform/kl5c87mBlO0

This patch introduces a new preference
mathml.deprecated_style_attributes.disabled in order to disable legacy support
for attributes background, color, fontfamily, fontsize, fontstyle and
fontweight. Note that xlink:href will be handled separately in bug 1575870.

  • A new counter and deprecation message is introduced for these attributes.
    In nsMathMLElement, the old WarnDeprecated calls are replaced with a single
    call to WarnOnceAbout for the deprecate attributes. Notice that for some
    reason, the color attribute used to send warning in both ParseAttribute and
    MapMathMLAttributesInto.
  • sMtableStyles is removed and replaced with a simple comparison.
  • sMathML3Attributes is split into two tables: one for script attributes which
    will be handled in bug 1548471 and one for style attributes, handled here.
    The attributes in this second table is now ignored when the feature flag is
    disabled.
  • test_bug553917.html is updated so that it no longer checks the old warning
    messages for these attributes. New warning messages have been verified
    manually.
  • Reftests checking support for these attributes are run with the support
    enabled.
  • Finally, WPT tests are run with the support disabled and a new test
    is added to verify that these attributes are no longer mapped to CSS.

Differential Revision: https://phabricator.services.mozilla.com/D43111

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1548524
gecko-commit: 69105b8565ce19ceb8c26757d0a81138854f1d13
gecko-integration-branch: autoland
gecko-reviewers: emilio

See w3c/mathml#5 (comment)
and https://groups.google.com/forum/#!topic/mozilla.dev.platform/kl5c87mBlO0

This patch introduces a new preference
mathml.deprecated_style_attributes.disabled in order to disable legacy support
for attributes background, color, fontfamily, fontsize, fontstyle and
fontweight. Note that xlink:href will be handled separately in bug 1575870.

* A new counter and deprecation message is introduced for these attributes.
  In nsMathMLElement, the old WarnDeprecated calls are replaced with a single
  call to WarnOnceAbout for the deprecate attributes. Notice that for some
  reason, the color attribute used to send warning in both ParseAttribute and
  MapMathMLAttributesInto.
* sMtableStyles is removed and replaced with a simple comparison.
* sMathML3Attributes is split into two tables: one for script attributes which
  will be handled in bug 1548471 and one for style attributes, handled here.
  The attributes in this second table is now ignored when the feature flag is
  disabled.
* test_bug553917.html is updated so that it no longer checks the old warning
  messages for these attributes. New warning messages have been verified
  manually.
* Reftests checking support for these attributes are run with the support
  enabled.
* Finally, WPT tests are run with the support disabled and a new test
  is added to verify that these attributes are no longer mapped to CSS.

Differential Revision: https://phabricator.services.mozilla.com/D43111

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1548524
gecko-commit: 69105b8565ce19ceb8c26757d0a81138854f1d13
gecko-integration-branch: autoland
gecko-reviewers: emilio
Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already reviewed downstream.

@moz-wptsync-bot moz-wptsync-bot merged commit a7cc505 into master Aug 28, 2019
@moz-wptsync-bot moz-wptsync-bot deleted the gecko/1548524 branch August 28, 2019 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants