[JavaScript Error: "Content Security Policy: Can't use 'self' if self data is not provided"]

RESOLVED FIXED

Status

Marketplace
Payments/Refunds
P2
critical
RESOLVED FIXED
4 years ago
4 years ago

People

(Reporter: krupa, Assigned: mat)

Tracking

x86
Gonk (Firefox OS)
Points:
---

Details

(Whiteboard: [repoman])

Attachments

(1 attachment)

(Reporter)

Description

4 years ago
Connectivity: wifi
SIM used: none
Gaia/device: hamachi/1.3


steps to reproduce:
1. Launch the packaged stage app


expected behavior:
App loads successfully

actual behavior:
Home page is stuck on loading

07-21 20:22:50.521 E/GeckoConsole( 1782): Content JS LOG at app://packaged.marketplace.allizom.org/media/js/include.js:427 in s/<: [homepage] OSC injection skipped; No shelf
07-21 20:22:50.531 E/GeckoConsole( 1782): Content JS LOG at app://packaged.marketplace.allizom.org/media/js/include.js:427 in s/<: [mkt] Hiding splash screen (2.304810s)
07-21 20:22:50.541 E/GeckoConsole( 1782): Content JS LOG at app://packaged.marketplace.allizom.org/media/js/include.js:427 in s/<: [installer] Getting installed apps
07-21 20:22:50.541 E/GeckoConsole( 1782): Content JS LOG at app://packaged.marketplace.allizom.org/media/js/include.js:427 in s/<: [nav] Setting scroll to 0
07-21 20:22:50.541 E/GeckoConsole( 1782): Content JS LOG at app://packaged.marketplace.allizom.org/media/js/include.js:427 in s/<: [req] GOT https://marketplace-stage.cdn.mozilla.net/api/v1/fireplace/search/featured/?cache=1&cat=&dev=firefoxos&device=firefoxos&lang=en-US&limit=10&vary=0
07-21 20:22:50.551 E/GeckoConsole( 1782): Content JS LOG at app://packaged.marketplace.allizom.org/media/js/include.js:427 in s/<: [req] Updating request cache https://marketplace-stage.cdn.mozilla.net/api/v1/fireplace/search/featured/?cache=1&cat=&dev=firefoxos&device=firefoxos&lang=en-US&limit=10&vary=0
07-21 20:22:50.871 E/GeckoConsole(  135): [JavaScript Error: "Content Security Policy: Can't use 'self' if self data is not provided"]
07-21 20:22:50.881 E/GeckoConsole(  135): [JavaScript Warning: "Content Security Policy: Failed to parse unrecognized source app://settings.gaiamobile.org"]
07-21 20:22:50.881 E/GeckoConsole( 1782): [JavaScript Warning: "The X-Content-Security-Policy and X-Content-Security-Report-Only headers will be deprecated in the future. Please use the Content-Security-Policy and Content-Security-Report-Only headers with CSP spec compliant syntax instead." {file: "https://marketplace.allizom.org/iframe-install.html/" line: 0}]
07-21 20:22:50.891 E/GeckoConsole(  135): [JavaScript Error: "Content Security Policy: Can't use 'self' if self data is not provided"]
07-21 20:22:50.891 E/GeckoConsole(  135): [JavaScript Warning: "Content Security Policy: Failed to parse unrecognized source app://settings.gaiamobile.org"]
07-21 20:22:51.341 I/Gecko   ( 1804): ###################################### forms.js loaded
(Reporter)

Comment 1

4 years ago
Created attachment 8459921 [details]
screenshot
(Reporter)

Comment 2

4 years ago
This is blocking me from testing the packaged app
Severity: normal → critical

Updated

4 years ago
Assignee: nobody → dspasovski
Priority: -- → P2
It seems I am not well equipped to investigate this further. There's a high likelyhood the root cause is the upgrade of Flipsnap so we can try reverting that as an interim fix.
Assignee: dspasovski → nobody

Updated

4 years ago
Whiteboard: [repoman]
(Assignee)

Comment 4

4 years ago
We reverted the flipsnap update in https://github.com/mozilla/fireplace/commit/87a6c13b3e884a881d4ea5c625fa9607c3e51573

Did that do the trick ? Does the stage package works now ? I'd like to know before merging the PR for bug 1030159, which needs the updated flipsnap.
Assignee: nobody → mpillard
Flags: needinfo?(krupa.mozbugs)
(Reporter)

Comment 5

4 years ago
I haven't seen this on packaged stage anymore.
Flags: needinfo?(krupa.mozbugs)

Comment 6

4 years ago
Based on comment 5.
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.