mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 16:25:38 +00:00
Bug 1423229
- [1.1] Enable nsIClassifiedChannel interface in onSecurityChange callbacks. r=mconley
This commit is contained in:
parent
796f266cda
commit
1f928adad2
@ -221,6 +221,9 @@ var WebProgressListener = {
|
||||
let json = this._setupJSON(aWebProgress, aRequest);
|
||||
let objects = this._setupObjects(aWebProgress, aRequest);
|
||||
|
||||
let classChannel = aRequest.QueryInterface(Ci.nsIClassifiedChannel);
|
||||
json.matchedList = classChannel.matchedList;
|
||||
|
||||
json.state = aState;
|
||||
json.status = SecurityUI.getSSLStatusAsString();
|
||||
|
||||
|
@ -12,19 +12,21 @@ const Cu = Components.utils;
|
||||
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
ChromeUtils.import("resource://gre/modules/Services.jsm");
|
||||
|
||||
function RemoteWebProgressRequest(spec, originalSpec, requestCPOW) {
|
||||
function RemoteWebProgressRequest(spec, originalSpec, matchedList, requestCPOW) {
|
||||
this.wrappedJSObject = this;
|
||||
|
||||
this._uri = Services.io.newURI(spec);
|
||||
this._originalURI = Services.io.newURI(originalSpec);
|
||||
this._requestCPOW = requestCPOW;
|
||||
this._matchedList = matchedList;
|
||||
}
|
||||
|
||||
RemoteWebProgressRequest.prototype = {
|
||||
QueryInterface: XPCOMUtils.generateQI([Ci.nsIChannel]),
|
||||
QueryInterface: XPCOMUtils.generateQI([Ci.nsIChannel, Ci.nsIClassifiedChannel]),
|
||||
|
||||
get URI() { return this._uri.clone(); },
|
||||
get originalURI() { return this._originalURI.clone(); }
|
||||
get originalURI() { return this._originalURI.clone(); },
|
||||
get matchedList() { return this._matchedList; }
|
||||
};
|
||||
|
||||
function RemoteWebProgress(aManager, aIsTopLevel) {
|
||||
@ -213,6 +215,7 @@ RemoteWebProgressManager.prototype = {
|
||||
if (json.requestURI) {
|
||||
request = new RemoteWebProgressRequest(json.requestURI,
|
||||
json.originalRequestURI,
|
||||
json.matchedList,
|
||||
objects.request);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user