mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 492250 - URLs in Page Info Media tab should be LTR; r-gavin
This commit is contained in:
parent
c2804730fc
commit
6f913f6a1f
@ -168,13 +168,19 @@ const COPYCOL_IMAGE = COL_IMAGE_ADDRESS;
|
|||||||
var gMetaView = new pageInfoTreeView(COPYCOL_META_CONTENT);
|
var gMetaView = new pageInfoTreeView(COPYCOL_META_CONTENT);
|
||||||
var gImageView = new pageInfoTreeView(COPYCOL_IMAGE);
|
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 &&
|
if (gImageView.data[row][COL_IMAGE_SIZE] == gStrings.unknown &&
|
||||||
!/^https:/.test(gImageView.data[row][COL_IMAGE_ADDRESS]))
|
!/^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 = { };
|
var gImageHash = { };
|
||||||
|
Loading…
Reference in New Issue
Block a user