Closed Bug 958739 Opened 11 years ago Closed 11 years ago

JavaScript Error: "SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data" {file: "app://twittershare.gaiamobile.org/js/twittershare.js" line: 26}

Categories

(Firefox OS Graveyard :: Gaia, defect)

x86_64
macOS
defect
Not set
normal

Tracking

(b2g-v1.3 affected, b2g-v1.4 affected)

RESOLVED FIXED
Tracking Status
b2g-v1.3 --- affected
b2g-v1.4 --- affected

People

(Reporter: gkw, Unassigned)

References

Details

(Keywords: regression)

Attachments

(1 file)

Download:

http://ftp.mozilla.org/pub/mozilla.org/b2g/nightly/2014-01-10-00-40-09-mozilla-aurora/b2g-28.0a2.multi.mac64.dmg

Extract it and run using:

B2G.app/Contents/MacOS/b2g-bin -profile B2G.app/Contents/MacOS/gaia/profile/

Click Next all the way till Done until the FTU experience is over, then Skip the tutorial.

===

Launch the "Twitter share" app. You will hit:

JavaScript error: app://twittershare.gaiamobile.org/js/twittershare.js, line 26: JSON.parse: unexpected end of data
This affects B2G Desktop 1.3 mozilla-aurora and 1.4 mozilla-central (master).

Tested with:

http://ftp.mozilla.org/pub/mozilla.org/b2g/nightly/2014/01/2014-01-10-04-02-06-mozilla-central/b2g-29.0a1.multi.mac64.dmg

The error message has changed to:

JavaScript error: app://twittershare.gaiamobile.org/js/twittershare.js, line 26: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data
Summary: JavaScript error: app://twittershare.gaiamobile.org/js/twittershare.js, line 26: JSON.parse: unexpected end of data → JavaScript error: app://twittershare.gaiamobile.org/js/twittershare.js, line 26: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data
This also happens for the generic mozilla-central emulator with timestamp 20140110114743:

E/GeckoConsole(  147): [JavaScript Error: "SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data" {file: "app://twittershare.gaiamobile.org/js/twittershare.js" line: 26}]
Summary: JavaScript error: app://twittershare.gaiamobile.org/js/twittershare.js, line 26: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data → JavaScript Error: "SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data" {file: "app://twittershare.gaiamobile.org/js/twittershare.js" line: 26}
Hi Gary,

the twittershare application has been deprecated since twitter exposed their own web activity to perform the share.

That was created as a showcase on how it can work.
Flags: needinfo?(francisco.jordano)
I filed bug 959447 to remove the twittershare app, which will fix this issue.
Resolving FIXED by bug 959447.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: