Not able to inject script into "server not found" (in tab title) /"page not found" page
Categories
(WebExtensions :: Frontend, defect)
Tracking
(Not tracked)
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.
Comment 1•5 years ago
|
||
workaround |
Looks like a duplicate of bug 1376793.
You can use ReloadMatic for this.
uuuuhm nope, disregard my previous "thanks."... NOT working with reloadmatic EITHER!
Comment 4•5 years ago
|
||
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:73.0) Gecko/20100101 Firefox/73.0
20191207092617
- In ReloadMatic's default options, I set
☐ Randomize
☐ Only if unsuccessful
☐ Smart timing
☒ Sticky reload
☒ Disable cache - http://www.example.fake
- Opened the Browser Console, with the Requests category enabled.
- 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.
So the extension can be programmed to force the reload? It's not a Firefox bug?
Comment 6•5 years ago
|
||
Correct, please report bugs to extension authors first.
done, he's claiming it's a Firefox thing. https://github.com/greasemonkey/greasemonkey/issues/3062#issuecomment-562869100
Comment 8•5 years ago
|
||
(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.
ooooh, in comment #4 you're saying it should be working with that addon and that setting, now I see! sorry! Will test. Thanks!!
Comment 10•5 years ago
|
||
(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.
Reporter | ||
Comment 11•5 years ago
|
||
So it's working fine now with Gingerbread's Comment #4 steps, thanks! (so putting this to "WORKSFORME")
Comment 12•5 years ago
|
||
(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.
Reporter | ||
Comment 13•5 years ago
|
||
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" ?
Description
•