Closed
Bug 634453
Opened 14 years ago
Closed 14 years ago
paypal JS errors when requesting a page via Selenium
Categories
(addons.mozilla.org Graveyard :: Public Pages, defect, P5)
addons.mozilla.org Graveyard
Public Pages
Tracking
(Not tracked)
RESOLVED
INVALID
Future
People
(Reporter: vish_moz, Assigned: andy+bugzilla)
References
()
Details
(Whiteboard: [fromAutomation])
1. Automation tool Selenium uses a proxy server.
2. When automation test gets on this page https://addons.allizom.org/en-US/firefox/personas/ you get Java Script errors such as:
Error: PAYPAL is undefined
Source File: https://addons-cdn.allizom.org/media/js/common-min.js?build=6692005
Line: 49
Error: Permission denied for <https://addons.allizom.org> to get property Window.dgFlow from <>.
Source File: https://addons-cdn.allizom.org/media/js/common-min.js?build=6692005
Line: 49
| Reporter | ||
Updated•14 years ago
|
Whiteboard: [fromAutomation]
| Assignee | ||
Comment 1•14 years ago
|
||
The paypal is now lazier loading so should only trigger if you are testing contributions. If you do test contributions, I would expect problems.
| Reporter | ||
Comment 2•14 years ago
|
||
Still seeing the JS errors even when not testing contributions (only via Selenium). This page is one of them:
https://addons.allizom.org/en-US/firefox/personas/
As a result, you don't see the arrows on the carousel.
Updated•14 years ago
|
Assignee: nobody → amckay
Target Milestone: --- → 5.12.11
| Assignee | ||
Comment 3•14 years ago
|
||
I don't get any errors and after my change yesterday, paypal isn't loaded at all on that page. Is the selenium setup documented somewhere so I can duplicate here?
Updated•14 years ago
|
Priority: -- → P5
Updated•14 years ago
|
Target Milestone: 5.12.11 → Future
Comment 4•14 years ago
|
||
(In reply to comment #3)
> I don't get any errors and after my change yesterday, paypal isn't loaded at
> all on that page. Is the selenium setup documented somewhere so I can duplicate
> here?
The PayPal error is now gone, but we're still seeing the other error:
Error: Permission denied for <https://addons.allizom.org> to get property
Window.dgFlow from <>.
Source File:
https://addons-cdn.allizom.org/media/js/common-min.js?build=6692005
Line: 49
Looks like some bizarre interaction with jQuery + Selenium's proxy setup...
Comment 5•14 years ago
|
||
It looks like Selenium *may* be suffering from Same Origin Policy. I would try with *chrome instead of *firefox
| Reporter | ||
Comment 6•14 years ago
|
||
Yes, using *chrome which launches Firefox browser in a lesser secure mode works.
So it was the issue with Selenium's Same Origin Policy.
Marking the bug as Invalid.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → INVALID
Updated•9 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•