Unable to view styled report in Firefox 3

Bug #331481 reported by David Murphy
2
Affects Status Importance Assigned to Milestone
Checkbox
Fix Released
High
David Murphy

Bug Description

Users are unable to view the `submission.xml` report with XSL transformations due to a security constraint in Firefox 3 or epiphany-gecko. Viewing the report works as expected in Midori, epiphany-webkit, and Opera.

Tags: reporting
Revision history for this message
David Murphy (schwuk) wrote :

The constraint in Firefox is described here: http://kb.mozillazine.org/Security.fileuri.strict_origin_policy, and can be worked around by setting the preference security.fileuri.strict_origin_policy to 'False'.

However we are unlikely to get this setting changed in the Firefox package, so we will have to work around it. Workaround options are:

 a) use an embedded browser (webkit or gecko with this constraint disabled) to display the report
 b) dictate which browser (non-gecko based) is used to display the report, and add that as a dependency to the package(s)
 c) place a copy of the checkbox.xsl in the same directory as the submission.xml when the report is generated

Option c) seems the most sensible for now.

Revision history for this message
David Murphy (schwuk) wrote :

We could also use a remote XSL file, but that restricts functionality for offline users.

Revision history for this message
David Murphy (schwuk) wrote :

Fix commited for option c (copying xsl to same location as report) in trunk r483.

Changed in checkbox:
assignee: nobody → schwuk
importance: Undecided → High
status: New → Fix Committed
Revision history for this message
Marc Tardif (cr3) wrote :

I have modified the code slightly to copy the stylesheet under the same directory as the report, instead of relying on the xsl_destination property to be set to the same directory as the filename property. Otherwise, it is not clear that both properties must always be set to the same directory.

Revision history for this message
David Murphy (schwuk) wrote :

Released in 0.7

Changed in checkbox:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.