TypeError: "this.storage is undefined" when browsing repos on Firefox Dev

Issue #16538 resolved
Andrei Predoiu created an issue

Whenever i try to load a repository page in Firefox it starts loading and displaying parts like the sidebar. Just before it seems to finish loading, the page turns blank and the following stack trace shows in the console.

I have Tracking protection, uBlock and Decentraleyes but the issue is present even with all of them disabled.

The site works fine in other browsers

Navigated to https://bitbucket.org/bestsellerit/at-core-middleware/src/master/
Successfully compiled asm.js code (total compilation time 1ms; not stored in cache (too small to benefit)) vendors~repository.6513570c81bafa3330d3.js
TypeError: "this.storage is undefined"
gethttps://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:22:52320thttps://d301sr5gafysq2.cloudfront.net/frontbucket/repository.0040221d8bba6da3ee18.js:1:99770valuehttps://d301sr5gafysq2.cloudfront.net/frontbucket/repository.0040221d8bba6da3ee18.js:1:100081Cihttps://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:182:62208Tihttps://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:182:67094cahttps://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:182:76671lahttps://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:182:76978Gahttps://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:182:80552Hahttps://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:182:80023zahttps://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:182:79849Lahttps://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:182:79222hahttps://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:182:78469enqueueSetStatehttps://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:182:54013setStatehttps://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:174:1280onStateChangehttps://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:7:29607notifyhttps://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:7:25399notifyNestedSubshttps://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:7:25016onStateChangehttps://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:7:29625notifyhttps://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:7:25399notifyNestedSubshttps://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:7:25016onStateChangehttps://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:7:29625notifyhttps://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:7:25399notifyNestedSubshttps://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:7:25016onStateChangehttps://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:7:29625notifyhttps://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:7:25399notifyNestedSubshttps://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:7:25016onStateChangehttps://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:7:29625vhttps://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:93:533071chttps://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:22:183644defaulthttps://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:99:17184defaulthttps://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:82:111026defaulthttps://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:166:97636dispatchhttps://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:93:536115Dhttps://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:53:144550Nhttps://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:22:178335ihttps://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:166:98695chttps://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:166:98845ahttps://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:166:98744Nhttps://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:22:178292Nhttps://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:22:178239Ihttps://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:22:176985whttps://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:22:177762nrWrapperhttps://bitbucket.org/bestsellerit/at-core-middleware/src:18:16608 console.js:35
uncaught at w Error: this.storage is undefined
get@https://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:22:52320
t/<@https://d301sr5gafysq2.cloudfront.net/frontbucket/repository.0040221d8bba6da3ee18.js:1:99770
value@https://d301sr5gafysq2.cloudfront.net/frontbucket/repository.0040221d8bba6da3ee18.js:1:100081
Ci@https://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:182:62208
Ti@https://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:182:67094
ca@https://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:182:76671
la@https://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:182:76978
Ga@https://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:182:80552
Ha@https://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:182:80023
za@https://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:182:79849
La@https://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:182:79222
ha@https://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:182:78469
enqueueSetState@https://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:182:54013
viRO/w.prototype.setState@https://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:174:1280
x/</a</a.prototype.onStateChange@https://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:7:29607
notify@https://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:7:25399
/MKj/v</e.prototype.notifyNestedSubs@https://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:7:25016
x/</a</a.prototype.onStateChange@https://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:7:29625
notify@https://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:7:25399
/MKj/v</e.prototype.notifyNestedSubs@https://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:7:25016
x/</a</a.prototype.onStateChange@https://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:7:29625
notify@https://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:7:25399
/MKj/v</e.prototype.notifyNestedSubs@https://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:7:25016
x/</a</a.prototype.onStateChange@https://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:7:29625
notify@https://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:7:25399
/MKj/v</e.prototype.notifyNestedSubs@https://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:7:25016
x/</a</a.prototype.onStateChange@https://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:7:29625
v@https://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:93:533071
c/</<@https://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:22:183644
jMoy/t.default/</</<@https://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:99:17184
RScT/t.default/</</<@https://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:82:111026
uNbC/t.default/</</<@https://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:166:97636
dispatch@https://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:93:536115
D/<@https://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:53:144550
N/</<@https://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:22:178335
i@https://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:166:98695
c@https://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:166:98845
a@https://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:166:98744
N/<@https://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:22:178292
N@https://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:22:178239
I@https://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:22:176985
w@https://d301sr5gafysq2.cloudfront.net/frontbucket/app.421720d62c1386291921.js:22:177762
nrWrapper@https://bitbucket.org/bestsellerit/at-core-middleware/src:18:16608
console.js:35
Loading failed for the <script> with source https://js-agent.newrelic.com/nr-spa-1071.min.js”. master:1

Comments (12)

  1. Thor Jacobsen

    This has very recently started to happen to me as well. I see this issue is close to a year old, but I've not seen it before yesterday.

  2. Andrei Predoiu reporter

    It's funny because at some point i stopped experiencing it. It might have something to do with your plugins, I ended up disabling a lot of them.

  3. Thor Jacobsen

    It's happening at random now.. Some times I can do PRs in Firefox, sometimes I can't.. Sometimes I can get to the dashboard, sometimes I can't. It's as if I'm hitting different servers with different versions of the solution deployed.

    Edit: In private browsing, with all addons disabled, it seems to work right now.. I'll keep an eye on it

    Edit2: I've tried turning off all ad-blocking, tracker-blocking et. al., still not working. I thought it was because some newrelic logging wasn't allowed to load, but even loading that made no difference

    Edit3: Apparently, a plugin specifically for Facebook made everything break. Disabling that made Bitbucket work again. Maybe that plugin is hooking into React a little too much 🤔

  4. Blake Mitchell

    I just started getting this last night on FF Dev, disabling uBlock Origin for Bitbucket resolved the issue.

  5. Ondřej Kašpar

    No amount of fiddling with extensions has helped me, but clearing local storage for bitbucket.org worked 100% so far.
    Edit: As Mikhail Bulash said below - clearing storage is a temporary solution and by no means a pleasant experience.

  6. Mikhail Bulash

    Clearing local storage certainly helps, but only for a couple or so page navigations, then it breaks again (clearing everything has the same effect). So I have to keep the devtools open all the time when browsing Bitbucket and clear storage every couple of minutes - not exactly a productive experience.

    This is on a FF Nightly 69, fresh with no extensions.

  7. Justin Mullis

    This is happening to me too. Disabling extensions doesn’t help, clearing local storage fixes temporarily.

    Firefox Dev Edition 68.0b14, macOS 10.14.5

  8. Robin Stocker staff

    Hey everyone! I’ve looked into this and fixed the problem, and the fix is now on production.

    Thanks for being patient and for reporting it.

  9. Log in to comment