Bug 1644897 [wpt PR 24100] - Reland "Remove Document::IsFeatureEnabled, use the Execu...
commit93d3ec8b73759e52a2ad79d2585e5fae31bc8ecb
authorNate Chapin <japhet@chromium.org>
Sat, 13 Jun 2020 03:32:14 +0000 (13 03:32 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Wed, 17 Jun 2020 08:41:37 +0000 (17 08:41 +0000)
treedf656309ac19e690e434f1c564b12fc8cd6b5870
parentc636cb73912eda3399b066fa4f37873e4a403e49
Bug 1644897 [wpt PR 24100] - Reland "Remove Document::IsFeatureEnabled, use the ExecutionContext variants instead.", a=testonly

Automatic update from web-platform-tests
Reland "Remove Document::IsFeatureEnabled, use the ExecutionContext variants instead."

Was reverted because of callsites where GetDocument() was guaranteed
non-null, but GetExecutionContext() might be null if the Document is
detached. Fixed and added regression tests for the places where we got
crash reports.

Bug: 1029822
Change-Id: I2fb16bb8a90613b92a4603289bd7df20ffa992a0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2238891
Commit-Queue: Nate Chapin <japhet@chromium.org>
Reviewed-by: Kentaro Hara <haraken@chromium.org>
Cr-Commit-Position: refs/heads/master@{#777449}

--

wpt-commits: c3514a1ed476f5e2b9e0d55ddc1cc151f655acc8
wpt-pr: 24100
testing/web-platform/tests/html/semantics/embedded-content/the-audio-element/audio-play-in-inactive-document-crash.html [new file with mode: 0644]
testing/web-platform/tests/html/semantics/embedded-content/the-img-element/img-created-in-active-document-crash.html [new file with mode: 0644]
testing/web-platform/tests/html/semantics/embedded-content/the-video-element/video-import-to-inactive-document-crash.html [new file with mode: 0644]