Conversation
|
I had no luck with test coverage. All I can do is check the clientHeight, but I'm unable to find a test for "Is all the pad content visible". (After reverting the auto height commit, clientHeight is correct, but it won't grow the editor, so it would be good to have a regression test for this, too. I seem to be unable to mouse click anywhere inside the iframe) |
e30c65d to
f9568e9
Compare
|
Looks great work man |
f9568e9 to
9f61197
Compare
| script.src = absUrl(`../javascripts/lib/ep_etherpad-lite/static/js/${module}.js` + | ||
| `?callback=require.define&v=${clientVars.randomVersionString}`); | ||
| innerDocument.head.appendChild(script); | ||
| } |
There was a problem hiding this comment.
Removing it here is not good, as we now fetch those resources automatically (without version string). So we need to find a proper fix for the "require not found" caused by those lines.
|
Making it draft, because deleting ace2_inner/ace2_common results in those packages get downloaded automatically via require-kernel and thus they don't have a version string anymore, which is bad for caching. So we need another fix, maybe loading them after require has been defined. |
At least Safari, but I think Chrome too. However, with your |
|
this depends on ether/etherpad-require-kernel#3 now. The one "bad" thing is still, that I can't find a good way to regression test: |
9f61197 to
61c899b
Compare
|
published require kernel update |
and can result in benign console errors ('require not found')
bump require-kernel
4a041f4 to
1eaa293
Compare
|
In the revert commit, would you update the commit message to explain why it needs to be reverted? |
|
I wanted to add the message now, but then I realized the srcdoc patch was enough for scrolling and line number links to work. It works with and without 470f40d, so I gonna keep it as I can't see any disadvantage. I'm closing this and do a PR with the other commits in a separate branch. |
This fixes the problem of the clientHeight in ace_inner iframe being as large as the whole document instead of only the visible viewport. Please don't squash as it also fixes some other things.
@rhansen
I deleted the poll condition as it was the source of loading problems in ~20% with chromium. The debug output was:
In the other 80% "poll condition became true" never happened. Do you know which browsers needed that, as our frontend tests are passing?