зеркало из https://github.com/mozilla/gecko-dev.git
Bug 812701 - Drop the prefixed version of the Visibility API. r=bz
--HG-- extra : rebase_source : 2d989414b2ccbb9c712e711c8373bdca6f87fc4b
This commit is contained in:
Родитель
fd99ac5cc2
Коммит
e6afa43d92
|
@ -12046,11 +12046,6 @@ nsDocument::UpdateVisibilityState()
|
|||
NS_LITERAL_STRING("visibilitychange"),
|
||||
/* bubbles = */ true,
|
||||
/* cancelable = */ false);
|
||||
nsContentUtils::DispatchTrustedEvent(this, static_cast<nsIDocument*>(this),
|
||||
NS_LITERAL_STRING("mozvisibilitychange"),
|
||||
/* bubbles = */ true,
|
||||
/* cancelable = */ false);
|
||||
|
||||
EnumerateActivityObservers(NotifyActivityChanged, nullptr);
|
||||
}
|
||||
|
||||
|
@ -12109,13 +12104,6 @@ nsDocument::MaybeActiveMediaComponents()
|
|||
}
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDocument::GetMozHidden(bool* aHidden)
|
||||
{
|
||||
*aHidden = MozHidden();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDocument::GetHidden(bool* aHidden)
|
||||
{
|
||||
|
@ -12123,13 +12111,6 @@ nsDocument::GetHidden(bool* aHidden)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDocument::GetMozVisibilityState(nsAString& aState)
|
||||
{
|
||||
WarnOnceAbout(ePrefixedVisibilityAPI);
|
||||
return GetVisibilityState(aState);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDocument::GetVisibilityState(nsAString& aState)
|
||||
{
|
||||
|
|
|
@ -2606,20 +2606,10 @@ public:
|
|||
{
|
||||
return mVisibilityState != mozilla::dom::VisibilityState::Visible;
|
||||
}
|
||||
bool MozHidden() const
|
||||
{
|
||||
WarnOnceAbout(ePrefixedVisibilityAPI);
|
||||
return Hidden();
|
||||
}
|
||||
mozilla::dom::VisibilityState VisibilityState() const
|
||||
{
|
||||
return mVisibilityState;
|
||||
}
|
||||
mozilla::dom::VisibilityState MozVisibilityState() const
|
||||
{
|
||||
WarnOnceAbout(ePrefixedVisibilityAPI);
|
||||
return VisibilityState();
|
||||
}
|
||||
#endif
|
||||
virtual mozilla::dom::StyleSheetList* StyleSheets() = 0;
|
||||
void GetSelectedStyleSheetSet(nsAString& aSheetSet);
|
||||
|
|
|
@ -397,9 +397,7 @@ interface nsIDOMDocument : nsIDOMNode
|
|||
* Visibility API implementation.
|
||||
*/
|
||||
readonly attribute boolean hidden;
|
||||
readonly attribute boolean mozHidden;
|
||||
readonly attribute DOMString visibilityState;
|
||||
readonly attribute DOMString mozVisibilityState;
|
||||
|
||||
/**
|
||||
* Returns "BackCompat" if we're in quirks mode or "CSS1Compat" if we're in
|
||||
|
|
|
@ -153,8 +153,6 @@ PluginHangUIMessage=%S may be busy, or it may have stopped responding. You can s
|
|||
PluginHangUIWaitButton=Continue
|
||||
PluginHangUIStopButton=Stop plugin
|
||||
PrefixedFullscreenAPIWarning=Prefixed Fullscreen API is deprecated. Please use unprefixed API for fullscreen. For more help https://developer.mozilla.org/en-US/docs/Web/API/Fullscreen_API
|
||||
# LOCALIZATION NOTE: Do not translate "mozHidden", "mozVisibilityState", "hidden", or "visibilityState"
|
||||
PrefixedVisibilityAPIWarning=‘mozHidden’ and ‘mozVisibilityState’ are deprecated. Please use the unprefixed ‘hidden’ and ‘visibilityState’ instead.
|
||||
# LOCALIZATION NOTE: Do not translate "NodeIterator" or "detach()".
|
||||
NodeIteratorDetachWarning=Calling detach() on a NodeIterator no longer has an effect.
|
||||
# LOCALIZATION NOTE: Do not translate "LenientThis" and "this"
|
||||
|
|
|
@ -278,9 +278,7 @@ partial interface Document {
|
|||
// http://dvcs.w3.org/hg/webperf/raw-file/tip/specs/PageVisibility/Overview.html#sec-document-interface
|
||||
partial interface Document {
|
||||
readonly attribute boolean hidden;
|
||||
readonly attribute boolean mozHidden;
|
||||
readonly attribute VisibilityState visibilityState;
|
||||
readonly attribute VisibilityState mozVisibilityState;
|
||||
};
|
||||
|
||||
// http://dev.w3.org/csswg/cssom/#extensions-to-the-document-interface
|
||||
|
|
Загрузка…
Ссылка в новой задаче