Opened on 06/22/2015 at 03:39:31 PM
Closed on 07/21/2015 at 06:13:34 PM
Last modified on 07/22/2015 at 09:03:45 AM
#2710 closed defect (fixed)
Share dialog fails to open on first-run page
Reported by: | passbrains | Assignee: | greiner |
---|---|---|---|
Priority: | P2 | Milestone: | |
Module: | User-Interface | Keywords: | |
Cc: | greiner | Blocked By: | |
Blocking: | Platform: | Firefox | |
Ready: | yes | Confidential: | no |
Tester: | Unknown | Verified working: | no |
Review URL(s): |
https://codereview.adblockplus.org/29322728/ |
Description (last modified by greiner)
Adapted from https://www.passbrains.com/dashboard/view-ticket.php?ticket_no=ARE-138
Environment
Windows + 8 64bit + Firefox + English
ABP version 2.6.9.3945
How to reproduce
- Go to chrome://adblockplus/content/ui/firstRun.html
- Click on Facebook, Twitter or Google+ icon.
Observed behaviour
Share dialog is not opened.
Expected behaviour
Share dialog is opened.
What to change
adblockplusui
- Add WebChannel listener for triggering popupMessageListener function on Gecko-based platforms.
share.adblockplus.org
- Catch exception thrown by window.parent.postMessage.
- Call window.dispatchEvent using a custom WebChannel event in case of an exception.
What to test
Clicking on social media icon on first-run page in each of the following platforms should open the share dialog:
- Chrome / Opera / Safari (requires dependency update)
- Firefox 29
- Firefox 42
- Firefox Mobile
- SeaMonkey
- Thunderbird
Attachments (1)
Change History (12)
Changed on 06/22/2015 at 03:39:36 PM by passbrains
comment:1 Changed on 06/22/2015 at 03:39:38 PM by passbrains
comment:2 Changed on 06/22/2015 at 03:42:24 PM by Shikitita
- Description modified (diff)
Reproduced on the Testfabrik machine Win vista 64 bit slot 5 with Firefox 38.0.5. Spotted the following output in the java script console when clicking one of the social media icons:
Error: Permission denied to access property "postMessage" en:132:4 Error: Permission denied to access property "postMessage" widgets.js:1:18086 "Invalid App Id: Must be a number or numeric string representing the application id." all.js:64:238 "FB.getLoginStatus() called before calling FB.init()." all.js:64:238 TypeError: a is undefined plusone.js:43:791 Diese Website verwendet ein SHA-1-Zertifikat; es wird empfohlen, Zertifikate mit Signaturalgorithmen zu verwenden, die stärkere Hashfunktionen verwenden als SHA-1.[Weitere Informationen] badge Using //@ to indicate sourceURL pragmas is deprecated. Use //# instead rs=AGLTcCMcKSJXdPyjlQBxpi--mrC8VUXzXQ:90:0 Using //@ to indicate sourceURL pragmas is deprecated. Use //# instead rs=AGLTcCMcKSJXdPyjlQBxpi--mrC8VUXzXQ:273:0 getAttributeNode() sollte nicht mehr verwendet werden. Verwenden Sie stattdessen getAttribute(). rs=AGLTcCMcKSJXdPyjlQBxpi--mrC8VUXzXQ line 6 > eval:35:0 Diese Website verwendet ein SHA-1-Zertifikat; es wird empfohlen, Zertifikate mit Signaturalgorithmen zu verwenden, die stärkere Hashfunktionen verwenden als SHA-1.[Weitere Informationen] like.php TypeError: a is undefined plusone.js:43:791
comment:3 Changed on 06/23/2015 at 05:00:19 PM by greiner
- Component changed from Unknown to User-Interface
- Priority changed from Unknown to P2
This issue appears to be the same as the one reported at Bugzilla earlier this year. The share.adblockplus.org page is running in an unprivileged window and wants to communicate with its parent frame which is a privileged window by using window.parent.postMessage.
The suggested approach on that thread is to use WebChannel instead which requires changes on both ends of the line.
comment:4 Changed on 06/23/2015 at 05:30:48 PM by greiner
- Cc greiner added
- Description modified (diff)
- Ready set
- Summary changed from 'Think Adblock plus worth sharing' is not opened when clicked on social media icons on first run page. to Share dialog fails to open on first-run page
comment:5 Changed on 06/24/2015 at 09:52:09 AM by greiner
- Owner set to greiner
comment:6 Changed on 06/24/2015 at 09:58:02 AM by greiner
- Description modified (diff)
Simplified the ticket description a bit.
comment:7 Changed on 06/24/2015 at 05:50:06 PM by trev
It looks like WebChannel will only work in Firefox, not in SeaMonkey or Firefox Mobile. That should to be tested because it won't work for us as solution then.
comment:8 Changed on 06/26/2015 at 06:01:30 PM by greiner
- Keywords externaldependency added
This behavior appears to be a regression introduced in Firefox 38. I filed bug 1177795 at Bugzilla.
comment:9 Changed on 07/21/2015 at 04:03:51 PM by greiner
- Review URL(s) modified (diff)
- Status changed from new to reviewing
- Tester set to Unknown
comment:10 Changed on 07/21/2015 at 06:13:34 PM by greiner
- Milestone set to Adblock-Plus-for-Firefox-next
- Resolution set to fixed
- Status changed from reviewing to closed
comment:11 Changed on 07/22/2015 at 09:03:45 AM by trev
- Keywords externaldependency removed
- Milestone Adblock-Plus-for-Firefox-next deleted
Removed milestone - this won't get into release automatically, a dependency update is needed.
1 - 31 May 2015 10:24:47 posted by Rajeswari Vemuri
Similar to AFI-37