Opened on 03/10/2017 at 01:12:11 PM
Closed on 03/11/2017 at 11:42:06 AM
#4973 closed defect (fixed)
Exception thrown in popup window
Reported by: | Ross | Assignee: | kzar |
---|---|---|---|
Priority: | P1 | Milestone: | Adblock-Plus-1.13-for-Chrome-Opera |
Module: | Platform | Keywords: | |
Cc: | kzar, trev, rraceanu | Blocked By: | |
Blocking: | Platform: | Chrome | |
Ready: | yes | Confidential: | no |
Tester: | Ross | Verified working: | no |
Review URL(s): |
Description (last modified by Ross)
Environment
Adblock Plus 1.12.4.1739
Chrome 49 / 56 / Windows 10
Opera 37 / 41 / Windows 7
How to reproduce
- Install extension.
- Inspect the popup and view the Console.
Observed behaviour
Javascript error related to notifications: Uncaught SyntaxError: Identifier 'require' has already been declared at notification.js:1
Expected behaviour
JS error to not occur.
Notes
The error being thrown in the popup's console is a regression caused by Issue 4795 - Use modern JavaScript syntax.
Attachments (0)
Change History (9)
comment:1 Changed on 03/10/2017 at 01:18:54 PM by kzar
- Cc trev added
- Component changed from Unknown to Platform
comment:4 Changed on 03/10/2017 at 01:30:17 PM by kzar
- Review URL(s) modified (diff)
- Status changed from new to reviewing
comment:5 Changed on 03/10/2017 at 02:12:21 PM by Ross
Ah okay, I was using the popup console instead of the background console. Notifications do work.
comment:6 Changed on 03/10/2017 at 02:13:29 PM by Ross
- Description modified (diff)
- Summary changed from Notifications JS error / Notifications not working to Notifications JS error
comment:7 Changed on 03/10/2017 at 02:15:13 PM by kzar
- Milestone set to Adblock-Plus-1.13-for-Chrome-Opera
- Owner set to kzar
- Priority changed from Unknown to P1
- Ready set
- Summary changed from Notifications JS error to Exception thrown in popup window
Thanks, marking this as ready.
comment:8 Changed on 03/11/2017 at 11:33:56 AM by abpbot
A commit referencing this issue has landed:
Issue 4973 - Avoid redeclaring require in the popup
comment:9 Changed on 03/11/2017 at 11:42:06 AM by kzar
- Cc rraceanu added
- Resolution set to fixed
- Status changed from reviewing to closed
Note: See
TracTickets for help on using
tickets.
What did you do to test notifications? When I run this code in the background console:
and then browse to http://example.com the notification is displayed. Also the button to open the options page from the notification worked for me.
I can reproduce the console error though, argh.