зеркало из https://github.com/mozilla/pjs.git
Bug 205341: Remove obsolete checks for local files, chrome files, etc. in tabbrowser progresslistener impl. r=darin, sr=hewitt, a=sspitzer
This commit is contained in:
Родитель
f2793927cf
Коммит
8c3d68b1a9
|
@ -164,12 +164,6 @@
|
|||
<parameter name="aStartsBlank"/>
|
||||
<body>
|
||||
<![CDATA[
|
||||
|
||||
//XXXjrgm do we need this? Is the check of 'aStatus' below ever true?
|
||||
const NS_ERROR_MODULE_NETWORK = 0x804b0000;
|
||||
const NS_NET_STATUS_READ_FROM = NS_ERROR_MODULE_NETWORK + 8;
|
||||
const NS_NET_STATUS_WROTE_TO = NS_ERROR_MODULE_NETWORK + 9;
|
||||
|
||||
return ({
|
||||
mTabBrowser: this,
|
||||
mTab: aTab,
|
||||
|
@ -195,11 +189,6 @@
|
|||
if (!aRequest)
|
||||
return;
|
||||
|
||||
//XXXjrgm do we need this? Is the check of 'aStatus' below ever true?
|
||||
//ignore local/resource:/chrome: files
|
||||
if (aStatus == NS_NET_STATUS_READ_FROM || aStatus == NS_NET_STATUS_WROTE_TO)
|
||||
return;
|
||||
|
||||
var oldBlank = this.mBlank;
|
||||
|
||||
const nsIWebProgressListener = Components.interfaces.nsIWebProgressListener;
|
||||
|
@ -257,9 +246,7 @@
|
|||
},
|
||||
|
||||
onStatusChange : function(aWebProgress, aRequest, aStatus, aMessage) {
|
||||
//XXXjrgm do we need this? Is the check of 'aStatus' below ever true?
|
||||
//ignore local/resource:/chrome: files
|
||||
if (this.mBlank || aStatus == NS_NET_STATUS_READ_FROM || aStatus == NS_NET_STATUS_WROTE_TO)
|
||||
if (this.mBlank)
|
||||
return;
|
||||
|
||||
if (this.mTabBrowser.mCurrentTab == this.mTab) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче