From 3da3d76a08b4c3999317359a78433e417f32c027 Mon Sep 17 00:00:00 2001 From: Oriol Brufau Date: Tue, 16 May 2023 23:03:45 +0200 Subject: [PATCH] style: Clean up NPAPI plugin fallback behavior Similifies use of EventStates and ObjectType/FallbackType enums since most states they represented are no longer valid with the removal of NPAPI plugins. The state machine for (unsupported) plugin elements is now much simpler but still distinguishes between HTML fallbacks, fallbacks leading to a "BROKEN" state (e.g. failing to load the image the element refers to), and fallbacks that would simply lead the element to occupy an empty region. The last type of fallback is behind a pref "layout.use-plugin-fallback" and is disabled by default. Simplifying the state machine allows us to clean up nsObjectLoadingContent. We also update many of the enums which refered to plugins, which would otherwise get confusing. Differential Revision: https://phabricator.services.mozilla.com/D107158 --- components/style/element_state.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/components/style/element_state.rs b/components/style/element_state.rs index 0852b4574fa..853d4039b2a 100644 --- a/components/style/element_state.rs +++ b/components/style/element_state.rs @@ -132,8 +132,6 @@ bitflags! { const IN_MOZINERT_STATE = 1 << 54; /// State for the topmost dialog element in top layer const IN_TOPMOST_MODAL_DIALOG_STATE = 1 << 55; - /// Non-standard & undocumented. - const IN_HANDLER_NOPLUGINS = 1 << 56; } }