-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
activate from shortcut (AYW object not working on browser load until refreshed) #12
Comments
I am observing the "content-document-global-created" event to inject the AsYouWish global--for some reason when opening a previous session's set of tabs (presumably similar to your situation), this event must not be observed. If you happen to find a better one, let me know and I can try it out. |
You've probably tried chrome-document-global-created but I can't imagine it would work to make AYW load on first browser boot. Anyway, for my purposes I simply get the javascript to do a one-time refresh of the browser, which is well documented on the web. The user doesn't notice that and AYW has immediate functionality. On a seperate issue now, AYW doesn't install on my tablet (using firefox 31). I get a version incompatability message. This is rather important since tablets would be a large user base for apps. needing file i/o I'm only using firefox 18 on my laptop - I haven't tested installing with firefox 31 except on my tablet. I'm also raising a very significant issue in a seperate thread. Thanks again Brett. |
Yeah, I believe I tried chrome-document-global-created. I'm afraid if you're getting the XPI from Git that you'll have to wind a branch back to before my August 19 (2014) commit and use the XPI from then since I'm moving already toward supporting the latest SDK which requires FF 34+. |
To be honest, I'm using AYW 0.5.2 which is an early version I believe. I guess I should upgrade to your latest version before bugging you with issues which probably don't even exist. So please forgive me. Carry on with your awesome work on this. |
For security reasons, I strongly suggest you upgrade. If you don't want to go to the trouble of rewinding a Git branch, you can also use the current version (4.0.0) at https://addons.mozilla.org/en-US/firefox/addon/as-you-wish/ . As far as Tablets, I don't know what issues there might be, but I'd try the latest version of Firefox and the 4.0.0 version or 4.1.0 version if the FF version is 34+ . I'll keep this issue open (though rename to include info on refresh) as I would like to find a way to get that resolved. |
I'm having an issue with AYW activation. Here's my test case:
I load my app from a desktop shortcut.
Target: "C:\Program Files (x86)\Mozilla Firefox18\firefox.exe" file:///C:/xthdraft/v5/v5-3/index.html
Start in: "C:\Program Files (x86)\Mozilla Firefox18"
When I load the app like this, it opens in firefox OK but the AsYouWish object is unrecognised. So my file i/o functions won't work.
UNTIL I refresh the browser. Then the AYW object loads and I'm good to go.
However, if I start the app without a shortcut, by opening firefox normally, then loading the app from FF's file menu, the AYW object loads and all it good.
To make this a bit clearer: if I load FF the first time, AYW is not recognised. I need to refresh the browser. Note that firebug does not exhibit this shortcoming. Therefore my app has nothing to do with this behaviour.
My question is: how do I make AYW active IMMEDIATELY on FF loading?
Once active, AYW is bulletproof.
Many thanks.
The text was updated successfully, but these errors were encountered: