Closed Bug 1150617 Opened 9 years ago Closed 9 years ago

Firefox is crashed when http-on-modify-request event changes URI

Categories

(Firefox :: Untriaged, defect)

38 Branch
x86
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 927256

People

(Reporter: vrubleg, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:38.0) Gecko/20100101 Firefox/38.0
Build ID: 20150330154247

Steps to reproduce:

1. Install Pure URL https://addons.mozilla.org/ru/firefox/addon/pure-url/

Or install addon with this simple code:

exports.main = function(options, callbacks)
{
	var { Ci } = require('chrome');
	var events = require('sdk/system/events');

	events.on('http-on-modify-request', function(event)
	{
		var channel = event.subject.QueryInterface(Ci.nsIHttpChannel);
		if (channel.URI.path == '/1183559.html?a&utm_campaign=')
		{
			channel.URI.path = '/1183559.html?a';
		}
	}, true);
};

2. Go to http://zyalt.livejournal.com/1183559.html?a&utm_campaign=


Actual results:

Firefox is crashed


Expected results:

This page have to be opened properly
Summary: Firefox crashed when http-on-modify-request event changes URI → Firefox is crashed when http-on-modify-request event changes URI
The URL in the previous message isn't a mistake. It have to be exactly http://zyalt.livejournal.com/1183559.html?a&utm_campaign= (with &) if you want to crash Firefox. If you enter http://zyalt.livejournal.com/1183559.html?a&utm_campaign= , Firefox will not be crashed.
What is the crash report ID?
Group: core-security
Flags: needinfo?(veg)
Attachment #8587525 - Attachment mime type: text/x-c → application/javascript
Crash Signature: [@ nsExternalResourceMap::AddExternalResource(nsIURI*, nsIContentViewer*, nsILoadGroup*, nsIDocument*) ]
Status: UNCONFIRMED → RESOLVED
Crash Signature: [@ nsExternalResourceMap::AddExternalResource(nsIURI*, nsIContentViewer*, nsILoadGroup*, nsIDocument*) ]
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: