-
Notifications
You must be signed in to change notification settings - Fork 679
interactive examples are broken (empty) on "open in new tab" #6307
Comments
I can't reproduce. In either browser. It seems sporadic. Perhaps there's some other JS error that's blocking something. Are you saying it's only happening after it has been opened in a new tab? If you can reproduce it, can you open the Web Console and share what it says. Or the Browser Console even? I have a vague theory. We have a bunch of badly configured JS that's set to execute With regards to the messed up line numbers, I think we can focus on #6310 for that. |
Possibly related: https://bugzilla.mozilla.org/show_bug.cgi?id=1607442 |
For the Chrome problem: #6310 looks totally like a duplicate of the Chrome problem I'm talking about here. I get this all the time when opening in a new tab, and never/hardly ever when I just click a link. I don't see anything interesting in the Chrome console: Because I always see the Chrome problem, I can't tell you if the console output is different when there isn't a problem. |
"When called on an So it's arguably dangerous of CodeMirror to assume that Either way, I don't understand the description. What does it mean "When called on |
By the way, CodeMirror's code has changed: That PR is 1.5 years old. Also, we're using CodeMirror 5.31.0 (based on the file URL). That was released in Oct 2017. |
This is now reproducibly every time for me. On prod and on Perhaps it's time to start to own this so that you can run interactive examples locally. |
I and @tobinmori have looked at this as well. Strangely enough in Chrome we can reproduce it pretty regularly although there is no obvious error to correlate the problem too. The only one that came up a few times is the following:
I honestly thought we solved this problem but alas, there it is :) While we could not correlate as mentioned above, here is what I am going to do to get the ball rolling:
Once this has all been done, we can revisit and see whether the problem persists. |
@peterbe to verify that this is occurs in Chrome (not just nightly FF). if Chrome, then p1. |
Opened https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt in Fx Nightly 74. Right clicked on Interactive example renders correctly and works as expected. Did multiple refreshes and could no reproduce blank example, nor gutter/line numbers overlap. |
Cannot reproduce in Chrome(latest release 79.0.3945.117 (Official Build) (64-bit)) |
thanks @schalkneethling, we'll keep this at p2 then, for next sprint. |
We have updated CodeMirror and there is a new release of Bob: I will do some testing locally to ensure nothing broke but I have also asked @wbamberg to kick the tires. |
Ok, mdn/interactive-examples#1525 has been merged. In ~30min the new builds of interactive examples will be on production. 🤞 |
I just noticed this is the issue about the empty editor. |
Closing for now, since this problem has been greatly reduced. |
This seems to be a problem still, see mdn/bob#977. |
We know about this and it seems to be a rare occurrence so it's a p5. It was worse before! |
UPDATE (Jan 10, peterbe)
Let's make this issue exclusively about the JavaScript
TypeError
that only happens when using "open in new tab". The problem with the line number gutter is for #6310.Visit a page, say: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt
Right-click a link to a docs page from the sidebar, say https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt/asIntN, and select "Open Link in New Tab"
Switch to the new tab.
In Chrome 80, I get an interactive example where the line numbers overlap the example:
In Firefox Nightly (73, adblockers disabled), I get an empty interactive example:
In both these cases, reloading the page fixes it.
In Firefox release (71) it works as expected.
The text was updated successfully, but these errors were encountered: