-
Notifications
You must be signed in to change notification settings - Fork 128
Multiple errors are thrown while opening and closing Firefox Screenshots #3097
Comments
I just want to add that I encountered the "Shot is not defined" error while following mainly the up mentioned steps on the https://www.reddit.com/ webpage. This error message pops up at random times when you press the Firefox Screenshots button several times while the page is loading. For further information please observe the following video: https://goo.gl/4EC71u |
Ritu mentioned this in the release drivers email list:
However, it seems this issue may be a side effect of https://bugzilla.mozilla.org/show_bug.cgi?id=1380507 @SoftVision-PaulOiegas Since you're looking at Screenshots for the next few days can you try to repro? |
I tried adding some console.logs to the start and end of catcher.js and ui.js. If you hit the button over and over, very quickly, it looks like the different files are loaded in non-deterministic order. In the cases where required scripts are missing dependencies, sadness occurs. The |
The simplest fix here might be to concat all the lazy-loaded scripts in our build process |
If different files are being loaded in non-deterministic order, I can only imagine that's because selectorLoader.loadModules is running multiple times and the loads are interleaved. I think we could just block loadModules so it can't be run more than once at a time (taking into account it's an async function). |
Note also #3222 (comment) |
Note: source maps don't actually work yet, for unknown reasons
It turns out this can still be reproduced in 57+ if the page action is added to the address bar, then the user clicks the page action rapidly. But note that, by default, the Screenshots item is buried in the page action menu, where it can't be rapidly toggled. Maybe this should be a P2? |
I opened Bug 1401241 about the sourcemap issue with executeScript. |
duplicate of #2983 |
[Affected versions]:
Firefox 55.0b7 (Build Id:20170706085221)
Firefox 56.0a1 (Build Id:20170709030204)
Firefox Screenshots version: 10.3.0
[Affected platforms]:
Windows 10 64 bit
macOS 10.11.6
Ubuntu 16.04 64bit
[Steps to reproduce]:
[Expected result]:
Firefox Screenshots opens and closes without any errors.
[Actual result]:
The following errors are constantly displayed:
Windows 10 and Ubuntu 16.04
"No matching message handler"
"catcher is not defined"
"ui is not defined"
macOS 10.11.6:
"We can't screenshot this page" is constantly thrown even if the page was successfully loaded. Also the "catcher is not defined" error is thrown in the console.
[Additional notes]
Please note that this issue is not reproducible at all times (you may need to repeat steps 7 and 8).
Also please note that sometimes the Firefox Screenshots layer remains permanently on the screen and if you try to close/open Firefox Screenshots the "ui is not defined error is constantly thrown".
For further information regarding this issue please observe the following video: https://goo.gl/VLtRgY
The text was updated successfully, but these errors were encountered: