Bug 1352070 - Part 1: In RDM, return the inner window size values of the RDM iframe when getting its outer size values via window.outerWidth/outerHeight r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D32253

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Micah Tigley 2019-05-24 16:46:03 +00:00
parent c926d65d2f
commit 5e1ae47038

View File

@ -3524,7 +3524,8 @@ void nsGlobalWindowOuter::SetInnerHeightOuter(int32_t aInnerHeight,
nsIntSize nsGlobalWindowOuter::GetOuterSize(CallerType aCallerType,
ErrorResult& aError) {
if (nsContentUtils::ResistFingerprinting(aCallerType)) {
if (nsContentUtils::ResistFingerprinting(aCallerType) ||
(mDoc && mDoc->InRDMPane())) {
CSSIntSize size;
aError = GetInnerSize(size);
return nsIntSize(size.width, size.height);