mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-02 12:01:47 +00:00
Bug 812086 part 4. Warn when consumers use the moz-prefixed versions of visibility API. r=smaug
This commit is contained in:
parent
2cd0f8f7b1
commit
c500ee457d
@ -28,3 +28,4 @@ DEPRECATED_OPERATION(NoExposedProps)
|
||||
DEPRECATED_OPERATION(MutationEvent)
|
||||
DEPRECATED_OPERATION(MozSlice)
|
||||
DEPRECATED_OPERATION(Components)
|
||||
DEPRECATED_OPERATION(PrefixedVisibilityAPI)
|
||||
|
@ -9527,6 +9527,7 @@ nsDocument::PostVisibilityUpdateEvent()
|
||||
NS_IMETHODIMP
|
||||
nsDocument::GetMozHidden(bool* aHidden)
|
||||
{
|
||||
WarnOnceAbout(ePrefixedVisibilityAPI);
|
||||
return GetHidden(aHidden);
|
||||
}
|
||||
|
||||
@ -9540,6 +9541,7 @@ nsDocument::GetHidden(bool* aHidden)
|
||||
NS_IMETHODIMP
|
||||
nsDocument::GetMozVisibilityState(nsAString& aState)
|
||||
{
|
||||
WarnOnceAbout(ePrefixedVisibilityAPI);
|
||||
return GetVisibilityState(aState);
|
||||
}
|
||||
|
||||
|
@ -114,3 +114,5 @@ MutationEventWarning=Use of Mutation Events is deprecated. Use MutationObserver
|
||||
MozSliceWarning=Use of mozSlice on the Blob object is deprecated. Use slice instead.
|
||||
# LOCALIZATION NOTE: Do not translate "Components"
|
||||
ComponentsWarning=The Components object is deprecated. It will soon be removed.
|
||||
# LOCALIZATION NOTE: Do not translate "mozHidden", "mozVisibilityState", "hidden", or "visibilityState"
|
||||
PrefixedVisibilityApiWarning='mozHidden' and 'mozVisibilityState' are deprecated. Please use the unprefixed 'hidden' and 'visibilityState' instead.
|
||||
|
Loading…
x
Reference in New Issue
Block a user