Commit d008dc58 authored by Andrew Comminos's avatar Andrew Comminos Committed by Commit Bot

Break out isFramePending into its own feature

Ensure that when shipping isInputPending, we don't ship isFramePending as collateral.

Bug: 910421
Change-Id: Iddfc0ba927a9b61a90e99da18e12bb7513c93b27
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2443213
Commit-Queue: Andrew Comminos <acomminos@fb.com>
Commit-Queue: Philip Rogers <pdr@chromium.org>
Reviewed-by: default avatarPhilip Rogers <pdr@chromium.org>
Auto-Submit: Andrew Comminos <acomminos@fb.com>
Cr-Commit-Position: refs/heads/master@{#812966}
parent 20b437f1
......@@ -7,6 +7,6 @@
Exposed=Window,
RuntimeEnabled=ExperimentalIsInputPending
] interface Scheduling {
[RuntimeEnabled=ExperimentalIsInputPending] boolean isFramePending();
[RuntimeEnabled=ExperimentalIsFramePending] boolean isFramePending();
[CallWith=ScriptState, MeasureAs=SchedulingIsInputPending, RuntimeEnabled=ExperimentalIsInputPending] boolean isInputPending(optional IsInputPendingOptions options = {});
};
......@@ -751,10 +751,14 @@
name: "ExperimentalContentSecurityPolicyFeatures",
status: "experimental",
},
// Enables navigator.scheduling.isInputPending and
// navigator.scheduling.isFramePending, allowing long-running JS to
// be able to yield itself when user input is queued (crbug.com/910421) or a
// display update is scheduled.
// Enables navigator.scheduling.isFramePending, allowing long-running JS to
// be able to yield itself when a display update is scheduled.
{
name: "ExperimentalIsFramePending",
status: "experimental"
},
// Enables navigator.scheduling.isInputPending, allowing long-running JS to
// be able to yield itself when user input is queued (crbug.com/910421).
{
name: "ExperimentalIsInputPending",
origin_trial_feature_name: "ExperimentalIsInputPending",
......
......@@ -15,8 +15,8 @@ test(t => {
OriginTrialsHelper.check_properties_exist(this,
{
'Navigator': ['scheduling'],
'Scheduling': ['isFramePending', 'isInputPending'],
'Scheduling': ['isInputPending'],
},
);
}, "isFramePending/isInputPending related interfaces in Origin-Trial enabled document.");
}, "isInputPending related interfaces in Origin-Trial enabled document.");
</script>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment