Batch API assumes client's support of meta refresh

Created on 4 March 2008, almost 17 years ago
Updated 11 September 2024, 4 months ago

As first pointed out in #229825: backport "$_COOKIE['has_js'] must die" patch to 7.x β†’ , the Batch API falls back to using a meta-refresh tag when Javascript is disabled.

Some browsers (lynx) do not support this tag at all, and some (Opera?) allow it to be disabled.

The Batch API, and any other code that uses a meta refresh element, must print a visible message on the page that informs the user they are waiting to be redirected, and provide a link to manually follow the redirect.

This is common fallback behavior; see SourceForge download links and the 404 message at http://www.wikipedia.org/Article for two examples.

πŸ› Bug report
Status

Closed: won't fix

Version

11.0 πŸ”₯

Component
BaseΒ  β†’

Last updated about 5 hours ago

Created by

πŸ‡¨πŸ‡­Switzerland cburschka

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    @catch since ✨ Add an 'instant' queue runner Needs work is closer then this should this one be closed?

  • Status changed to Active 4 months ago
  • πŸ‡¬πŸ‡§United Kingdom catch

    That issue starts giving us more options to process queues but it doesn't do anything to convert or fix batch API. For genuinely very long running tasks that need to be completed in a short time (installing and uninstalling modules etc.) it won't help at all.

    For the lynx case where there's an interactive browser that supports neither javascript nor meta refresh, the original idea of outputting a link for the user to click makes sense - the usual 'Click this link if you are not automatically redirected' sort of thing.

    For everything else we have more recent, but still old, issues like πŸ“Œ Make batch a wrapper around the queue system Needs work

  • πŸ‡¬πŸ‡§United Kingdom longwave UK

    Given the age of this issue and the lack of +1s from anyone affected by this bug, can we safely assume that anyone who wants to use Batch API either has JS enabled or uses a browser that supports meta refresh? Is there really anyone still using Drupal in Lynx? I assume there is no modern browser that allows meta refresh to be disabled either.

    The issue I can see with 'Click this link if you are not automatically redirected' is that people might click it anyway if they see a link, which I think risks breaking the batch process more than if they just left it alone, which is the correct thing to do in 99.9% of cases.

    Overall, I vote this is closed as won't fix.

  • Status changed to Closed: won't fix 4 months ago
  • πŸ‡¬πŸ‡§United Kingdom catch

    #31 makes sense, let's do that. Anyone that was trying to administer a Drupal site using lynx is already able to do everything they want via the command line.

Production build 0.71.5 2024