mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 08:15:31 +00:00
Bug 1638333 - BrowserTestUtilsChild.jsm: handleEvent - don't assume the load event target is from a document. r=Yoric
In the case of a <body> location won't be set. Differential Revision: https://phabricator.services.mozilla.com/D76137
This commit is contained in:
parent
1432104c95
commit
4e45f2ae87
@ -264,7 +264,9 @@ class BrowserTestUtilsChild extends JSWindowActorChild {
|
||||
case "load": {
|
||||
this.sendAsyncMessage(aEvent.type, {
|
||||
internalURL: aEvent.target.documentURI,
|
||||
visibleURL: aEvent.target.location.href,
|
||||
visibleURL: aEvent.target.location
|
||||
? aEvent.target.location.href
|
||||
: null,
|
||||
});
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user