Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix webview undefined exception #6581

Closed
wants to merge 1 commit into from

Conversation

AndrienkoAleksandr
Copy link
Contributor

Referenced issue:

Part of the eclipse-che/che#13442

What it does

Fix webview undefined exception when webview located in the editor area(top area) and during restore editor tabs hide webview faster than it was rendered. Issue is reproducible on the Firefox.

How to test

  1. Start theia with test theia plugin https://github.com/AndrienkoAleksandr/che-plugin-registry/releases/download/welcome-plugin-test/eclipse_che_welcome_plugin.theia
  2. Open theia and open browser console by F12 (I used latest long term supported Firefox 68.0.1ers)
Exception log:

root ERROR ../../packages/plugin-ext/lib/main/browser/webview/webview.js/WebviewWidget.prototype.onBeforeHide@http://localhost:3000/43.bundle.js:2262:13
../../node_modules/@phosphor/widgets/lib/widget.js/Widget.prototype.processMessage@http://localhost:3000/bundle.js:26389:22
invokeHandler@http://localhost:3000/bundle.js:10313:21
sendMessage@http://localhost:3000/bundle.js:10049:13
../../node_modules/@phosphor/widgets/lib/widget.js/Widget.prototype.hide@http://localhost:3000/bundle.js:26301:37
../../node_modules/@phosphor/widgets/lib/dockpanel.js/DockPanel.prototype._onCurrentChanged@http://localhost:3000/bundle.js:16634:33
TheiaDockPanel/_this._onCurrentChanged@http://localhost:3000/bundle.js:125349:51
invokeSlot@http://localhost:3000/bundle.js:11098:18
emit@http://localhost:3000/bundle.js:11055:17
../../node_modules/@phosphor/signaling/lib/index.js/</Signal.prototype.emit@http://localhost:3000/bundle.js:10728:17
set@http://localhost:3000/bundle.js:24207:34
set@http://localhost:3000/bundle.js:24165:54
../../node_modules/@phosphor/widgets/lib/dockpanel.js/DockPanel.prototype.selectWidget@http://localhost:3000/bundle.js:16091:9
../../node_modules/@phosphor/widgets/lib/dockpanel.js/DockPanel.prototype.activateWidget@http://localhost:3000/bundle.js:16102:14
../../packages/core/lib/browser/shell/theia-dock-panel.js/TheiaDockPanel.prototype.activateWidget@http://localhost:3000/bundle.js:125394:41
../../packages/core/lib/browser/shell/application-shell.js/ApplicationShell.prototype.doActivateWidget@http://localhost:3000/bundle.js:121718:28
../../packages/core/lib/browser/shell/application-shell.js/ApplicationShell.prototype.activateWidget@http://localhost:3000/bundle.js:121697:30
../../packages/core/lib/browser/widget-open-handler.js/WidgetOpenHandler.prototype.doOpen/</<@http://localhost:3000/bundle.js:133037:40
step@http://localhost:3000/bundle.js:132976:23
verb/<@http://localhost:3000/bundle.js:132957:53
../../packages/core/lib/browser/widget-open-handler.js/__awaiter</<@http://localhost:3000/bundle.js:132951:71
../../packages/core/lib/browser/widget-open-handler.js/__awaiter<@http://localhost:3000/bundle.js:132947:12
../../packages/core/lib/browser/widget-open-handler.js/WidgetOpenHandler.prototype.doOpen@http://localhost:3000/bundle.js:133024:16
../../packages/core/lib/browser/widget-open-handler.js/WidgetOpenHandler.prototype.open/</<@http://localhost:3000/bundle.js:133015:51
step@http://localhost:3000/bundle.js:132976:23
verb/<@http://localhost:3000/bundle.js:132957:53
fulfilled@http://localhost:3000/bundle.js:132948:58

WebviewException

Review checklist

Reminder for reviewers

Signed-off-by: Oleksandr Andriienko oandriie@redhat.com

Fix webview undefined exception when webview located in the editor area(top area) and during restore editor tabs hide webview faster than it was rendered.

Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
Copy link
Member

@akosyakov akosyakov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are targeting to land the proper support of webviews #6465 please help to test and review it instead

@akosyakov akosyakov added the webviews issues related to webviews label Nov 19, 2019
Copy link
Contributor

@benoitf benoitf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@akosyakov is reworking webviews as part of #6465

So need to check if it's working in his PR

@akosyakov
Copy link
Member

FireFox support is generally broken right now: #6582 If you rebase the PR it won't start the app. One can test by excluding the plugin-metrics from the build though.

@akosyakov
Copy link
Member

#6582 landed instead

@akosyakov akosyakov closed this Nov 28, 2019
@vince-fugnitto vince-fugnitto deleted the fixWebViewUndefinedException branch September 29, 2022 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
webviews issues related to webviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants