Closed
Bug 289363
Opened 20 years ago
Closed 19 years ago
"View MathML source" context menu option broken
Categories
(Core :: MathML, defect)
Core
MathML
Tracking
()
RESOLVED
FIXED
People
(Reporter: u81239, Assigned: rbs)
Details
Attachments
(1 file)
|
735 bytes,
patch
|
jst
:
review+
jst
:
superreview+
asa
:
approval1.8b4+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050402 Firefox/1.0+ Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050402 Firefox/1.0+ As the bug description says, the "View MathML source" context menu option is broken. It shows an empty source window. I’d actually rather just see the option disappear. I think it’s a ‘bloat’ feature. As nobody noticed it so far anyway it doesn’t seem like the option is much used, and I can achieve exactly the same thing by selecting the formula and choosing ‘view selection source’ anyway. ~Grauw Reproducible: Always Steps to Reproduce: 1. Open page with MathML 2. Right-click on math to show context menu 3. Choose ‘View MathML source’ Actual Results: Empty window Expected Results: Math source code
Ugh, what about using Unicode on bugzilla >_<. Again: I'd actually rather just see the option disappear. I think it's a 'bloat' feature. As nobody noticed it so far anyway it doesn't seem like the option is much used, and I can achieve exactly the same thing by selecting the formula and choosing 'view selection source' anyway. ~Grauw
Don't delude yourself into thinking that it is bloat. It is actually a small auxiliary JavaScript function in the code of "View Selection Source". And I should know because I implemented both. VSS came about because of VMS. VSS itself doesn't fly to the face either. But those who get to notice it immediately like it. VMS is even rarer because you have to be on MathML... the likelihood of that is quite minuscule. So it is not surprising. All of this is on purpose -- to keep them away from the mainstream. There are things that get broken in MathML in general, and don't get notice until much latter because MathML isn't mainstream (as yet).
Be that as it may be, it is broken, so it should be fixed then :). I was just suggesting that if maintaining the feature proves to be too difficult, it might as well be taken out, as it isn’t really that important. As I said, 'VSS' pretty much duplicates the functionality. By the way, if it’s about pretty-printing, it might very well be a good idea to add a ‘pretty print source’ toggle to the view source window, so that it can apply to everything XML (e.g. XHTML) and not just MathML (that would be nice, actually :)). ~Grauw
Confirming. The problem happens here: http://lxr.mozilla.org/mozilla/source/toolkit/components/viewsource/content/viewPartialSource.js#377
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows XP → All
Hardware: PC → All
Summary: "View MathML source" context menu option broken - remove it? → "View MathML source" context menu option broken
This is regression from bug 57600. It isn't present in the Aviary branch (and thus Firefox 1.0) because different patches were checked in: - The trunk got attachment 161587 [details] [diff] [review] - Aviary got attachment 160008 [details] [diff] [review] Comparing carefully the two, you will see that the Open() function in attachment 160008 [details] [diff] [review] preserves a fallback to "about:blank" when the URI is null. While this provision was (likely inadvertently) removed from attachment 161587 [details] [diff] [review]. As View MathML Source is doing: 377 var doc = getBrowser().contentDocument; 378 doc.open("text/html", "replace"); 379 doc.write(source); 380 doc.close(); Tracing the code in the debugger showed that it falls in the above situation because the caller is XUL with the principal = system principal for which the URI is null. So the patch simply restores a fallback to about:blank as before.
Attachment #191175 -
Flags: superreview?(jst)
Attachment #191175 -
Flags: review?(jst)
Comment 6•19 years ago
|
||
Comment on attachment 191175 [details] [diff] [review] patch r+sr=jst
Attachment #191175 -
Flags: superreview?(jst)
Attachment #191175 -
Flags: superreview+
Attachment #191175 -
Flags: review?(jst)
Attachment #191175 -
Flags: review+
Comment on attachment 191175 [details] [diff] [review] patch Asking a=1.8b4. This was an inadvertent regression from bug 57600. It had side-effect of breaking document.open() when called from XUL.
Attachment #191175 -
Flags: approval1.8b4?
Updated•19 years ago
|
Attachment #191175 -
Flags: approval1.8b4? → approval1.8b4+
Checked-in.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Updated•18 years ago
|
Flags: in-testsuite?
You need to log in
before you can comment on or make changes to this bug.
Description
•