Bug 442304 - Firefox context menu is small and displays with scrollbar on KDE Wayland
Summary: Firefox context menu is small and displays with scrollbar on KDE Wayland
Status: RESOLVED DOWNSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.22.4
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL: https://bugzilla.mozilla.org/show_bug...
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-11 13:19 UTC by Lyubomir
Modified: 2021-10-27 12:44 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Firefox context menu small and with scroll arrow (53.42 KB, image/png)
2021-09-11 13:19 UTC, Lyubomir
Details
Firefox context menu correctly shown - whole size no scroll arrow (106.20 KB, image/png)
2021-09-11 13:24 UTC, Lyubomir
Details
Context menu a little larger but still with scroll arrow (85.25 KB, image/png)
2021-09-11 13:29 UTC, Lyubomir
Details
Display not scaled (644.22 KB, image/png)
2021-09-13 10:10 UTC, Lyubomir
Details
Display scaled (716.21 KB, image/png)
2021-09-13 10:21 UTC, Lyubomir
Details
wayland_debug.txt (406.62 KB, text/plain)
2021-09-14 08:57 UTC, Lyubomir
Details
Firefox context menu WAYLAND debug log (469.64 KB, text/plain)
2021-10-16 10:05 UTC, Lyubomir
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lyubomir 2021-09-11 13:19:31 UTC
Created attachment 141472 [details]
Firefox context menu small and with scroll arrow

SUMMARY
I file this bug as i was told here: https://bugzilla.mozilla.org/show_bug.cgi?id=1727072#c18 that the issue depends on the compositor and it can't be fixed from Mozilla side.

In Firefox when i right-click the context menus frequently appear like this.
Comment 1 Lyubomir 2021-09-11 13:24:40 UTC
Created attachment 141473 [details]
Firefox context menu correctly shown - whole size no scroll arrow

The above comment and this one happen when you click towards the bottom of the viewport with little space below it for the context menu to appear.

So the above issue happens but also sometimes the context menu is correctly shown in its whole size on top of/above the cursor - without any scroll arrow.
Comment 2 Lyubomir 2021-09-11 13:29:10 UTC
Created attachment 141474 [details]
Context menu a little larger but still with scroll arrow

This last case is what happens when i click somewhere close to the top of the viewport - it shows the scrollbar even then, so maybe what the issue is/what happens is an erratic behavior between two ways of working - one which tries to position the context menu inside the viewport and therefore generates scroll arrow; and another one, which doesn't care about the viewport and if it happens it also draws part of the context menu over the address bar so that it doesn't produce a scroll arrow. This is all speculation from myself.
Comment 3 Lyubomir 2021-09-11 13:41:21 UTC
Firefox Nightly and Firefox 92 Stable can reproduce this issue, but please test in Nightly as it has a lot of Wayland-related changes and i believe that the issue is exacerbated there.

