[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #13548 [Tor Browser]: Create preference to disable MathML
#13548: Create preference to disable MathML
-----------------------------+-----------------------------------------
Reporter: gk | Owner: tbb-team
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: Tor Browser | Version:
Resolution: | Keywords: tbb-security, tbb-4.5-alpha
Actual Points: | Parent ID: #9387
Points: |
-----------------------------+-----------------------------------------
Comment (by mcs):
Kathy and I spent some time looking at this over the past couple of days.
We have not assigned the bug to one of us yet because we have not gotten
very far. There are a couple of approaches we are looking at:
1. Remove knowledge of <math> and related tags from the parser. This will
work with limitations, but it may be difficult to access prefs. deep
inside the parser (e.g., the code is maintained in Java and translated to
C++). Also, the parser is not invoked when JS is used to add elements, so
we would need a different solution for that case.
2. Modify NS_NewElement() to treat <math> and related tags as
unknown/generic tags instead of MathML tags. This seems like a good
solution, but so far we have not been able to get it to work (other code
still recognizes the elements as MathML).
3. Disable special behavior / rendering / etc. for MathML tags. We have
not tried this yet, but it might be do-able via modifications to
content/mathml/content/src/nsMathMLElement.cpp.
We will continue to work on this; if anyone else has an idea for how to
cleanly do this kind of thing inside Firefox, please comment here.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/13548#comment:4>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs