mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 10:44:56 +00:00
Bug 1832733 - Unexpose sizeToContent() in Nightly. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D177867
This commit is contained in:
parent
1bbd6efee9
commit
e26d0dfa4d
@ -3,6 +3,7 @@ head = head.js
|
|||||||
prefs =
|
prefs =
|
||||||
browser.migrate.content-modal.enabled=true
|
browser.migrate.content-modal.enabled=true
|
||||||
browser.migrate.internal-testing.enabled=true
|
browser.migrate.internal-testing.enabled=true
|
||||||
|
dom.window.sizeToContent.enabled=true
|
||||||
support-files =
|
support-files =
|
||||||
../head-common.js
|
../head-common.js
|
||||||
|
|
||||||
|
@ -59,3 +59,4 @@ DEPRECATED_OPERATION(OffscreenCanvasToBlob)
|
|||||||
DEPRECATED_OPERATION(MozPreservesPitchDeprecatedPrefix)
|
DEPRECATED_OPERATION(MozPreservesPitchDeprecatedPrefix)
|
||||||
DEPRECATED_OPERATION(SVGNearestViewportElement)
|
DEPRECATED_OPERATION(SVGNearestViewportElement)
|
||||||
DEPRECATED_OPERATION(SVGFarthestViewportElement)
|
DEPRECATED_OPERATION(SVGFarthestViewportElement)
|
||||||
|
DEPRECATED_OPERATION(SizeToContent)
|
||||||
|
@ -3321,6 +3321,12 @@ bool nsGlobalWindowInner::CachesEnabled(JSContext* aCx, JSObject*) {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* static */
|
||||||
|
bool nsGlobalWindowInner::IsSizeToContentEnabled(JSContext* aCx, JSObject*) {
|
||||||
|
return StaticPrefs::dom_window_sizeToContent_enabled() ||
|
||||||
|
nsContentUtils::IsSystemCaller(aCx);
|
||||||
|
}
|
||||||
|
|
||||||
Crypto* nsGlobalWindowInner::GetCrypto(ErrorResult& aError) {
|
Crypto* nsGlobalWindowInner::GetCrypto(ErrorResult& aError) {
|
||||||
if (!mCrypto) {
|
if (!mCrypto) {
|
||||||
mCrypto = new Crypto(this);
|
mCrypto = new Crypto(this);
|
||||||
|
@ -409,6 +409,8 @@ class nsGlobalWindowInner final : public mozilla::dom::EventTarget,
|
|||||||
|
|
||||||
static bool CachesEnabled(JSContext* aCx, JSObject*);
|
static bool CachesEnabled(JSContext* aCx, JSObject*);
|
||||||
|
|
||||||
|
static bool IsSizeToContentEnabled(JSContext*, JSObject*);
|
||||||
|
|
||||||
bool DoResolve(
|
bool DoResolve(
|
||||||
JSContext* aCx, JS::Handle<JSObject*> aObj, JS::Handle<jsid> aId,
|
JSContext* aCx, JS::Handle<JSObject*> aObj, JS::Handle<jsid> aId,
|
||||||
JS::MutableHandle<mozilla::Maybe<JS::PropertyDescriptor>> aDesc);
|
JS::MutableHandle<mozilla::Maybe<JS::PropertyDescriptor>> aDesc);
|
||||||
|
@ -395,6 +395,10 @@ MathML_DeprecatedScriptminsizeAttributeWarning=MathML attribute “scriptminsize
|
|||||||
# LOCALIZATION NOTE: Do not translate MathML and scriptsizemultiplier.
|
# LOCALIZATION NOTE: Do not translate MathML and scriptsizemultiplier.
|
||||||
MathML_DeprecatedScriptsizemultiplierAttributeWarning=MathML attribute “scriptsizemultiplier” is deprecated and will be removed at a future date.
|
MathML_DeprecatedScriptsizemultiplierAttributeWarning=MathML attribute “scriptsizemultiplier” is deprecated and will be removed at a future date.
|
||||||
FormSubmissionUntrustedEventWarning=Form submission via untrusted submit event is deprecated and will be removed at a future date.
|
FormSubmissionUntrustedEventWarning=Form submission via untrusted submit event is deprecated and will be removed at a future date.
|
||||||
|
|
||||||
|
# LOCALIZATION NOTE: Do not translate "sizeToContent()".
|
||||||
|
SizeToContentWarning=sizeToContent() is deprecated and will be removed in the future.
|
||||||
|
|
||||||
WebShareAPI_Failed=The share operation has failed.
|
WebShareAPI_Failed=The share operation has failed.
|
||||||
WebShareAPI_Aborted=The share operation was aborted.
|
WebShareAPI_Aborted=The share operation was aborted.
|
||||||
# LOCALIZATION NOTE (UnknownProtocolNavigationPrevented): %1$S is the destination URL.
|
# LOCALIZATION NOTE (UnknownProtocolNavigationPrevented): %1$S is the destination URL.
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
[DEFAULT]
|
[DEFAULT]
|
||||||
tags = condprof
|
tags = condprof
|
||||||
|
prefs =
|
||||||
|
dom.window.sizeToContent.enabled=true
|
||||||
support-files =
|
support-files =
|
||||||
bug289714.sjs
|
bug289714.sjs
|
||||||
bug346659-echoer.html
|
bug346659-echoer.html
|
||||||
|
@ -1933,7 +1933,7 @@ let interfaceNamesInGlobalScope = [
|
|||||||
// IMPORTANT: Do not change this list without review from a DOM peer!
|
// IMPORTANT: Do not change this list without review from a DOM peer!
|
||||||
{ name: "setTimeout", insecureContext: true },
|
{ name: "setTimeout", insecureContext: true },
|
||||||
// IMPORTANT: Do not change this list without review from a DOM peer!
|
// IMPORTANT: Do not change this list without review from a DOM peer!
|
||||||
{ name: "sizeToContent", insecureContext: true },
|
{ name: "sizeToContent", insecureContext: true, nightly: false },
|
||||||
// IMPORTANT: Do not change this list without review from a DOM peer!
|
// IMPORTANT: Do not change this list without review from a DOM peer!
|
||||||
{ name: "speechSynthesis", insecureContext: true },
|
{ name: "speechSynthesis", insecureContext: true },
|
||||||
// IMPORTANT: Do not change this list without review from a DOM peer!
|
// IMPORTANT: Do not change this list without review from a DOM peer!
|
||||||
|
@ -411,10 +411,13 @@ partial interface Window {
|
|||||||
*/
|
*/
|
||||||
undefined scrollByPages(long numPages, optional ScrollOptions options = {});
|
undefined scrollByPages(long numPages, optional ScrollOptions options = {});
|
||||||
|
|
||||||
/**
|
// Gecko specific API that allows a web page to resize the browser window.
|
||||||
* Method for sizing this window to the content in the window.
|
// Dropping support in bug 1600400.
|
||||||
*/
|
[Throws, NeedsCallerType,
|
||||||
[Throws, NeedsCallerType] undefined sizeToContent();
|
Deprecated="SizeToContent",
|
||||||
|
Func="nsGlobalWindowInner::IsSizeToContentEnabled"]
|
||||||
|
undefined sizeToContent();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Chrome-only method for sizing to content with a maximum-size constraint on
|
* Chrome-only method for sizing to content with a maximum-size constraint on
|
||||||
* either (or both) directions.
|
* either (or both) directions.
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
[DEFAULT]
|
[DEFAULT]
|
||||||
prefs =
|
prefs =
|
||||||
|
dom.window.sizeToContent.enabled=true
|
||||||
layout.css.constructable-stylesheets.enabled=true
|
layout.css.constructable-stylesheets.enabled=true
|
||||||
layout.css.individual-transform.enabled=true
|
layout.css.individual-transform.enabled=true
|
||||||
layout.css.motion-path.enabled=true
|
layout.css.motion-path.enabled=true
|
||||||
|
@ -3,7 +3,7 @@ load 509839-2.html
|
|||||||
load 576878.xhtml
|
load 576878.xhtml
|
||||||
asserts-if(Android,0-1) load 793844.html
|
asserts-if(Android,0-1) load 793844.html
|
||||||
skip-if(Android) load 1662259.html
|
skip-if(Android) load 1662259.html
|
||||||
skip-if(Android) load 1663722.html
|
skip-if(Android) pref(dom.window.sizeToContent.enabled,true) load 1663722.html
|
||||||
skip-if(Android) load 1671503.html
|
skip-if(Android) load 1671503.html
|
||||||
load 1748277.html # Bug 1751260
|
load 1748277.html # Bug 1751260
|
||||||
load 1758199-1.html
|
load 1758199-1.html
|
||||||
|
@ -4774,6 +4774,12 @@
|
|||||||
value: false
|
value: false
|
||||||
mirror: always
|
mirror: always
|
||||||
|
|
||||||
|
# Whether Window.sizeToContent() is enabled.
|
||||||
|
- name: dom.window.sizeToContent.enabled
|
||||||
|
type: bool
|
||||||
|
value: @IS_NOT_NIGHTLY_BUILD@
|
||||||
|
mirror: always
|
||||||
|
|
||||||
- name: dom.worker.canceling.timeoutMilliseconds
|
- name: dom.worker.canceling.timeoutMilliseconds
|
||||||
type: RelaxedAtomicUint32
|
type: RelaxedAtomicUint32
|
||||||
value: 30000 # 30 seconds
|
value: 30000 # 30 seconds
|
||||||
|
Loading…
Reference in New Issue
Block a user