keysnail icon indicating copy to clipboard operation
keysnail copied to clipboard

Chrome loading conflict - beforeLoadHook

Open Geek4AllSeasons opened this issue 14 years ago • 1 comments

I found a kludge work-around that allows Keysnail to load completely.

  1. Clear XUL cache (used Addon Developer Helper Restart Application).
  2. Start Firefox. Keysnail doesn't work.
  3. Open new window, Keysnail works.

I haven't studied the code yet, so I may be hallucinating. The underlying problem appears to be a race condition that breaks call back notification and/or loadOverlay queue dispatching for boundary use cases.

The keysnail.js load message is displayed at the end of chrome initialization. Keysnail has loaded completely when startup processing/timing has varied.

Clearing/reinitializing the XUL cache corrected a problem with AIOS toolbar initialization on windows opened after startup. Reopening window 1, using Addon Developer Helper, allowed Keysnail to load several times. An uncontrolled chrome change caused subsequent attempts to reopen a window to fail with Firefox entering a tight infinite loop.

It is reasonable to speculate adjusting load timing through a hook executed early in the loadOverlay process would avoid conflicts with other extensions. There may be other uses for loadOverlay hooks.

Geek4AllSeasons avatar Jun 18 '10 17:06 Geek4AllSeasons