After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 599249 - Add support for packaging Splinter as a Firefox extension
Add support for packaging Splinter as a Firefox extension
Status: RESOLVED WONTFIX
Product: splinter
Classification: Infrastructure
Component: General
git master
Other Linux
: Normal normal
: ---
Assigned To: splinter-maint
splinter-maint
gnome[unmaintained]
Depends on:
Blocks:
 
 
Reported: 2009-10-21 22:54 UTC by Neil Roberts
Modified: 2018-08-17 19:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
ffaddon: Add a build rule to generate a .xpi file (3.64 KB, patch)
2009-10-21 22:58 UTC, Neil Roberts
none Details | Review
Prepend configBugzillaUrl to all XML request URLs (2.11 KB, patch)
2009-10-21 22:58 UTC, Neil Roberts
none Details | Review
parseDate: Accept timestamps with a missing timezone (1.12 KB, patch)
2009-10-21 22:58 UTC, Neil Roberts
none Details | Review
ffaddon: Add a config.js file (1.74 KB, patch)
2009-10-21 22:59 UTC, Neil Roberts
none Details | Review
ffaddon: Make the Bugzilla URL a parameter instead of a config option (4.07 KB, patch)
2009-10-21 22:59 UTC, Neil Roberts
none Details | Review
Use newPageUrl instead of configBase for the 'your reviews link' (950 bytes, patch)
2009-10-21 22:59 UTC, Neil Roberts
none Details | Review
ffaddon: Add a browser overlay to add review links (6.85 KB, patch)
2009-10-21 22:59 UTC, Neil Roberts
none Details | Review

Description Neil Roberts 2009-10-21 22:54:14 UTC
If Splinter is packaged as a Firefox extension it could work with any Bugzilla installation. I'm not sure if it's entirely sensible but if nothing else it makes it easier to test without the having to set up the proxy server.

The extension packages up the resources into a chrome jar so that Splinter can be accessed from chrome://splinter/content/index.html. As the pages are part of the chrome it doesn't have cross-site restrictions. The extension also adds links next to the attachments to start the review.

The extension can be built with 'make splinter.xpi'.

The patches are also on a tree here: git://git.busydoingnothing.co.uk/splinter.git
Comment 1 Neil Roberts 2009-10-21 22:58:52 UTC
Created attachment 146000 [details] [review]
ffaddon: Add a build rule to generate a .xpi file

This creates an zip containing the web files. An install.rdf and a
chrome manifest is added to make it function as a Firefox addon.
Comment 2 Neil Roberts 2009-10-21 22:58:55 UTC
Created attachment 146001 [details] [review]
Prepend configBugzillaUrl to all XML request URLs

This is needed to work with the Firefox extension where the Bugzilla
will not be located relative to the review page.
Comment 3 Neil Roberts 2009-10-21 22:58:58 UTC
Created attachment 146002 [details] [review]
parseDate: Accept timestamps with a missing timezone

Some Bugzillas don't add the timezone to timestamps. In this case
parseDate will now assume the timezone offset is 0 which is not ideal
but it at least prevents the script from failing.
Comment 4 Neil Roberts 2009-10-21 22:59:02 UTC
Created attachment 146003 [details] [review]
ffaddon: Add a config.js file

This is currently hard-coded to use the OpenedHand Bugzilla. Ideally
it would prompt the user to enter a Bugzilla address.
Comment 5 Neil Roberts 2009-10-21 22:59:05 UTC
Created attachment 146004 [details] [review]
ffaddon: Make the Bugzilla URL a parameter instead of a config option

If the Bugzilla URL isn't specified in the config it will now prompt
the user for the address. The address is then encoded as a parameter
to the Splinter URL and it is passed from page to page.
Comment 6 Neil Roberts 2009-10-21 22:59:08 UTC
Created attachment 146005 [details] [review]
Use newPageUrl instead of configBase for the 'your reviews link'

Otherwise it won't copy across the Bugzilla URL when Splinter is being
used as a Firefox extension.
Comment 7 Neil Roberts 2009-10-21 22:59:12 UTC
Created attachment 146006 [details] [review]
ffaddon: Add a browser overlay to add review links

This listens for DOMContentLoaded events in pages. If the page looks
like a Bugzilla show bug page it grabs the attachment table and adds
links to the last column in each row.
Comment 8 André Klapper 2018-08-17 19:12:21 UTC
git-bz saw its last code changes in 2009: http://git.fishsoup.net/cgit/splinter
(There seems to also be a fork at https://github.com/bugzilla/extensions-Splinter which could be more up-to-date.)

GNOME is moving from Bugzilla to GNOME Gitlab.

Closing this report as WONTFIX as part of Bugzilla Housekeeping.

Please feel free to reopen this ticket (or rather transfer the project to GNOME Gitlab, as Bugzilla is deprecated) if active development is about to take place again.