Once passed that there are a couple of other issues:

1) `checkMessangesCount()' [sic] doesn't handle the fact that there could be 
newlines/whitespace after the "Mail" (there is in my DOM)
2) The label identification code is completely wrong for my setup.

The attached patch to GMail.user.js includes the changes necessary for
the integration to work for me:

0) Removes the 'login' attribute to Unity.init. This should be replaced with 
something else so that the intended functionality still works!
1) Strip any trailing whitespace off before comparing the text content to 
'Gmail' or 'Mail'
2) Use an XPath very similar to that used to find the 'Inbox' link.

** Patch added: "Gmail.user.patch"
   
https://bugs.launchpad.net/ubuntu/+source/unity-webapps-gmail/+bug/1073397/+attachment/3419300/+files/Gmail.user.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1073397

Title:
  unityLoaded never gets called

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unity-webapps-gmail/+bug/1073397/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to