Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AMP4Email: Set default "amp-allowed-url-macros" and "amp-action-white…
…list" (#27561) * Allow no URL macros for email * Set default actions allowlist for email * Update comments for variable-source * Add missing actions * Add unit tests * Check existence of `hasAttribute` * Delegate allowed actions to components * Remove queryWhitelist method * Remove action-white-list meta from tests * Don't make every component check email format * Move action allowlist tests to separate file * Remove unparseable allowlist entries * Use getActionInvocation helper method * Add component-based tests and associated fixes * Stub maybeAddToEmailWhitelist in test-amp-form * Remove extra line * Do not allow duplicate actions * Remove "amp-allowed-url-macros" meta * Remove validator cases for meta tags * Stub hasAttribute in test-url-replacements * Fix type annotation * Replace maybeAddToEmailWhitelist with opts * Annotate void return * Fixes to unit tests * Take Arrays of methods, formats, in addToWhitelist * Replace use of hasOwn * Add warning for ignored whitelist entries * Move action unit tests to component unit tests * Move allowlist unit tests back to test-action.js * Fix warning args * Delete test-action-allowlist.js * Remove unnecessary arg * Remove validator tests for meta * Assert valid whitelist entries * Replace `invoke_` with `execute` in unit tests. * Stub user().error * Use sandbox.spy/stub * Add wg-runtime to TODO comment * (empty)
- Loading branch information
Showing
24 changed files
with
699 additions
and
274 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.