Disable experimental Bento integration in Sandboxing #7267
Labels
Bento
Changelogged
Whether the issue/PR has been added to release notes.
Enhancement
New feature or improvement of an existing one
Sandboxing Experiment
Milestone
Feature Description
As discovered in a support topic, the Bento implementation of some components (at least
amp-accordion
) is broken, at least when used on a page with the AMP runtime. Also, since the Bento AMP experiment is still present, pages using the Bento versions of components cannot be valid AMP. Therefore, we should go ahead and just disable the Bento integration for the Sandboxing levels experiment.This can be done as simply as the following (with test updates not withstanding):
In this way, the Bento integration will only be enabled if someone explicitly filters
amp_bento_enabled
to betrue
.I was originally thinking of removing all the Bento code and I was adding the following steps to do, but I decided it was overkill for a minor release. But I'll leave it here for posterity:
amp_is_bento_enabled()
as deprecated and useapply_filters_deprecated
for theamp_bento_enabled
filter.bin/amphtml-update.py
parses from the validator spec.amp_register_default_scripts()
andamp_register_default_styles()
.$is_using_bento
check fromAMP_Theme_Support::ensure_required_markup()
.amp_get_content_sanitizers()
.AMP_Bento_Sanitizer
Acceptance Criteria
Bento component scripts should not be served when using Loose/Moderate sandboxing level.
Implementation Brief
No response
QA Testing Instructions
No response
Demo
No response
Changelog Entry
No response
The text was updated successfully, but these errors were encountered: