Closed Bug 1602243 Opened 5 years ago Closed 5 years ago

Not able to inject script into "server not found" (in tab title) /"page not found" page

Categories

(WebExtensions :: Frontend, defect)

71 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: e412byoy7, Unassigned)

References

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0

Steps to reproduce:

run a greasemonkey-addon script containing this line, to refresh a specific website/all websites every 5 seconds:

setTimeout(function(){ location.reload(); }, 5*1000);

Actual results:

After a while (5-15 minutes), the website responds with "server not found" (in tab title) /"page not found" page.

Expected results:

Script should keep attempting to reload the page, which it currently doesn't even attempt to do.

Looks like a duplicate of bug 1376793.

You can use ReloadMatic for this.

Component: Untriaged → Frontend
Product: Firefox → WebExtensions

Thanks!!!

uuuuhm nope, disregard my previous "thanks."... NOT working with reloadmatic EITHER!

Flags: needinfo?(gingerbread_man)

Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:73.0) Gecko/20100101 Firefox/73.0
20191207092617

  1. In ReloadMatic's default options, I set
    ☐ Randomize
    ☐ Only if unsuccessful
    ☐ Smart timing
    ☒ Sticky reload
    ☒ Disable cache
  2. http://www.example.fake
  3. Opened the Browser Console, with the Requests category enabled.
  4. Right-clicked somewhere on the error page and chose Reload → Every 5 secs.

The Browser Console shows attempts to load the site at step 2 repeating. If the problem persists, I suggest you contact the extension author for support.

Flags: needinfo?(gingerbread_man)

So the extension can be programmed to force the reload? It's not a Firefox bug?

Flags: needinfo?(gingerbread_man)

Correct, please report bugs to extension authors first.

Status: NEW → RESOLVED
Closed: 5 years ago
Component: Frontend → Developer Outreach
Flags: needinfo?(gingerbread_man)
Resolution: --- → INVALID
Flags: needinfo?(tomica)
Flags: needinfo?(gingerbread_man)

(In reply to :Tomislav Jovanovic :zombie from comment #6)

Correct, please report bugs to extension authors first.

It's not possible to run user scripts on internal network error pages (about:neterror), which is what this bug report requests. That's intended behavior, so if this doesn't get closed as a duplicate of bug 1376793, then the appropriate resolution is Wontfix.

(In reply to Daniel from comment #5)

So the extension can be programmed to force the reload? It's not a Firefox bug?

You're comparing apples and oranges. User script managers have to inject your scripts into web pages, while ReloadMatic doesn't. I haven't examined how it works internally, but it seems to have a way to detect when a page has failed to load (which I switched off at comment 4). That doesn't require injecting anything into Firefox's error page.

Status: RESOLVED → REOPENED
Component: Developer Outreach → Frontend
Flags: needinfo?(gingerbread_man)
Resolution: INVALID → ---

ooooh, in comment #4 you're saying it should be working with that addon and that setting, now I see! sorry! Will test. Thanks!!

(In reply to Gingerbread Man from comment #8)

It's not possible to run user scripts on internal network error pages (about:neterror), which is what this bug report requests. That's intended behavior, so if this doesn't get closed as a duplicate of bug 1376793, then the appropriate resolution is Wontfix.

You're right.

Status: REOPENED → RESOLVED
Closed: 5 years ago5 years ago
Flags: needinfo?(tomica)
Resolution: --- → WONTFIX

So it's working fine now with Gingerbread's Comment #4 steps, thanks! (so putting this to "WORKSFORME")

Resolution: WONTFIX → WORKSFORME

(In reply to Daniel from comment #11)

So it's working fine now with Gingerbread's Comment #4 steps, thanks!

You're welcome.

(so putting this to "WORKSFORME")

I'm glad I was able to provide a workaround, but it doesn't change the fact that by design, extensions can't inject scripts into internal error pages.

Resolution: WORKSFORME → WONTFIX

oh, ok. What would you say then, is this still a "defect", or may I, now that I managed to find a solution, change this to "task" ?

You need to log in before you can comment on or make changes to this bug.