tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 3d70404f3b5582736cff5d5c02b9080d55f7000b
parent 6ef3d44ec645cc393300806684d11c6de0b302b0
Author: Makoto Kato <m_kato@ga2.so-net.ne.jp>
Date:   Wed,  3 Dec 2025 06:12:17 +0000

Bug 2003169 - Deprecated legacy mozOrientation. r=edgar,webidl,saschanaz

We have shipped the Screen Orientation API, so this should be
deprecated.

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

Diffstat:
Mdom/base/nsDeprecatedOperationList.h | 4++++
Mdom/base/use_counter_metrics.yaml | 140+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
Mdom/locales/en-US/chrome/dom/dom.properties | 9+++++++++
Mdom/webidl/Screen.webidl | 8+++++++-
4 files changed, 158 insertions(+), 3 deletions(-)

diff --git a/dom/base/nsDeprecatedOperationList.h b/dom/base/nsDeprecatedOperationList.h @@ -60,3 +60,7 @@ DEPRECATED_OPERATION(IDBObjectStoreCreateIndexLocale) DEPRECATED_OPERATION(FullscreenAttribute) DEPRECATED_OPERATION(XSLTDeprecated) DEPRECATED_OPERATION(CKEditor4CompatHack) +DEPRECATED_OPERATION(MozorientationDeprecated) +DEPRECATED_OPERATION(MozorientationchangeDeprecated) +DEPRECATED_OPERATION(MozlockorientationDeprecated) +DEPRECATED_OPERATION(MozunlockorientationDeprecated) diff --git a/dom/base/use_counter_metrics.yaml b/dom/base/use_counter_metrics.yaml @@ -15657,7 +15657,7 @@ use.counter.worker.service: send_in_pings: - use-counters -# Total of 50 'deprecated operations (page)' use counters. +# Total of 54 'deprecated operations (page)' use counters. use.counter.deprecated_ops.page: components: type: counter @@ -16509,7 +16509,75 @@ use.counter.deprecated_ops.page: send_in_pings: - use-counters -# Total of 50 'deprecated operations (document)' use counters. + mozorientation_deprecated: + type: counter + description: > + Whether a page used Mozorientationdeprecated. + Compare against `use.counter.top_level_content_documents_destroyed` + to calculate the rate. + bugs: + - https://bugzilla.mozilla.org/show_bug.cgi?id=1852098 + data_reviews: + - https://bugzilla.mozilla.org/show_bug.cgi?id=1852098 + notification_emails: + - dom-core@mozilla.com + - emilio@mozilla.com + expires: never + send_in_pings: + - use-counters + + mozorientationchange_deprecated: + type: counter + description: > + Whether a page used MozorientationchangeDeprecated. + Compare against `use.counter.top_level_content_documents_destroyed` + to calculate the rate. + bugs: + - https://bugzilla.mozilla.org/show_bug.cgi?id=1852098 + data_reviews: + - https://bugzilla.mozilla.org/show_bug.cgi?id=1852098 + notification_emails: + - dom-core@mozilla.com + - emilio@mozilla.com + expires: never + send_in_pings: + - use-counters + + mozlockorientation_deprecated: + type: counter + description: > + Whether a page used MozlockorientationDeprecated. + Compare against `use.counter.top_level_content_documents_destroyed` + to calculate the rate. + bugs: + - https://bugzilla.mozilla.org/show_bug.cgi?id=1852098 + data_reviews: + - https://bugzilla.mozilla.org/show_bug.cgi?id=1852098 + notification_emails: + - dom-core@mozilla.com + - emilio@mozilla.com + expires: never + send_in_pings: + - use-counters + + mozunlockorientation_deprecated: + type: counter + description: > + Whether a page used MozunlockorientationDeprecated. + Compare against `use.counter.top_level_content_documents_destroyed` + to calculate the rate. + bugs: + - https://bugzilla.mozilla.org/show_bug.cgi?id=1852098 + data_reviews: + - https://bugzilla.mozilla.org/show_bug.cgi?id=1852098 + notification_emails: + - dom-core@mozilla.com + - emilio@mozilla.com + expires: never + send_in_pings: + - use-counters + +# Total of 54 'deprecated operations (document)' use counters. use.counter.deprecated_ops.doc: components: type: counter @@ -17361,6 +17429,74 @@ use.counter.deprecated_ops.doc: send_in_pings: - use-counters + mozorientation_deprecated: + type: counter + description: > + Whether a document used MozorientationDeprecated. + Compare against `use.counter.content_documents_destroyed` + to calculate the rate. + bugs: + - https://bugzilla.mozilla.org/show_bug.cgi?id=1852098 + data_reviews: + - https://bugzilla.mozilla.org/show_bug.cgi?id=1852098 + notification_emails: + - dom-core@mozilla.com + - emilio@mozilla.com + expires: never + send_in_pings: + - use-counters + + mozorientationchange_deprecated: + type: counter + description: > + Whether a document used MozorientationchangeDeprecated. + Compare against `use.counter.content_documents_destroyed` + to calculate the rate. + bugs: + - https://bugzilla.mozilla.org/show_bug.cgi?id=1852098 + data_reviews: + - https://bugzilla.mozilla.org/show_bug.cgi?id=1852098 + notification_emails: + - dom-core@mozilla.com + - emilio@mozilla.com + expires: never + send_in_pings: + - use-counters + + mozlockorientation_deprecated: + type: counter + description: > + Whether a document used MozlockorientationDeprecated. + Compare against `use.counter.content_documents_destroyed` + to calculate the rate. + bugs: + - https://bugzilla.mozilla.org/show_bug.cgi?id=1852098 + data_reviews: + - https://bugzilla.mozilla.org/show_bug.cgi?id=1852098 + notification_emails: + - dom-core@mozilla.com + - emilio@mozilla.com + expires: never + send_in_pings: + - use-counters + + mozunlockorientation_deprecated: + type: counter + description: > + Whether a document used MozunlockorientationDeprecated. + Compare against `use.counter.content_documents_destroyed` + to calculate the rate. + bugs: + - https://bugzilla.mozilla.org/show_bug.cgi?id=1852098 + data_reviews: + - https://bugzilla.mozilla.org/show_bug.cgi?id=1852098 + notification_emails: + - dom-core@mozilla.com + - emilio@mozilla.com + expires: never + send_in_pings: + - use-counters + # Total of 704 'CSS (page)' use counters. use.counter.css.page: css_align_items: diff --git a/dom/locales/en-US/chrome/dom/dom.properties b/dom/locales/en-US/chrome/dom/dom.properties @@ -486,3 +486,12 @@ XSLTDeprecatedWarning=XSLT will be removed from this web browser soon. See https # LOCALIZATION NOTE: Do not translate CKEditor CKEditor4CompatHackWarning=Altered iframe load event timing for compatibility with CKEditor 4’s browser detection + +# LOCALIZATION NOTE (MozorientationDeprecatedWarning): Do not translate mozOrientation and screen.orientation.type. +MozorientationDeprecatedWarning=mozOrientation is deprecated. Use orientation.type instead. +# LOCALIZATION NOTE (MozorientationchangeDeprecatedWarning): Do not translate onmozorientationchange and screen.orientation.onchange. +MozorientationchangeDeprecatedWarning=onmozorientationchange is deprecated. Use orientation.onchange instead. +# LOCALIZATION NOTE (MozlockorientationDeprecatedWarning): Do not translate mozLockOrientation() and screen.orientation.lock() . +MozlockorientationDeprecatedWarning=mozLockOrientation() is deprecated. Use orientation.lock() instead. +# LOCALIZATION NOTE (MozunlockorientationDeprecatedWarning): Do not translate mozUnlockOrientation() and screen.orientation.unlock() . +MozunlockorientationDeprecatedWarning=mozUnlockOrientation() is deprecated. Use orientation.unlock() instead. diff --git a/dom/webidl/Screen.webidl b/dom/webidl/Screen.webidl @@ -25,9 +25,10 @@ interface Screen : EventTarget { * Can be: landscape-primary, landscape-secondary, * portrait-primary or portrait-secondary. */ - [NeedsCallerType] + [NeedsCallerType, Deprecated="MozorientationDeprecated"] readonly attribute DOMString mozOrientation; + [Deprecated="MozorientationchangeDeprecated"] attribute EventHandler onmozorientationchange; /** @@ -37,8 +38,13 @@ interface Screen : EventTarget { * FIXME(emilio): These do literally nothing, we should * try to remove these. */ + [Deprecated="MozlockorientationDeprecated"] boolean mozLockOrientation(DOMString orientation); + + [Deprecated="MozlockorientationDeprecated"] boolean mozLockOrientation(sequence<DOMString> orientation); + + [Deprecated="MozunlockorientationDeprecated"] undefined mozUnlockOrientation(); };