Firefox:2.0.0.6:Test Plan:protocol handler

From MozillaWiki
Jump to: navigation, search

Test Results

We need to test around Firefox's interaction with 3rd party apps with a look at the url protocol handler. See bug 389106 for reference.

Links with external protocols such as mailto: or ftp: or what have you, should escape double quotes, spaces and "`".

Please enter your results according to platform.

Windows Tomcat

  • XP:
  • Tested bug 389106 with the Steps to reproduce from Biesi and i can confirm the Bug as fixed.
  • The Output from the test Program with Firefox 2.0.0.6pre Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8.1.6pre) Gecko/20070724 BonEcho/2.0.0.6pre ID:2007072403 is:
  • There are 2 arguments in the URL
    • Argument 0: c:\testurl.exe
    • Argument 1: testurl://%22foo%22%20'bar'%20%60baz%60/
    • with the Test.html from site: Argument 1: Bug 389106 Comment 26testurl:two%22%20extra%20parameters

Comparing to Firefox 2.0.0.4 as example:

There are 2 arguments in the URL

  • Argument 0: c:\testurl.exe
  • Argument 1: testurl://foo 'bar' `baz`/

* Vista:

  • Tested Bug 389106 with the tests to reproduce from Biesi and Dan with Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.6pre) Gecko/2007072504 BonEcho/2.0.0.6pre
  • Results:
    • Test with the Test url testurl://"foo" 'bar' `baz`
    • Argument 0: c:\testurl.exe
    • Argument 1: testurl://%22foo%22%20'bar'%20%60baz%60/
    • Test with the Double Quote Test on the Test Page
    • There are 2 arguments in the URL
    • Argument 0: c:\testurl.exe
    • Argument 1: testurl:one%22%20extra%20parameters
    • Test when i open the Testpage
    • There are 2 arguments in the URL
    • Argument 0: c:\testurl.exe
    • Argument 1: testurl:two%22%20extra%20parameters

Mac

Linux

Tomcat

  • Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6pre) Gecko/20070725 BonEcho/2.0.0.6pre on Fedora F7
  • Using the Scripts from Karl in Bug 389106
    • Quotes are escaped on Testpage [1]
    • and on Test url args://"foo" 'bar' `baz` [2]

juanb

  • I observe similar results as tomcat(see above), using a Ubuntu vm with args registered as a protocol handler.

Aleksej

  • Debian Etch (with a few probably unrelated packages from Lenny), bash 3.1dfsg-8

Firefox with the testcase

  • Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6pre) Gecko/20070725 BonEcho/2.0.0.6pre
  • set up “args” from comment #53 using network.protocol-handler
  • loaded an HTML with data from comment #26, clicked the links, allowed handling
Argument 1:     testurl:two%22%20extra%20parameters
Argument 1:     testurl:one%22%20extra%20parameters
Argument 1:     testurl:three'%20single-quote-test
Argument 1:     testurl:four%60%20back-tick-test

3rd party applications

I don't know applications that would need links containing quotes in third-party protocols, so I've just tried starting OpenOffice.org with a couple of file:// arguments from bash (Firefox won't open a handler for file://, though it asks if I wish to do it):

deleter@chaos:/dev/shm$ ls *.html
a'b.html  a"b.html
deleter@chaos:/dev/shm$ oowriter file:///dev/shm/a%22b.html

- File loaded successfully

deleter@chaos:/dev/shm$ oowriter file:///dev/shm/a'b.html
>
deleter@chaos:/dev/shm$

- bash began waiting for the other apostrophe.


OTOH, with network.protocol-handler.expose-all set to false, it works with both files when opening file:///dev/shm from Firefox, and then clicking their names.

List of Protocols

Protocol Handler Testing List

This spreadsheet contains a location to mark "pass" and "fail" for each protocol handler and to mark whether it was tested on XP or Vista.

Mac Protocol Testing Tools

Verification of Bug 389106

marcia's testing on Intel Mac

Results from a Firefox 2005 build

  • Run colin's protocol handler
    • I get a dialog asking me to launch the application
    • Results output to window are as follows: 2007-07-24 17:48:46.859 url handler test[2172] testurl:two%22%20extra%20parameters
  • Type testurl://"foo" 'bar' `baz`
    • Results: 2007-07-24 17:50:32.337 url handler test[2172] testurl://%22foo%22%20'bar'%20%60baz%60

Results from a Firefox 2006 nightly with patch

  • Run colin's protocol handler
    • I get a dialog asking me to launch the application
    • Results output to window are as follows: 2007-07-24 17:36:04.570 url handler test[2172] testurl:one%22%20extra%20parameters
  • type testurl://"foo" 'bar' `baz` in the URL bar
    • Results: 2007-07-24 17:39:40.350 url handler test[2172] testurl://%22foo%22%20'bar'%20%60baz%60

Results from a latest Minefield build

  • Run colin's protocol handler
    • I get a dialog asking me to launch the application
    • Results output to window are as follows: 2007-07-24 17:54:45.078 url handler test[2172] testurl:two%22%20extra%20parameters
  • type testurl://"foo" 'bar' `baz` in the URL bar
    • Results: 2007-07-24 17:56:17.191 url handler test[2172] testurl://%22foo%22%20'bar'%20%60baz%60
  • Comments from smichaud on IRC: For what it's worth, doing the test described in cbiesinger's comment 49 gives the "correct" results in Firefox 2.0.0.5 (i.e. without any of the patches discussed in bug 389106). Of course you need to change "foo://" at the beginning to "testurl://".