If Firefox Nightly is extracted in /opt/firefox/ for example you should run Nightly with the following commands:
export MOZ_ENABLE_WAYLAND=1
/opt/firefox/firefox
Comment 4 Lyubomir 2021-09-11 13:45:44 UTC
SOFTWARE/OS VERSIONS
Operating System: Kubuntu 21.04
KDE Plasma Version: 5.22.4
KDE Frameworks Version: 5.85.0
Qt Version: 5.15.2
Kernel Version: 5.11.0-31-lowlatency (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i5-8250U CPU @ 1.60GHz
Memory: 7,6 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620
Comment 5 Lyubomir 2021-09-11 13:48:02 UTC
Application Basics
------------------

Name: Firefox
Version: 94.0a1
Build ID: 20210911095121
Distribution ID:
Update Channel: nightly
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0
OS: Linux 5.11.0-31-lowlatency #33-Ubuntu SMP PREEMPT Wed Aug 11 14:21:21 UTC 2021
OS Theme: Breeze / Adwaita
Multiprocess Windows: 1/1
Fission Windows: 1/1 Enabled by experiment
Remote Processes: 6
Enterprise Policies: Inactive
Google Location Service Key: Found
Google Safebrowsing Key: Found
Mozilla Location Service Key: Found
Safe Mode: false

Crash Reports for the Last 3 Days
---------------------------------

Nightly Features
----------------

Name: DoH Roll-Out
Version: 2.0.0
ID: doh-rollout@mozilla.org

Name: Firefox Screenshots
Version: 39.0.1
ID: screenshots@mozilla.org

Name: Form Autofill
Version: 1.0.1
ID: formautofill@mozilla.org

Name: Picture-In-Picture
Version: 1.0.0
ID: pictureinpicture@mozilla.org

Name: Web Compatibility Interventions
Version: 26.0.0
ID: webcompat@mozilla.org

Name: WebCompat Reporter
Version: 1.4.2
ID: webcompat-reporter@mozilla.org

Remote Features
---------------

bug-1705528-rollout-ongoing-fission-nightly-rollout-clone-nightly-90-100: active
upgradeDialog: (upgradeDialog-defaultEnabled)

Remote Processes
----------------

Type: Extension
Count: 1

Type: Isolated Web Content
Count: 1

Type: Preallocated
Count: 3

Type: Socket
Count: 1

Add-ons
-------

Name: Absolute Enable Right Click & Copy
Type: extension
Version: 1.3.8
Enabled: true
ID: {9350bc42-47fb-4598-ae0f-825e3dd9ceba}

Name: Amazon.co.uk
Type: extension
Version: 1.9
Enabled: true
ID: amazon@search.mozilla.org

Name: Amazon.com
Type: extension
Version: 1.3
Enabled: true
ID: amazondotcom@search.mozilla.org

Name: Auto Tab Discard
Type: extension
Version: 0.4.7
Enabled: true
ID: {c2c003ee-bd69-42a2-b0e9-6f34222cb046}

Name: Bing
Type: extension
Version: 1.3
Enabled: true
ID: bing@search.mozilla.org

Name: Bitwarden - Free Password Manager
Type: extension
Version: 1.52.1
Enabled: true
ID: {446900e4-71c2-419f-a6a7-df9c091e268b}

Name: Chambers (UK)
Type: extension
Version: 1.0
Enabled: true
ID: chambers-en-GB@search.mozilla.org

Name: Checker Plus for Google Calendar™
Type: extension
Version: 28.1.2
Enabled: true
ID: checkerplusforgooglecalendar@jasonsavard.com

Name: Custom Scrollbars
Type: extension
Version: 3.1.1
Enabled: true
ID: customscrollbars@computerwhiz

Name: Dark Reader
Type: extension
Version: 4.9.34
Enabled: true
ID: addon@darkreader.org

Name: Dictionary Anywhere
Type: extension
Version: 1.1.0
Enabled: true
ID: {e90f5de4-8510-4515-9f67-3b6654e1e8c2}

Name: DuckDuckGo
Type: extension
Version: 1.1
Enabled: true
ID: ddg@search.mozilla.org

Name: eBay
Type: extension
Version: 1.3
Enabled: true
ID: ebay@search.mozilla.org

Name: Enhancer for YouTube™
Type: extension
Version: 2.0.105
Enabled: true
ID: enhancerforyoutube@maximerf.addons.mozilla.org

Name: Fess Google Bookmark Extension
Type: extension
Version: 1.0.10
Enabled: true
ID: GBE@fess16.blogspot.com

Name: Google
Type: extension
Version: 1.1
Enabled: true
ID: google@search.mozilla.org

Name: LASER CAT
Type: extension
Version: 22.17.1
Enabled: true
ID: {e981cbfb-2e31-4be3-85ce-c4a058a38f94}

Name: LeechBlock NG
Type: extension
Version: 1.0.13
Enabled: true
ID: leechblockng@proginosko.com

Name: Mailvelope
Type: extension
Version: 4.4.1
Enabled: true
ID: jid1-AQqSMBYb0a8ADg@jetpack

Name: Plasma Integration
Type: extension
Version: 1.8.0.1
Enabled: true
ID: plasma-browser-integration@kde.org

Name: PocketTube: Youtube Subscription Manager
Type: extension
Version: 9.9.25
Enabled: true
ID: danabok16@gmail.com

Name: React Developer Tools
Type: extension
Version: 4.18.0
Enabled: true
ID: @react-devtools

Name: Read Aloud: A Text to Speech Voice Reader
Type: extension
Version: 1.46.0
Enabled: true
ID: {ddc62400-f22d-4dd3-8b4a-05837de53c2e}

Name: Redirect AMP to HTML
Type: extension
Version: 2.1.0
Enabled: true
ID: {569456be-2850-4f7e-b669-71e55140ee0a}

Name: Search by Image
Type: extension
Version: 3.7.1
Enabled: true
ID: {2e5ff8c8-32fe-46d0-9fc8-6b8986621f3c}

Name: Side View
Type: extension
Version: 0.4.6423
Enabled: true
ID: side-view@mozilla.org

Name: SingleFile
Type: extension
Version: 1.19.7
Enabled: true
ID: {531906d3-e22f-4a6c-a102-8057b88a1a63}

Name: Snooze Tabs
Type: extension
Version: 1.1.1
Enabled: true
ID: snoozetabs@mozilla.com

Name: Switch to audible tab
Type: extension
Version: 0.0.7
Enabled: true
ID: {0cd726db-f954-44f2-bf4f-7ed0de734de2}

Name: Switch To Previous Active Tab
Type: extension
Version: 2.0
Enabled: true
ID: {f01b6ea5-5910-4359-afee-9f0de052c7a1}

Name: Tab Stash
Type: extension
Version: 2.9
Enabled: true
ID: tab-stash@condordes.net

Name: Tabliss
Type: extension
Version: 2.1.0
Enabled: true
ID: extension@tabliss.io

Name: Take Webpage Screenshots Entirely - FireShot
Type: extension
Version: 0.99.15
Enabled: true
ID: {0b457cAA-602d-484a-8fe7-c1d894a011ba}

Name: Translate Web Pages
Type: extension
Version: 9.4.1
Enabled: true
ID: {036a55b4-5e72-4d05-a06c-cba2dfcc134a}

Name: uBlock Origin
Type: extension
Version: 1.37.2
Enabled: true
ID: uBlock0@raymondhill.net

Name: Video DownloadHelper
Type: extension
Version: 7.6.0
Enabled: true
ID: {b9db16a4-6edc-47ec-a1f4-b86292ed211d}

Name: Web Archives
Type: extension
Version: 2.1.0
Enabled: true
ID: {d07ccf11-c0cd-4938-a265-2a4d6ad01189}

Name: Wikipedia (en)
Type: extension
Version: 1.1
Enabled: true
ID: wikipedia@search.mozilla.org

Name: Bandwidth Hero - Live Image Compression
Type: extension
Version: 2.1.4
Enabled: false
ID: {1bcb2454-49e0-4bab-babf-a7c45b2bee47}

Name: Distill Web Monitor
Type: extension
Version: 1.18.6
Enabled: false
ID: {7a73dc4b-1b38-40e7-ac56-7d356dd4af34}

Name: Faster Pageload
Type: extension
Version: 1.8.5
Enabled: false
ID: {73c0257e-a620-4c48-a2a8-2a9e8481a0d4}

Name: Nightly Tester Tools
Type: extension
Version: 4.0
Enabled: false
ID: {8620c15f-30dc-4dba-a131-7c5d20cf4a29}

Name: Open in Chrome
Type: extension
Version: 0.2.8
Enabled: false
ID: {086f665e-6a55-4107-9147-f9a14e72b137}

Name: Save-Data: on
Type: extension
Version: 1.1.0
Enabled: false
ID: {e56e301a-08ee-454d-9317-390139b2128b}

Name: Stay secure with CyberGhost VPN Free Proxy
Type: extension
Version: 6.2.7
Enabled: false
ID: {585280b0-ee78-428a-92c5-3fb3c0b85460}

Name: Tree Status for Mozilla
Type: extension
Version: 0.11
Enabled: false
ID: mozilla-tree-status@kwan.perix.co.uk

Name: User-Agent Switcher and Manager
Type: extension
Version: 0.4.7.1
Enabled: false
ID: {a6c4a591-f1b2-4f03-b3ff-767e5bedf4e7}

Name: Violentmonkey
Type: extension
Version: 2.13.0
Enabled: false
ID: {aecec67f-0d10-4fa7-b7c7-609a2db280cf}

Name: Web Scraper - Free Web Scraping
Type: extension
Version: 0.5.4
Enabled: false
ID: {4d22c3b5-8248-4431-ad99-90b1443de5ee}

Name: web.skype.com for Firefox
Type: extension
Version: 0.6.0
Enabled: false
ID: firefox-web-skype@phts

Graphics
--------

Features
Compositing: WebRender
Asynchronous Pan/Zoom: wheel input enabled; scrollbar drag enabled; keyboard enabled; autoscroll enabled; smooth pinch-zoom enabled
WebGL 1 Driver WSI Info: EGL_VENDOR: Mesa Project EGL_VERSION: 1.5 EGL_EXTENSIONS: EGL_ANDROID_blob_cache EGL_ANDROID_native_fence_sync EGL_EXT_buffer_age EGL_EXT_create_context_robustness EGL_EXT_image_dma_buf_import EGL_EXT_image_dma_buf_import_modifiers EGL_EXT_swap_buffers_with_damage EGL_IMG_context_priority EGL_KHR_cl_event2 EGL_KHR_config_attribs EGL_KHR_create_context EGL_KHR_create_context_no_error EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses EGL_KHR_gl_colorspace EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_3D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_image_base EGL_KHR_no_config_context EGL_KHR_reusable_sync EGL_KHR_surfaceless_context EGL_KHR_swap_buffers_with_damage EGL_EXT_pixel_format_float EGL_KHR_wait_sync EGL_MESA_configless_context EGL_MESA_drm_image EGL_MESA_image_dma_buf_export EGL_MESA_query_driver EGL_WL_bind_wayland_display EGL_WL_create_wayland_buffer_from_image EGL_EXTENSIONS(nullptr): EGL_EXT_platform_base EGL_EXT_device_base EGL_EXT_device_enumeration EGL_EXT_device_query EGL_KHR_client_get_all_proc_addresses EGL_EXT_client_extensions EGL_KHR_debug EGL_KHR_platform_x11 EGL_EXT_platform_x11 EGL_EXT_platform_device EGL_EXT_platform_wayland EGL_KHR_platform_wayland EGL_MESA_platform_xcb EGL_MESA_platform_gbm EGL_KHR_platform_gbm EGL_MESA_platform_surfaceless IsWebglOutOfProcessEnabled: 0
WebGL 1 Driver Renderer: Intel -- Mesa Intel(R) UHD Graphics 620 (KBL GT2)
WebGL 1 Driver Version: 4.6 (Compatibility Profile) Mesa 21.0.3
WebGL 1 Driver Extensions: GL_ARB_multisample GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_copy_texture GL_EXT_subtexture GL_EXT_texture_object GL_EXT_vertex_array GL_EXT_compiled_vertex_array GL_EXT_texture GL_EXT_texture3D GL_IBM_rasterpos_clip GL_ARB_point_parameters GL_EXT_draw_range_elements GL_EXT_packed_pixels GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_separate_specular_color GL_EXT_texture_edge_clamp GL_SGIS_generate_mipmap GL_SGIS_texture_border_clamp GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_ARB_framebuffer_sRGB GL_ARB_multitexture GL_EXT_framebuffer_sRGB GL_IBM_multimode_draw_arrays GL_IBM_texture_mirrored_repeat GL_3DFX_texture_compression_FXT1 GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_transpose_matrix GL_EXT_blend_func_separate GL_EXT_fog_coord GL_EXT_multi_draw_arrays GL_EXT_secondary_color GL_EXT_texture_env_add GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod_bias GL_INGR_blend_func_separate GL_NV_blend_square GL_NV_light_max_exponent GL_NV_texgen_reflection GL_NV_texture_env_combine4 GL_S3_s3tc GL_SUN_multi_draw_arrays GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_EXT_framebuffer_object GL_EXT_texture_compression_s3tc GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_MESA_window_pos GL_NV_packed_depth_stencil GL_NV_texture_rectangle GL_ARB_depth_texture GL_ARB_occlusion_query GL_ARB_shadow GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat GL_ARB_window_pos GL_ATI_fragment_shader GL_EXT_stencil_two_side GL_EXT_texture_cube_map GL_NV_copy_depth_to_color GL_NV_depth_clamp GL_NV_fog_distance GL_NV_half_float GL_APPLE_packed_pixels GL_ARB_draw_buffers GL_ARB_fragment_program GL_ARB_fragment_shader GL_ARB_shader_objects GL_ARB_vertex_program GL_ARB_vertex_shader GL_ATI_draw_buffers GL_ATI_texture_env_combine3 GL_ATI_texture_float GL_EXT_shadow_funcs GL_EXT_stencil_wrap GL_MESA_pack_invert GL_NV_primitive_restart GL_ARB_depth_clamp GL_ARB_fragment_program_shadow GL_ARB_half_float_pixel GL_ARB_occlusion_query2 GL_ARB_point_sprite GL_ARB_shading_language_100 GL_ARB_sync GL_ARB_texture_non_power_of_two GL_ARB_vertex_buffer_object GL_ATI_blend_equation_separate GL_EXT_blend_equation_separate GL_OES_read_format GL_ARB_color_buffer_float GL_ARB_pixel_buffer_object GL_ARB_texture_compression_rgtc GL_ARB_texture_float GL_ARB_texture_rectangle GL_EXT_packed_float GL_EXT_pixel_buffer_object GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_rgtc GL_EXT_texture_rectangle GL_EXT_texture_sRGB GL_EXT_texture_shared_exponent GL_ARB_framebuffer_object GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXT_packed_depth_stencil GL_ARB_vertex_array_object GL_ATI_separate_stencil GL_EXT_draw_buffers2 GL_EXT_draw_instanced GL_EXT_gpu_program_parameters GL_EXT_gpu_shader4 GL_EXT_texture_array GL_EXT_texture_integer GL_EXT_texture_sRGB_decode GL_EXT_timer_query GL_OES_EGL_image GL_AMD_performance_monitor GL_EXT_texture_buffer_object GL_AMD_texture_texture4 GL_ARB_copy_buffer GL_ARB_depth_buffer_float GL_ARB_draw_instanced GL_ARB_half_float_vertex GL_ARB_instanced_arrays GL_ARB_map_buffer_range GL_ARB_texture_buffer_object GL_ARB_texture_rg GL_ARB_texture_swizzle GL_ARB_vertex_array_bgra GL_EXT_texture_swizzle GL_EXT_vertex_array_bgra GL_NV_conditional_render GL_AMD_conservative_depth GL_AMD_depth_clamp_separate GL_AMD_draw_buffers_blend GL_AMD_seamless_cubemap_per_texture GL_AMD_shader_stencil_export GL_ARB_ES2_compatibility GL_ARB_blend_func_extended GL_ARB_compatibility GL_ARB_debug_output GL_ARB_draw_buffers_blend GL_ARB_draw_elements_base_vertex GL_ARB_explicit_attrib_location GL_ARB_fragment_coord_conventions GL_ARB_provoking_vertex GL_ARB_sample_shading GL_ARB_sampler_objects GL_ARB_seamless_cube_map GL_ARB_shader_stencil_export GL_ARB_shader_texture_lod GL_ARB_tessellation_shader GL_ARB_texture_buffer_object_rgb32 GL_ARB_texture_cube_map_array GL_ARB_texture_gather GL_ARB_texture_multisample GL_ARB_texture_query_lod GL_ARB_texture_rgb10_a2ui GL_ARB_uniform_buffer_object GL_ARB_vertex_type_2_10_10_10_rev GL_EXT_provoking_vertex GL_EXT_texture_snorm GL_MESA_texture_signed_rgba GL_NV_copy_image GL_NV_texture_barrier GL_ARB_draw_indirect GL_ARB_get_program_binary GL_ARB_gpu_shader5 GL_ARB_gpu_shader_fp64 GL_ARB_robustness GL_ARB_separate_shader_objects GL_ARB_shader_bit_encoding GL_ARB_shader_precision GL_ARB_shader_subroutine GL_ARB_texture_compression_bptc GL_ARB_timer_query GL_ARB_transform_feedback2 GL_ARB_transform_feedback3 GL_ARB_vertex_attrib_64bit GL_ARB_viewport_array GL_EXT_direct_state_access GL_EXT_vertex_attrib_64bit GL_AMD_multi_draw_indirect GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_ARB_base_instance GL_ARB_compressed_texture_pixel_storage GL_ARB_conservative_depth GL_ARB_internalformat_query GL_ARB_map_buffer_alignment GL_ARB_shader_atomic_counters GL_ARB_shader_image_load_store GL_ARB_shading_language_420pack GL_ARB_shading_language_packing GL_ARB_texture_storage GL_ARB_transform_feedback_instanced GL_EXT_framebuffer_multisample_blit_scaled GL_EXT_transform_feedback GL_AMD_query_buffer_object GL_AMD_shader_trinary_minmax GL_AMD_vertex_shader_layer GL_AMD_vertex_shader_viewport_index GL_ARB_ES3_compatibility GL_ARB_arrays_of_arrays GL_ARB_clear_buffer_object GL_ARB_compute_shader GL_ARB_copy_image GL_ARB_explicit_uniform_location GL_ARB_fragment_layer_viewport GL_ARB_framebuffer_no_attachments GL_ARB_invalidate_subdata GL_ARB_multi_draw_indirect GL_ARB_program_interface_query GL_ARB_robust_buffer_access_behavior GL_ARB_shader_image_size GL_ARB_shader_storage_buffer_object GL_ARB_stencil_texturing GL_ARB_texture_buffer_range GL_ARB_texture_query_levels GL_ARB_texture_storage_multisample GL_ARB_texture_view GL_ARB_vertex_attrib_binding GL_KHR_debug GL_KHR_robustness GL_KHR_texture_compression_astc_ldr GL_AMD_pinned_memory GL_ARB_buffer_storage GL_ARB_clear_texture GL_ARB_compute_variable_group_size GL_ARB_enhanced_layouts GL_ARB_indirect_parameters GL_ARB_internalformat_query2 GL_ARB_multi_bind GL_ARB_query_buffer_object GL_ARB_seamless_cubemap_per_texture GL_ARB_shader_draw_parameters GL_ARB_shader_group_vote GL_ARB_shading_language_include GL_ARB_texture_mirror_clamp_to_edge GL_ARB_texture_stencil8 GL_ARB_vertex_type_10f_11f_11f_rev GL_EXT_shader_framebuffer_fetch GL_EXT_shader_integer_mix GL_INTEL_performance_query GL_ARB_ES3_1_compatibility GL_ARB_clip_control GL_ARB_conditional_render_inverted GL_ARB_cull_distance GL_ARB_derivative_control GL_ARB_direct_state_access GL_ARB_get_texture_sub_image GL_ARB_pipeline_statistics_query GL_ARB_shader_texture_image_samples GL_ARB_texture_barrier GL_ARB_transform_feedback_overflow_query GL_EXT_polygon_offset_clamp GL_KHR_blend_equation_advanced GL_KHR_blend_equation_advanced_coherent GL_KHR_context_flush_control GL_KHR_robust_buffer_access_behavior GL_ARB_fragment_shader_interlock GL_ARB_gpu_shader_int64 GL_ARB_parallel_shader_compile GL_ARB_post_depth_coverage GL_ARB_shader_atomic_counter_ops GL_ARB_shader_ballot GL_ARB_shader_clock GL_ARB_shader_viewport_layer_array GL_EXT_shader_samples_identical GL_EXT_texture_sRGB_R8 GL_KHR_no_error GL_KHR_texture_compression_astc_sliced_3d GL_NV_fragment_shader_interlock GL_ARB_gl_spirv GL_ARB_spirv_extensions GL_MESA_shader_integer_functions GL_ARB_polygon_offset_clamp GL_ARB_texture_filter_anisotropic GL_EXT_semaphore GL_EXT_semaphore_fd GL_KHR_parallel_shader_compile GL_EXT_EGL_image_storage GL_EXT_shader_framebuffer_fetch_non_coherent GL_EXT_texture_shadow_lod GL_INTEL_blackhole_render GL_INTEL_shader_atomic_float_minmax GL_INTEL_shader_integer_functions2 GL_MESA_framebuffer_flip_y GL_NV_compute_shader_derivatives GL_EXT_EGL_sync GL_EXT_demote_to_helper_invocation
WebGL 1 Extensions: ANGLE_instanced_arrays EXT_blend_minmax EXT_color_buffer_half_float EXT_float_blend EXT_frag_depth EXT_shader_texture_lod EXT_sRGB EXT_texture_compression_bptc EXT_texture_compression_rgtc EXT_texture_filter_anisotropic MOZ_debug OES_element_index_uint OES_fbo_render_mipmap OES_standard_derivatives OES_texture_float OES_texture_float_linear OES_texture_half_float OES_texture_half_float_linear OES_vertex_array_object WEBGL_color_buffer_float WEBGL_compressed_texture_astc WEBGL_compressed_texture_etc WEBGL_compressed_texture_s3tc WEBGL_compressed_texture_s3tc_srgb WEBGL_debug_renderer_info WEBGL_debug_shaders WEBGL_depth_texture WEBGL_draw_buffers WEBGL_lose_context
WebGL 2 Driver WSI Info: EGL_VENDOR: Mesa Project EGL_VERSION: 1.5 EGL_EXTENSIONS: EGL_ANDROID_blob_cache EGL_ANDROID_native_fence_sync EGL_EXT_buffer_age EGL_EXT_create_context_robustness EGL_EXT_image_dma_buf_import EGL_EXT_image_dma_buf_import_modifiers EGL_EXT_swap_buffers_with_damage EGL_IMG_context_priority EGL_KHR_cl_event2 EGL_KHR_config_attribs EGL_KHR_create_context EGL_KHR_create_context_no_error EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses EGL_KHR_gl_colorspace EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_3D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_image_base EGL_KHR_no_config_context EGL_KHR_reusable_sync EGL_KHR_surfaceless_context EGL_KHR_swap_buffers_with_damage EGL_EXT_pixel_format_float EGL_KHR_wait_sync EGL_MESA_configless_context EGL_MESA_drm_image EGL_MESA_image_dma_buf_export EGL_MESA_query_driver EGL_WL_bind_wayland_display EGL_WL_create_wayland_buffer_from_image EGL_EXTENSIONS(nullptr): EGL_EXT_platform_base EGL_EXT_device_base EGL_EXT_device_enumeration EGL_EXT_device_query EGL_KHR_client_get_all_proc_addresses EGL_EXT_client_extensions EGL_KHR_debug EGL_KHR_platform_x11 EGL_EXT_platform_x11 EGL_EXT_platform_device EGL_EXT_platform_wayland EGL_KHR_platform_wayland EGL_MESA_platform_xcb EGL_MESA_platform_gbm EGL_KHR_platform_gbm EGL_MESA_platform_surfaceless IsWebglOutOfProcessEnabled: 0
WebGL 2 Driver Renderer: Intel -- Mesa Intel(R) UHD Graphics 620 (KBL GT2)
WebGL 2 Driver Version: 4.6 (Core Profile) Mesa 21.0.3
WebGL 2 Driver Extensions: GL_3DFX_texture_compression_FXT1 GL_AMD_conservative_depth GL_AMD_depth_clamp_separate GL_AMD_draw_buffers_blend GL_AMD_gpu_shader_int64 GL_AMD_multi_draw_indirect GL_AMD_performance_monitor GL_AMD_pinned_memory GL_AMD_query_buffer_object GL_AMD_seamless_cubemap_per_texture GL_AMD_shader_stencil_export GL_AMD_shader_trinary_minmax GL_AMD_texture_texture4 GL_AMD_vertex_shader_layer GL_AMD_vertex_shader_viewport_index GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_ARB_ES2_compatibility GL_ARB_ES3_1_compatibility GL_ARB_ES3_2_compatibility GL_ARB_ES3_compatibility GL_ARB_arrays_of_arrays GL_ARB_base_instance GL_ARB_blend_func_extended GL_ARB_buffer_storage GL_ARB_clear_buffer_object GL_ARB_clear_texture GL_ARB_clip_control GL_ARB_compressed_texture_pixel_storage GL_ARB_compute_shader GL_ARB_compute_variable_group_size GL_ARB_conditional_render_inverted GL_ARB_conservative_depth GL_ARB_copy_buffer GL_ARB_copy_image GL_ARB_cull_distance GL_ARB_debug_output GL_ARB_depth_buffer_float GL_ARB_depth_clamp GL_ARB_derivative_control GL_ARB_direct_state_access GL_ARB_draw_buffers GL_ARB_draw_buffers_blend GL_ARB_draw_elements_base_vertex GL_ARB_draw_indirect GL_ARB_draw_instanced GL_ARB_enhanced_layouts GL_ARB_explicit_attrib_location GL_ARB_explicit_uniform_location GL_ARB_fragment_coord_conventions GL_ARB_fragment_layer_viewport GL_ARB_fragment_shader GL_ARB_fragment_shader_interlock GL_ARB_framebuffer_no_attachments GL_ARB_framebuffer_object GL_ARB_framebuffer_sRGB GL_ARB_get_program_binary GL_ARB_get_texture_sub_image GL_ARB_gl_spirv GL_ARB_gpu_shader5 GL_ARB_gpu_shader_fp64 GL_ARB_gpu_shader_int64 GL_ARB_half_float_pixel GL_ARB_half_float_vertex GL_ARB_indirect_parameters GL_ARB_instanced_arrays GL_ARB_internalformat_query GL_ARB_internalformat_query2 GL_ARB_invalidate_subdata GL_ARB_map_buffer_alignment GL_ARB_map_buffer_range GL_ARB_multi_bind GL_ARB_multi_draw_indirect GL_ARB_occlusion_query2 GL_ARB_parallel_shader_compile GL_ARB_pipeline_statistics_query GL_ARB_pixel_buffer_object GL_ARB_point_sprite GL_ARB_polygon_offset_clamp GL_ARB_post_depth_coverage GL_ARB_program_interface_query GL_ARB_provoking_vertex GL_ARB_query_buffer_object GL_ARB_robust_buffer_access_behavior GL_ARB_robustness GL_ARB_sample_shading GL_ARB_sampler_objects GL_ARB_seamless_cube_map GL_ARB_seamless_cubemap_per_texture GL_ARB_separate_shader_objects GL_ARB_shader_atomic_counter_ops GL_ARB_shader_atomic_counters GL_ARB_shader_ballot GL_ARB_shader_bit_encoding GL_ARB_shader_clock GL_ARB_shader_draw_parameters GL_ARB_shader_group_vote GL_ARB_shader_image_load_store GL_ARB_shader_image_size GL_ARB_shader_objects GL_ARB_shader_precision GL_ARB_shader_stencil_export GL_ARB_shader_storage_buffer_object GL_ARB_shader_subroutine GL_ARB_shader_texture_image_samples GL_ARB_shader_texture_lod GL_ARB_shader_viewport_layer_array GL_ARB_shading_language_420pack GL_ARB_shading_language_include GL_ARB_shading_language_packing GL_ARB_spirv_extensions GL_ARB_stencil_texturing GL_ARB_sync GL_ARB_tessellation_shader GL_ARB_texture_barrier GL_ARB_texture_buffer_object GL_ARB_texture_buffer_object_rgb32 GL_ARB_texture_buffer_range GL_ARB_texture_compression_bptc GL_ARB_texture_compression_rgtc GL_ARB_texture_cube_map_array GL_ARB_texture_filter_anisotropic GL_ARB_texture_float GL_ARB_texture_gather GL_ARB_texture_mirror_clamp_to_edge GL_ARB_texture_multisample GL_ARB_texture_non_power_of_two GL_ARB_texture_query_levels GL_ARB_texture_query_lod GL_ARB_texture_rectangle GL_ARB_texture_rg GL_ARB_texture_rgb10_a2ui GL_ARB_texture_stencil8 GL_ARB_texture_storage GL_ARB_texture_storage_multisample GL_ARB_texture_swizzle GL_ARB_texture_view GL_ARB_timer_query GL_ARB_transform_feedback2 GL_ARB_transform_feedback3 GL_ARB_transform_feedback_instanced GL_ARB_transform_feedback_overflow_query GL_ARB_uniform_buffer_object GL_ARB_vertex_array_bgra GL_ARB_vertex_array_object GL_ARB_vertex_attrib_64bit GL_ARB_vertex_attrib_binding GL_ARB_vertex_buffer_object GL_ARB_vertex_shader GL_ARB_vertex_type_10f_11f_11f_rev GL_ARB_vertex_type_2_10_10_10_rev GL_ARB_viewport_array GL_ATI_blend_equation_separate GL_ATI_texture_float GL_EXT_EGL_image_storage GL_EXT_EGL_sync GL_EXT_abgr GL_EXT_blend_equation_separate GL_EXT_demote_to_helper_invocation GL_EXT_draw_buffers2 GL_EXT_draw_instanced GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXT_framebuffer_multisample_blit_scaled GL_EXT_framebuffer_object GL_EXT_framebuffer_sRGB GL_EXT_packed_depth_stencil GL_EXT_packed_float GL_EXT_pixel_buffer_object GL_EXT_polygon_offset_clamp GL_EXT_provoking_vertex GL_EXT_semaphore GL_EXT_semaphore_fd GL_EXT_shader_framebuffer_fetch GL_EXT_shader_framebuffer_fetch_non_coherent GL_EXT_shader_integer_mix GL_EXT_shader_samples_identical GL_EXT_texture_array GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_rgtc GL_EXT_texture_compression_s3tc GL_EXT_texture_filter_anisotropic GL_EXT_texture_integer GL_EXT_texture_sRGB GL_EXT_texture_sRGB_R8 GL_EXT_texture_sRGB_decode GL_EXT_texture_shadow_lod GL_EXT_texture_shared_exponent GL_EXT_texture_snorm GL_EXT_texture_swizzle GL_EXT_timer_query GL_EXT_transform_feedback GL_EXT_vertex_array_bgra GL_EXT_vertex_attrib_64bit GL_IBM_multimode_draw_arrays GL_INTEL_blackhole_render GL_INTEL_conservative_rasterization GL_INTEL_performance_query GL_INTEL_shader_atomic_float_minmax GL_INTEL_shader_integer_functions2 GL_KHR_blend_equation_advanced GL_KHR_blend_equation_advanced_coherent GL_KHR_context_flush_control GL_KHR_debug GL_KHR_no_error GL_KHR_parallel_shader_compile GL_KHR_robust_buffer_access_behavior GL_KHR_robustness GL_KHR_texture_compression_astc_ldr GL_KHR_texture_compression_astc_sliced_3d GL_MESA_framebuffer_flip_y GL_MESA_pack_invert GL_MESA_shader_integer_functions GL_MESA_texture_signed_rgba GL_NV_compute_shader_derivatives GL_NV_conditional_render GL_NV_copy_image GL_NV_depth_clamp GL_NV_fragment_shader_interlock GL_NV_packed_depth_stencil GL_NV_texture_barrier GL_OES_EGL_image GL_S3_s3tc
WebGL 2 Extensions: EXT_color_buffer_float EXT_float_blend EXT_texture_compression_bptc EXT_texture_compression_rgtc EXT_texture_filter_anisotropic MOZ_debug OES_texture_float_linear WEBGL_compressed_texture_astc WEBGL_compressed_texture_etc WEBGL_compressed_texture_s3tc WEBGL_compressed_texture_s3tc_srgb WEBGL_debug_renderer_info WEBGL_debug_shaders WEBGL_lose_context
Window Protocol: wayland
Desktop Environment: kde
Target Frame Rate: 60
GPU #1
Active: Yes
Description: Mesa Intel(R) UHD Graphics 620 (KBL GT2)
Vendor ID: Intel
Device ID: Mesa Intel(R) UHD Graphics 620 (KBL GT2)
Driver Vendor: mesa/swrast
Driver Version: 21.0.3.0
RAM: 0
GPU #2
Active: No
Vendor ID: 0x8086
Device ID: 0x5917
Diagnostics
AzureCanvasBackend: skia
AzureContentBackend: skia
AzureFallbackCanvasBackend: skia
CMSOutputProfile: Empty profile data
Display0: 1536x864
DisplayCount: 1
Device Reset: Trigger Device Reset
Decision Log
HW_COMPOSITING:
available by default
OPENGL_COMPOSITING:
available by default
Blocklisted; failure code BLOCKLIST_FEATURE_FAILURE_SOFTWARE_GL
WEBRENDER:
available by default
force_enabled by user: Force enabled by pref
disabled by env: Not qualified
WEBRENDER_QUALIFIED:
available by default
blocklisted by env: No qualified hardware
WEBRENDER_COMPOSITOR:
disabled by default: Disabled by default
blocklisted by env: Blocklisted by gfxInfo
WEBRENDER_PARTIAL:
available by default
WEBRENDER_SHADER_CACHE:
disabled by default: Disabled by default
WEBRENDER_OPTIMIZED_SHADERS:
available by default
WEBRENDER_ANGLE:
available by default
unavailable by env: OS not supported
WEBRENDER_DCOMP_PRESENT:
available by default
disabled by user: User disabled via pref
unavailable by env: Requires Windows 10 or later
unavailable by runtime: Requires ANGLE
WEBRENDER_SOFTWARE:
available by default
WEBGPU:
disabled by default: Disabled by default
X11_EGL:
available by default
blocklisted by env: Blocklisted by gfxInfo
DMABUF:
available by default
failed by runtime: Failed to configure




Media
-----

Audio Backend: pulse-rust
Max Channels: 2
Preferred Sample Rate: 44100
Roundtrip latency (standard deviation): 48.33ms (4.05)
Output Devices
Name: Group
Built-in Audio Analogue Stereo: /devices/pci0000:00/0000:00:1f.3/sound/card0
Input Devices
Name: Group
Monitor of Built-in Audio Analogue Stereo: /devices/pci0000:00/0000:00:1f.3/sound/card0
Built-in Audio Analogue Stereo: /devices/pci0000:00/0000:00:1f.3/sound/card0
Media Capabilities
Enumerate database

Environment Variables
---------------------

GDK_DPI_SCALE: 1
DISPLAY: :1
MOZ_ENABLE_WAYLAND: 1
GDK_SCALE: 1
MOZ_ASSUME_USER_NS: 1
MOZ_CRASHREPORTER_EVENTS_DIRECTORY: /home/lyubomir/.mozilla/firefox/v464gjci.default-nightly/crashes/events
MOZ_CRASHREPORTER_RESTART_ARG_0: /opt/firefox/firefox
MOZ_CRASHREPORTER_RESTART_ARG_1:
MOZ_CRASHREPORTER_DATA_DIRECTORY: /home/lyubomir/.mozilla/firefox/Crash Reports
MOZ_CRASHREPORTER_PING_DIRECTORY: /home/lyubomir/.mozilla/firefox/Pending Pings
MOZ_CRASHREPORTER_STRINGS_OVERRIDE: /opt/firefox/browser/crashreporter-override.ini
MOZ_LAUNCHED_CHILD:
MOZ_APP_SILENT_START:
XRE_PROFILE_PATH:
XRE_PROFILE_LOCAL_PATH:
XRE_START_OFFLINE:
XRE_BINARY_PATH:
XRE_RESTARTED_BY_PROFILE_MANAGER:

Experimental Features
---------------------

about:home startup cache (browser.startup.homepage.abouthome_cache.enabled): true
Cookies: SameSite=Lax by default (network.cookie.sameSite.laxByDefault): true
Cookies: SameSite=None requires secure attribute (network.cookie.sameSite.noneRequiresSecure): true
Cookies: Schemeful SameSite (network.cookie.sameSite.schemeful): true
CSS: Cascade Layers (layout.css.cascade-layers.enabled): true
CSS: Constructable Stylesheets (layout.css.constructable-stylesheets.enabled): false
CSS: Masonry Layout (layout.css.grid-template-masonry-value.enabled): true
Developer Tools: Compatibility Panel (devtools.inspector.compatibility.enabled): true
Developer Tools: Execution Context Selector (devtools.webconsole.input.context): true
Developer Tools: Service Worker debugging (devtools.debugger.features.windowless-service-workers): false
Fission (Site Isolation) (fission.autostart): true
Media: JPEG XL (image.jxl.enabled): false
Multiple Picture-in-Picture Support (media.videocontrols.picture-in-picture.allow-multiple): true
Address Bar: show results during IME composition (browser.urlbar.keepPanelOpenDuringImeComposition): false
Web API: inputmode (dom.forms.inputmode): true
Web API: WebGPU (dom.webgpu.enabled): false
WebRTC Global Mute Toggles (privacy.webrtc.globalMuteToggles): false
Win32k Lockdown (security.sandbox.content.win32k-disable): false

Remote Experiments
------------------

Important Modified Preferences
------------------------------

accessibility.typeaheadfind.flashBar: 0
browser.contentblocking.category: standard
browser.search.region: BG
browser.sessionstore.upgradeBackup.latestBuildID: 20210911095121
browser.sessionstore.warnOnQuit: true
browser.startup.homepage_override.buildID: 20210911095121
browser.startup.homepage_override.mstone: 94.0a1
browser.startup.page: 3
browser.tabs.drawInTitlebar: true
browser.tabs.loadInBackground: false
browser.urlbar.placeholderName: Google
browser.urlbar.resultBuckets: {"children":[{"maxResultCount":1,"children":[{"group":"heuristicTest"},{"group":"heuristicExtension"},{"group":"heuristi
browser.urlbar.resultGroups: {"children":[{"maxResultCount":1,"children":[{"group":"heuristicTest"},{"group":"heuristicExtension"},{"group":"heuristi
browser.urlbar.suggest.bookmark: false
browser.urlbar.tipShownCount.searchTip_onboard: 4
browser.urlbar.tipShownCount.searchTip_redirect: 4
doh-rollout.balrog-migration-done: true
doh-rollout.doneFirstRun: true
doh-rollout.home-region: BG
dom.push.userAgentID: e5dce9c06d0b49bf8ffccfa638aa8c97
dom.security.https_only_mode_ever_enabled: true
dom.security.https_only_mode_ever_enabled_pbm: true
dom.security.https_only_mode_pbm: true
extensions.lastAppVersion: 94.0a1
gfx.blacklist.layers.opengl: 4
gfx.blacklist.layers.opengl.failureid: FEATURE_FAILURE_SOFTWARE_GL
gfx.webrender.enabled: true
idle.lastDailyNotification: 1631355030
media.eme.enabled: true
media.gmp-gmpopenh264.abi: x86_64-gcc3
media.gmp-gmpopenh264.lastUpdate: 1622569325
media.gmp-gmpopenh264.version: 1.8.1.1
media.gmp-manager.buildID: 20210910211800
media.gmp-manager.lastCheck: 1631354934
media.gmp-widevinecdm.abi: x86_64-gcc3
media.gmp-widevinecdm.lastUpdate: 1622581061
media.gmp-widevinecdm.version: 4.10.2209.1
media.gmp.storage.version.observed: 1
network.dns.disablePrefetch: true
network.http.speculative-parallel-limit: 0
network.predictor.enabled: false
network.prefetch-next: false
network.trr.blocklist_cleanup_done: true
places.database.lastMaintenance: 1631114459
privacy.purge_trackers.date_in_cookie_database: 0
privacy.purge_trackers.last_purge: 1631355030041
privacy.sanitize.pending: [{"id":"newtab-container","itemsToClear":[],"options":{}}]
security.remote_settings.crlite_filters.checked: 1631113110
security.remote_settings.intermediates.checked: 1631113110
security.sandbox.content.tempDirSuffix: 5d63c638-4991-42c7-b00e-4f2d1a412931
services.sync.declinedEngines:
services.sync.engine.bookmarks.validation.lastTime: 1629721276
services.sync.engine.creditcards: true
services.sync.engine.passwords.validation.lastTime: 1629721276
services.sync.engine.prefs.modified: false
services.sync.lastPing: 1629721079
services.sync.lastSync: Tue Aug 24 2021 12:52:57 GMT+0300 (Eastern European Summer Time)
signon.rememberSignons: false
storage.vacuum.last.index: 1
storage.vacuum.last.places.sqlite: 1628771390

Important Locked Preferences
----------------------------

fission.autostart.session: true

Places Database
---------------

Accessibility
-------------

Activated: false
Prevent Accessibility: 0

Library Versions
----------------

NSPR
Expected minimum version: 4.32
Version in use: 4.32

NSS
Expected minimum version: 3.70
Version in use: 3.70

NSSSMIME
Expected minimum version: 3.70
Version in use: 3.70

NSSSSL
Expected minimum version: 3.70
Version in use: 3.70

NSSUTIL
Expected minimum version: 3.70
Version in use: 3.70

Sandbox
-------

Seccomp-BPF (System Call Filtering): true
Seccomp Thread Synchronisation: true
User Namespaces: true
Content Process Sandboxing: true
Media Plugin Sandboxing: true
Content Process Sandbox Level: 4
Effective Content Process Sandbox Level: 4
Win32k Lockdown State for Content Process: Win32k Lockdown disabled -- Operating system not supported

Rejected System Calls
---------------------

Startup Cache
-------------

Disk Cache Path: /home/lyubomir/.cache/mozilla/firefox/v464gjci.default-nightly/startupCache/startupCache.8.little
Ignore Disk Cache: false
Found Disk Cache on Init: true
Wrote to Disk Cache: false

Internationalisation & Localisation
-----------------------------------

Application Settings
Requested Locales: ["en-GB"]
Available Locales: ["en-GB","en-US"]
App Locales: ["en-GB","en-US"]
Regional Preferences: ["en-GB","en-US"]
Default Locale: "en-GB"
Operating System
System Locales: ["bg-BG"]
Regional Preferences: ["bg-BG"]

Remote Debugging (Chromium Protocol)
------------------------------------

Accepting Connections: false
URL:

Printing
--------

Modified print settings
-----------------------
Comment 6 Vlad Zahorodnii 2021-09-13 08:09:57 UTC
> In Firefox when i right-click the context menus frequently appear like this.

Would it be enough to right click many times very quickly?
Comment 7 Lyubomir 2021-09-13 10:10:22 UTC
Created attachment 141510 [details]
Display not scaled

(In reply to Vlad Zahorodnii from comment #6)
> > In Firefox when i right-click the context menus frequently appear like this.
> 
> Would it be enough to right click many times very quickly?

Clicking  the right-mouse button multiple times with fast/high frequency still reproduces the issue as does clicking with slow/low frequency.

What i've found is that the issue in fact happens when you click not really close to the bottom of the viewport, but a little below the center of the viewport.
Comment 8 Lyubomir 2021-09-13 10:21:20 UTC
Created attachment 141511 [details]
Display scaled
Comment 9 Vlad Zahorodnii 2021-09-14 08:15:08 UTC
I cannot reproduce the issue. Can you please run firefox with WAYLAND_DEBUG=1 and post the output here? If possible, please reproduce the issue and close firefox as fast as you can so wayland debug log doesn't get huge and it's easier to parse it.
Comment 10 Lyubomir 2021-09-14 08:57:08 UTC
Created attachment 141538 [details]
wayland_debug.txt

In this log i reproduced it twice, that is, opened and closed the context menu two times one after the other. Both times it reproduces. The log is still big but i guess it should be somewhere close to the end. I hope it would help you.
Comment 11 Nate Graham 2021-09-16 17:37:25 UTC
Also cannot reproduce when using current git master packages and Firefox in native Wayland mode.
Comment 12 Vlad Zahorodnii 2021-09-21 08:01:19 UTC
[3012778,804]  -> xdg_wm_base@23.create_positioner(new id xdg_positioner@70)
[3012778,818]  -> xdg_positioner@70.set_size(351, 659)
[3012778,831]  -> xdg_positioner@70.set_anchor_rect(977, 459, 4, 4)
[3012778,859]  -> xdg_positioner@70.set_offset(0, 0)
[3012778,873]  -> xdg_positioner@70.set_anchor(8)
[3012778,881]  -> xdg_positioner@70.set_gravity(8)
[3012778,897]  -> xdg_positioner@70.set_constraint_adjustment(61)
[3012778,909]  -> xdg_wm_base@23.get_xdg_surface(new id xdg_surface@71, wl_surface@52)
[3012778,930]  -> xdg_surface@71.get_popup(new id xdg_popup@72, xdg_surface@32, xdg_positioner@70)
[3012778,950]  -> xdg_positioner@70.destroy()
[3012778,964]  -> wl_surface@52.commit()

...

[3012861,376] xdg_popup@72.configure(981, 463, 351, 353)
[3012861,553] xdg_surface@71.configure(404)

it looks like firefox specifies the following constraints: slide_x, flip_x, flip_y, resize_x, and resize_y. based on the configure event, kwin has resized the popup for some reason instead of flipping it vertically.

there were some improvements with geometry updates in 5.23. maybe this bug got fixed without us realizing it.
Comment 13 Nate Graham 2021-09-21 18:10:37 UTC
I suspect so. The Firefox 92 update also fixed a lot of wayland-related glitches with menus for me.

Please re-open if you can still reproduce the issue with Firefox 92 in Plasma 5.23. Thanks!
Comment 14 Lyubomir 2021-10-16 08:51:20 UTC
I can still reproduce with Firefox 93.0 and Plasma 5.23.
Comment 15 Vlad Zahorodnii 2021-10-16 09:50:02 UTC
Can you please post WAYLAND_DEBUG output again but now when the popup is not resized? On a second look, the popup contains a lot of entries and 

(In reply to Vlad Zahorodnii from comment #12)
> it looks like firefox specifies the following constraints: slide_x, flip_x,
> flip_y, resize_x, and resize_y.

bothers me. If the popup is too big and `slide_y` is absent, kwin may have no choice but resize the popup.

`slide_y` indicates whether it's fine to move the popup up or down if parts of it lie outside the screen.
Comment 16 Lyubomir 2021-10-16 10:05:14 UTC
Created attachment 142492 [details]
Firefox context menu WAYLAND debug log

I guess "when the popup is not resized" means when it doesn't have that glitch, that is, when the context menu is shown in full size and not cropped with scrollbar.
Here is the log.
Comment 17 Vlad Zahorodnii 2021-10-16 10:19:22 UTC
[1498720,978]  -> xdg_wm_base@24.create_positioner(new id xdg_positioner@75)
[1498720,996]  -> xdg_positioner@75.set_size(351, 659)
[1498721,014]  -> xdg_positioner@75.set_anchor_rect(1033, 189, 4, 4)
[1498721,039]  -> xdg_positioner@75.set_offset(0, 0)
[1498721,056]  -> xdg_positioner@75.set_anchor(8)
[1498721,068]  -> xdg_positioner@75.set_gravity(8)
[1498721,080]  -> xdg_positioner@75.set_constraint_adjustment(61)
[1498721,092]  -> xdg_wm_base@24.get_xdg_surface(new id xdg_surface@76, wl_surface@65)
[1498721,114]  -> xdg_surface@76.get_popup(new id xdg_popup@77, xdg_surface@52, xdg_positioner@75)
[1498721,139]  -> xdg_positioner@75.destroy()
[1498721,150]  -> wl_surface@65.commit()

...


[1498747,316] xdg_popup@77.configure(1037, 193, 351, 659)

Okay, assuming that the anchor rect somewhere in the top half of the screen, this all makes sense.

Can you please file a bug report to firefox developers asking to add SLIDE_Y xdg-positioner constraint adjustment (or re-open https://bugzilla.mozilla.org/show_bug.cgi?id=1729944)?

As is, I'm afraid kwin is doing the right thing. If the popup can't be flipped vertically, the only thing that kwin is allowed to do is resize the popup.
Comment 18 Vlad Zahorodnii 2021-10-16 10:26:59 UTC
I left a comment on https://bugzilla.mozilla.org/show_bug.cgi?id=1727072. HTH