Closed Bug 2048182 Opened 5 months ago Closed 5 months ago

Improve pretty printing for when XSLT is toggled off.

Categories

(Core :: XSLT, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
154 Branch
Tracking Status
firefox154 --- fixed

People

(Reporter: farre, Assigned: farre)

References

(Blocks 1 open bug, Regressed 1 open bug)

Details

Attachments

(1 external file)

No description provided.
Assignee: nobody → afarre
Status: NEW → ASSIGNED
Pushed by afarre@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/bebf33c4704d https://hg.mozilla.org/integration/autoland/rev/019df567e9b7 Improve pretty printing for when XSLT is toggled off. r=zcorpan,smaug,fluent-reviewers,flod
Status: ASSIGNED → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 154 Branch
Duplicate of this bug: 2030014
QA Whiteboard: [qa-triage-done-c155/b154]

unless I'm missing something, this doesn't seem to work (ignore the linked test contents except the prettyPrint view)

STR (I am on nightly)

  • load https://thorin-ii.github.io/testing/applangprettyprint.html
    • note large visual displaying xml-nostylesheet
    • in english this is "This XML file does not appear to have any style information associated with it. The document tree is shown below."
  • toggle dom.xslt.enabled to false
    • I restarted the browser for good measure
  • load test
    • note large visual still displaying xml-nostylesheet
    • expected: xml-nostylesheet-xslt-disabled

pinging Andreas as author

Flags: needinfo?(afarre)

I guess it depends. That page loads applangprettyprint.xml in iframes, but applangprettyprint.xml doesn't contain any XSLT transforms.

xml-nostylesheet-xslt-disabled is deliberately scoped to documents that actually reference an XSLT stylesheet: the substitution only happens when we see an <?xml-stylesheet?> PI (or a Link header) whose type is text/xsl, application/xslt+xml, text/xml or application/xml while dom.xslt.enabled is false. Showing "It uses XSLT, which the browser does not support" on a document that doesn't use XSLT wouldn't be correct.

Does that make sense?

Flags: needinfo?(afarre) → needinfo?(thorin)

IANAE on XSLT :) Sounds good to me. It did confuse me when it's xml-nostylesheet and xml-nostylesheet-xslt-disabled - the whole point is there is nostylesheet, so the naming convention is a little misleading/confusing can be ambiguous, but I can see it both ways

Anyway, the less possible errors, the easier for me to calculate deterministic results - so tis all good - thanks

Flags: needinfo?(thorin)
Regressions: 2087763
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: