Scirra / Construct-bugs

Public bug report submissions for Construct 3 and Construct Animate. Please read the guidelines then click the 'Issues' tab to get started.
https://www.construct.net
107 stars 83 forks source link

Paste image Mozilla bug :space_invader: #6344

Closed WilsonPercival closed 1 year ago

WilsonPercival commented 1 year ago

Problem description

The image is not pasted in the animation editor if I use Mozilla.

Attach a .c3p

There is not.

Steps to reproduce

  1. Create a new project.
  2. Create a sprite.
  3. Copy to clipboard an image from a third-party image editing tool.
  4. Paste the image in the sprite animation editor.

Observed result

The image is not inserted.

Expected result

The image is inserted.

More details

Affected browsers/platforms: Mozilla

First affected release: broke in r322b

System details

View details Platform information Product: Construct 3 r322 (beta) Browser: Firefox 108.0 Browser engine: Gecko Context: browser Operating system: Windows 7 Device type: desktop Device pixel ratio: 1 Logical CPU cores: 2 Approx. device memory: (unavailable) User agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0 Language setting: en-US Local storage Storage quota (approx): 9.8 gb Storage usage (approx): 34 mb (0.3%) Persistant storage: No Browser support notes This list contains missing features that are not required, but could improve performance or user experience if supported. Rendering multiple on-screen Layout Views is slow in Firefox due to bug 1163426 The Clipboard API is not supported. Some clipboard features may be unavailable. UI effects are disabled in settings. Determining input device capabilities is not supported. WebGL information Version string: WebGL 2.0 Numeric version: 2 Supports NPOT textures: yes Supports GPU profiling: no Supports highp precision: yes Vendor: Google Inc. (Intel) Renderer: ANGLE (Intel, Intel(R) HD Graphics Direct3D11 vs_5_0 ps_5_0) Major performance caveat: no Maximum texture size: 16384 Point size range: 1 to 1024 Extensions: EXT_color_buffer_float EXT_float_blend EXT_texture_compression_bptc EXT_texture_compression_rgtc EXT_texture_filter_anisotropic OES_draw_buffers_indexed OES_texture_float_linear OVR_multiview2 WEBGL_compressed_texture_s3tc WEBGL_compressed_texture_s3tc_srgb WEBGL_debug_renderer_info WEBGL_debug_shaders WEBGL_lose_context Audio information System sample rate: 48000 Hz Output channels: 2 Output interpretation: speakers Supported decode formats: WebM Opus (audio/webm; codecs=opus) Ogg Opus (audio/ogg; codecs=opus) WebM Vorbis (audio/webm; codecs=vorbis) Ogg Vorbis (audio/ogg; codecs=vorbis) MPEG-4 AAC (audio/mp4; codecs=mp4a.40.5) MP3 (audio/mpeg) FLAC (audio/flac) PCM WAV (audio/wav; codecs=1) Supported encode formats: WebM Opus (audio/webm; codecs=opus) Ogg Opus (audio/ogg; codecs=opus) Video information Supported decode formats: WebM AV1 (video/webm; codecs=av01.0.00M.08) MP4 AV1 (video/mp4; codecs=av01.0.00M.08) WebM VP9 (video/webm; codecs=vp9) WebM VP8 (video/webm; codecs=vp8) Ogg Theora (video/ogg; codecs=theora) H.264 (video/mp4; codecs=avc1.42E01E) Supported encode formats: WebM VP8 (video/webm; codecs=vp8)
DiegoScirra commented 1 year ago

Since version 87 of Firefox the feature is behind the dom.events.asyncClipboard.clipboardItem preferences (needs to be set to true). To change preferences in Firefox, visit about:config

That is from MDN

https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API

From trying it out I noticed that even when the feature is turned on, after pressing the shortcut the browser shows a Paste button that needs to be clicked before the content is pasted.