зеркало из https://github.com/mozilla/gecko-dev.git
Fix context menus on pages with background images. Patch from Mark Loiselle <mloiselle@yahoo.com>. r=dbaron sr=shaver b=80473
This commit is contained in:
Родитель
e7196a0271
Коммит
4f53297cd6
|
@ -272,7 +272,7 @@ nsContextMenu.prototype = {
|
|||
} else if ( this.target.getAttribute( "background" ) ) {
|
||||
this.hasBGImage = true;
|
||||
// Convert background attribute to absolute URL.
|
||||
this.bgImageURL = this.makeURLAbsolute( this.target.baseURI,
|
||||
this.bgImageURL = this.makeURLAbsolute( this.target.ownerDocument,
|
||||
this.target.getAttribute( "background" ) );
|
||||
} else if ( "HTTPIndex" in _content &&
|
||||
_content.HTTPIndex instanceof Components.interfaces.nsIHTTPIndex ) {
|
||||
|
@ -378,7 +378,7 @@ nsContextMenu.prototype = {
|
|||
if ( !this.hasBGImage && elem.background ) {
|
||||
this.hasBGImage = true;
|
||||
// Convert background attribute to absolute URL.
|
||||
this.bgImageURL = this.makeURLAbsolute( elem.baseURI,
|
||||
this.bgImageURL = this.makeURLAbsolute( elem.ownerDocument,
|
||||
elem.background );
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче