Actions
Bug #10923
openWidgetSet mode doesn't bootstrap properly
Start date:
09/08/2022
Due date:
% Done:
0%
Estimated time:
Description
WidgetSet skips the loading of Boot.js
. It doesn't need to, since it can immediately start loading Wt's JavaScript.
However, this means that some things are skipped over, resulting in WEnvironment
not being correctly populated.
With WidgetSet mode, the following functions won't return an accurate result:
WEnvironment::webGL()
: alwaysfalse
WEnvironment::screenWidth()
: always-1
WEnvironment::screenHeight()
: always-1
WEnvironment::timeZoneOffset()
: always zeroWEnvironment::timeZoneName()
: always emptyWEnvironment::supportsCookies()
: no test cookie is set, so if there are no existing cookies already being sent by the browser this will befalse
Another oddity when loading WidgetSet is that the initial script request does not actually load the contents of the widget. Instead, only Wt.js
is loaded and the load
signal is dispatched. Related to this is issue #9076: invisible changes were not being loaded as part of the load
signal's response.
Updated by Roel Standaert about 3 years ago
- Related to Bug #9076: Opening popup (calendar) of Wt::WDateEdit fails in Widgetset mode on first render. added
Updated by Matthias Van Ceulebroeck 8 days ago
- Target version changed from future to 4.13.1
Updated by Romain Mardulyn 5 days ago
- Status changed from New to InProgress
- Assignee set to Romain Mardulyn
Actions