Skip to content

[Backport 2026.02.xx] Fix #12689 - Remove unnecessary src=null on WMS tile load error - #12749

Merged
offtherailz merged 1 commit into
2026.02.xxfrom
backport-12691-to-2026.02.xx
Jul 29, 2026
Merged

offtherailz merged 1 commit into
2026.02.xxfrom
backport-12691-to-2026.02.xx

Conversation

@offtherailz

@offtherailz offtherailz commented Jul 28, 2026 •

Copy link
Copy Markdown
Member

Description

Backport of #12691 to 2026.02.xx.

Fix #12689

* Fix #12689 - Remove unnecessary src=null on WMS tile load error

Setting img.src = null does not clear the image; the DOM coerces it
to the string "null", causing a real (always-404) network request.
image.setState(3) alone already triggers the source's
tileloaderror/imageloaderror events (state-based, no DOM event
dependency), making the src=null line redundant.

* Add test for #12689 spurious /null request removal

Verifies the tile error handler no longer sets img.src = null on failure.

* Fix #12689 - set error state on single tile WMS load failure

ol/Image has no setState, unlike ol/ImageTile: notify the state change
manually so imageloaderror is emitted without setting img.src to null.
Tests now configure requestsConfigurationRules to reach the custom load
function error branch.

(cherry picked from commit 40197f0)
@offtherailz
offtherailz merged commit 341b62c into 2026.02.xx Jul 29, 2026
19 checks passed
@offtherailz
offtherailz deleted the backport-12691-to-2026.02.xx branch July 29, 2026 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WMS tile load error handler sets img.src = null, causing a spurious network request to a literal "null" URL

2 participants