зеркало из https://github.com/mozilla/pjs.git
Bug 492250 - URLs in Page Info Media tab should be LTR; r-gavin
This commit is contained in:
Родитель
7b21bd0558
Коммит
f5b31dcd2d
|
@ -168,13 +168,19 @@ const COPYCOL_IMAGE = COL_IMAGE_ADDRESS;
|
|||
var gMetaView = new pageInfoTreeView(COPYCOL_META_CONTENT);
|
||||
var gImageView = new pageInfoTreeView(COPYCOL_IMAGE);
|
||||
|
||||
gImageView.getCellProperties = function(row, col, props) {
|
||||
var aserv = Components.classes[ATOM_CONTRACTID]
|
||||
.getService(Components.interfaces.nsIAtomService);
|
||||
|
||||
var atomSvc = Components.classes["@mozilla.org/atom-service;1"]
|
||||
.getService(Components.interfaces.nsIAtomService);
|
||||
gImageView._ltrAtom = atomSvc.getAtom("ltr");
|
||||
gImageView._brokenAtom = atomSvc.getAtom("broken");
|
||||
|
||||
gImageView.getCellProperties = function(row, col, props) {
|
||||
if (gImageView.data[row][COL_IMAGE_SIZE] == gStrings.unknown &&
|
||||
!/^https:/.test(gImageView.data[row][COL_IMAGE_ADDRESS]))
|
||||
props.AppendElement(aserv.getAtom("broken"));
|
||||
props.AppendElement(this._brokenAtom);
|
||||
|
||||
if (col.element.id == "image-address")
|
||||
props.AppendElement(this._ltrAtom);
|
||||
};
|
||||
|
||||
var gImageHash = { };
|
||||
|
|
Загрузка…
Ссылка в новой задаче