edrikL / gears

Automatically exported from code.google.com/p/gears
2 stars 3 forks source link

[Safari] When opening a page in background, gears doesn't initialize #796

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open a page that uses gears in a background tab.
2. Gears will fail to initialize until you reload the page.

What is the expected output? What do you see instead?
Gears should initialize and be available to the application.

What version of the product are you using? On what operating system?
OS X 10.5.6, Safari 3.2.1, gears 0.5.4.2;official;opt;osx;safari

Original issue reported on code.google.com by zee.technocore.ru.old@gmail.com on 29 Jan 2009 at 4:09

GoogleCodeExporter commented 9 years ago
Thanks for the report, could you please provide the exact steps you take, what 
you
expect to happen and what actually happens.

Does Gears work for you when opened normally?
Do you see the "Gears settings..." menu item in the Safari menu?
What site are you using Gears with and what steps are you taking to open the 
tab? 
When you say that Gears fails to load, how do you determine this?

Original comment by gears.te...@gmail.com on 29 Jan 2009 at 4:48

GoogleCodeExporter commented 9 years ago
Yes, Gears works for me when opening tabs normally and yes, there's a “Gears 
settings” menu item.
I tried opening http://code.google.com/apis/gears/sample.html and then both 
cmd-clicking and clicking on the 
first example (database demo). When it's opened in the foreground tab, it asks 
for permission as it should, but 
when it's opened in a background one, I get “Could not create database: Value 
undefined (result of expression 
google.gears.factory.create) is not object.”
Google docs/Gmail also show the default “Offline” link that prompts for 
offline installation when opened in 
background.

Original comment by zee.technocore.ru.old@gmail.com on 29 Jan 2009 at 2:30

GoogleCodeExporter commented 9 years ago

Original comment by gears.te...@gmail.com on 29 Jan 2009 at 6:07

GoogleCodeExporter commented 9 years ago
This is still happening on Safari 4 with latest Gears:

0.5.22.0;official;opt;osx;safari
Safari 4.0.1 (5530.18) on OS X 10.5.7 i386

You can reproduce it quite easily. Open the following URL by clicking it, and 
it loads fine. Open it with cmd-
click to put it in a new tab, and Gears fails to init with 
"'google.gears.factory.create' [undefined] is not a 
function."

http://code.google.com/apis/gears/samples/hello_world_database.html

It seems entirely contingent on whether the tab is viewable when the factory 
object is created. Open the link 
in a new window, and it works fine. I've also had it work when I open it in a 
new tab and immediately ctrl-w 
the current tab, so that the new tab is immediately visible. That is, its not 
the tab, but the lack of visibility.

This is a major issue, as tabbed browsers tend to encourage open-in-a-new-tab.

Original comment by rl...@rlove.org on 22 Jun 2009 at 9:11

GoogleCodeExporter commented 9 years ago
I'm seeing the same issue, though not clearly related to tabs. The error comes 
up the
first time a page using gears is loaded. On reloading the page everything 
initializes
correctly.

Original comment by tqclark...@gmail.com on 9 Jul 2009 at 5:18

GoogleCodeExporter commented 9 years ago
Still a bug in the latest Gears:

0.5.30.0;official;opt;osx;safari

Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_7; en-us) AppleWebKit/530.19.2 
(KHTML, like Gecko) 
Version/4.0.2 Safari/530.19

Original comment by rl...@rlove.org on 26 Jul 2009 at 2:55

GoogleCodeExporter commented 9 years ago
Still a bug in latest Gears on latest Safari:

0.5.32.0;official;opt;osx;safari

Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-us) AppleWebKit/531.9 
(KHTML, like Gecko) Version/4.0.3 
Safari/531.9

Original comment by rl...@rlove.org on 9 Sep 2009 at 7:45