WebView.loadHtml() doesn’t wait for context to be fully constructed, may result in user scripts not loaded
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Oxide |
Confirmed
|
Medium
|
Unassigned | ||
Ubuntu Notes app |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
Seems that since the change with the new header in the NoteView page, the user script in oxide isn't called all the time any more. Of about half the times I retry, the callback just isn't ever called. Closing the note and opening it again seems to make it recover (or break) in about half the times.
My suspicion is a race condition when building up the view, now that with the use of the locationBarCont
This is the user script:
http://
This is the place that installs the user script/listens for callbacks:
http://
Related branches
- Ubuntu Phone Apps Jenkins Bot: Approve (continuous-integration)
- Riccardo Padovani: Approve
-
Diff: 89 lines (+19/-14)4 files modifiedpush-helper.apparmor (+1/-1)
src/app/qml/reminders.qml (+16/-0)
src/app/qml/ui/EditNoteView.qml (+1/-1)
src/app/qml/ui/NoteView.qml (+1/-12)
summary: |
- sometimes ticking checkboxes in note view doesn't save the change + WebView.loadHtml() doesn’t wait for context to be fully constructed, may + result in user scripts not loaded |
A package built from current trunk to reproduce the isse: http:// notyetthere. org/data/ com.ubuntu. reminders_ 0.5.466_ armhf.click
Here's a screenshot of a note that frequently triggers the issue: http:// i.imgur. com/JEbGT17. png