Bug 1696323 - Return early when attempting to focus a remote iframe whose BrowsingContext is already the focused one. r=edgar

Differential Revision: https://phabricator.services.mozilla.com/D112534
This commit is contained in:
Henri Sivonen
2021-04-29 12:51:39 +00:00
parent 1cc908b1c3
commit 0821a39ff2
14 changed files with 297 additions and 42 deletions

View File

@@ -28,6 +28,11 @@
using namespace mozilla::ipc;
mozilla::LazyLogModule gBrowserChildFocusLog("BrowserChildFocus");
#define LOGBROWSERCHILDFOCUS(args) \
MOZ_LOG(gBrowserChildFocusLog, mozilla::LogLevel::Debug, args)
namespace mozilla::dom {
BrowserBridgeChild::BrowserBridgeChild(BrowsingContext* aBrowsingContext,
@@ -77,6 +82,8 @@ void BrowserBridgeChild::NavigateByKey(bool aForward,
}
void BrowserBridgeChild::Activate(uint64_t aActionId) {
LOGBROWSERCHILDFOCUS(
("BrowserBridgeChild::Activate actionid: %" PRIu64, aActionId));
Unused << SendActivate(aActionId);
}