Backed out changeset d19ad1c1c214 (bug 1266747) for failing dom/workers/test/serviceworkers/test_claim.html. r=backout

This commit is contained in:
Sebastian Hengst 2017-02-28 18:56:14 +01:00
Родитель 4a1eb5e2a6
Коммит a0902d9855
3 изменённых файлов: 0 добавлений и 40 удалений

Просмотреть файл

@ -3254,21 +3254,6 @@ nsIDocument::HasFocus(ErrorResult& rv) const
return false;
}
TimeStamp
nsIDocument::LastFocusTime() const
{
return mLastFocusTime;
}
void
nsIDocument::SetLastFocusTime(const TimeStamp& aFocusTime)
{
MOZ_DIAGNOSTIC_ASSERT(!aFocusTime.IsNull());
MOZ_DIAGNOSTIC_ASSERT(mLastFocusTime.IsNull() ||
aFocusTime >= mLastFocusTime);
mLastFocusTime = aFocusTime;
}
NS_IMETHODIMP
nsDocument::GetReferrer(nsAString& aReferrer)
{
@ -4768,14 +4753,6 @@ nsDocument::SetScriptGlobalObject(nsIScriptGlobalObject *aScriptGlobalObject)
}
MaybeRescheduleAnimationFrameNotifications();
// If we are set in a window that is already focused we should remember this
// as the time the document gained focus.
bool focused = false;
Unused << HasFocus(&focused);
if (focused) {
SetLastFocusTime(TimeStamp::Now());
}
}
// Remember the pointer to our window (or lack there of), to avoid

Просмотреть файл

@ -3611,17 +3611,6 @@ nsFocusManager::SetFocusedWindowInternal(nsPIDOMWindowOuter* aWindow)
nsCOMPtr<nsIRunnable> runnable = new PointerUnlocker();
NS_DispatchToCurrentThread(runnable);
}
// Update the last focus time on any affected documents
if (aWindow && aWindow != mFocusedWindow) {
const TimeStamp now(TimeStamp::Now());
for (nsIDocument* doc = aWindow->GetExtantDoc();
doc;
doc = doc->GetParentDocument()) {
doc->SetLastFocusTime(now);
}
}
mFocusedWindow = aWindow;
}

Просмотреть файл

@ -2656,8 +2656,6 @@ public:
}
Element* GetActiveElement();
bool HasFocus(mozilla::ErrorResult& rv) const;
mozilla::TimeStamp LastFocusTime() const;
void SetLastFocusTime(const mozilla::TimeStamp& aFocusTime);
// Event handlers are all on nsINode already
bool MozSyntheticDocument() const
{
@ -3027,10 +3025,6 @@ protected:
// container for per-context fonts (downloadable, SVG, etc.)
RefPtr<mozilla::dom::FontFaceSet> mFontFaceSet;
// Last time this document or a one of its sub-documents was focused. If
// focus has never occurred then mLastFocusTime.IsNull() will be true.
mozilla::TimeStamp mLastFocusTime;
// True if BIDI is enabled.
bool mBidiEnabled : 1;
// True if a MathML element has ever been owned by this document.