Race condition related to integration/install infobar
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
WebApps: unity-chromium-extensions |
Fix Released
|
High
|
Alexandre Abreu | ||
unity-chromium-extension (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Quantal |
Fix Released
|
High
|
Unassigned |
Bug Description
When browsing to a website for which a WebApp exists, an infobar appears to inform the user of the situation and propose an installation of the associated WebApp.
The issue appears when multiple tabs are involved and one selects another tab while the current one is loading webpage for which a WebApp is available (but not installed or authorized). The infobar appears in the environment of the proper tab, but the text is empty.
[Test Case]
- have more than one tab opened (with blank pages),
- in one of the tabs, go to a website that is supported by webapps (e.g. Twitter),
- immediately after (BEFORE the website loads), switch to the other tab (Ctrl+Tab),
- wait a bit for the original website to complete loading,
- when one comes back on the loaded tab, an infobar should have popup but with NO text on it,
[Regression Risks]
The code deals with the infobar that the user sees when a WebApp is about to be installed or needs authorization. A malfunction might prevent WebApps from being installed or no installation message could be displayed.
Technical:
--------------
There is a race condition in the infobar javascript that incorrectly uses a chrome.
Related branches
- Alexandre Abreu (community): Approve
-
Diff: 300 lines (+59/-42)6 files modifiedchromium-extension/background-page.js (+21/-13)
chromium-extension/base-content-script.js (+10/-10)
chromium-extension/infobar.js (+16/-12)
chromium-extension/unity-webapps-binding.js (+1/-2)
npapi-plugin/src/unity-webapps-base-js-object.c (+10/-4)
npapi-plugin/src/unity-webapps-repository-binding.c (+1/-1)
Changed in unity-chromium-extension: | |
status: | New → In Progress |
status: | In Progress → Fix Committed |
description: | updated |
Changed in unity-chromium-extension (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → High |
Changed in unity-chromium-extension (Ubuntu Quantal): | |
importance: | Undecided → High |
Changed in unity-chromium-extension: | |
status: | Fix Committed → Fix Released |
This bug was fixed in the package unity-chromium- extension - 2.4.4-0ubuntu1
--------------- extension (2.4.4-0ubuntu1) raring; urgency=low
unity-chromium-
* New upstream release.
- No installation process triggered when a url matches more than one URL
in the list of available apps (LP: #1078325)
- Bypasses Same Origin Policy checks via toDataURL (LP: #1069817)
- Extension options page is broken & does not work (LP: #1076452)
- Race condition related to integration/install infobar (LP: #1068308)
- WebApps Unity plugin for Chromium keeps crashing (LP: #1070433)
-- Ken VanDine <email address hidden> Thu, 15 Nov 2012 11:21:16 -0500