File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -944,7 +944,11 @@ export class ContextMenuChild extends JSWindowActorChild {
944
944
currentSrc : context . target . currentSrc ,
945
945
width : context . target . width ,
946
946
height : context . target . height ,
947
- imageText : context . target . title || context . target . alt ,
947
+ imageText : this . contentWindow . ImageDocument . isInstance (
948
+ context . target . ownerDocument
949
+ )
950
+ ? undefined
951
+ : context . target . title || context . target . alt ,
948
952
} ;
949
953
const { SVGAnimatedLength } = context . target . ownerGlobal ;
950
954
if ( SVGAnimatedLength . isInstance ( context . imageInfo . height ) ) {
Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ export class PageInfoChild extends JSWindowActorChild {
181
181
// One swi^H^H^Hif-else to rule them all.
182
182
if ( content . HTMLImageElement . isInstance ( elem ) ) {
183
183
addMedia (
184
- elem . src ,
184
+ elem . currentSrc ,
185
185
"img" ,
186
186
elem . getAttribute ( "alt" ) ,
187
187
elem ,
You can’t perform that action at this time.
0 commit comments