Closed jcunews closed 1 year ago
Gotcha. I'll play around and try to find the best way to filter out pages. For now, you can add a rule to the blocklist. *.xml
should work for most cases.
Fix in the development branch.
check new release 1.43 for fixes
In Firefox, ContextSearch extension broke Firefox's built in XML document viewer.
Steps to reproduce the problem:
Disable all browser extensions including ContextSearch extension.
Open any XML document in any browser tab. For example:
Expected result:
Firefox displays the XML document using the built in XML document viewer. Screenshot:
Enable ContextSearch extension.
Actual result:
Firefox's XML document viewer is replaced with the HTML view of the XML document. Screenshot:
Note: reloading the browser tab (which displays the XML document) may be necessary.
As shown in Firefox's Developer's Tools, ContextSearch extension modifies the XML document. That operation broke Firefox's XML document viewer.
Conclusion:
In Firefox, the DOM should not be modified when Firefox is presenting its built in XML document viewer. i.e. when
document.contentType
isapplication/xml
or any other XML MIME types which are also handled by Firefox's built in XML document viewer. This is because the document is contained within an XMLDocument object, unlike Firefox's built in image and JSON resource viewer where the resource is contained within a HTML document which is the image/JSON viewer application itself..