Closed Bug 1460342 Opened 8 years ago Closed 7 years ago

[developer] Add JS helper for document ready state events like DOMContentLoaded

Categories

(Firefox for iOS :: General, enhancement, P3)

Other
iOS
enhancement

Tracking

()

RESOLVED INVALID
Tracking Status
fxios + ---

People

(Reporter: garvan, Unassigned)

Details

Nimbledroid (ND) test for page load will take a screenshot when the load event happens, and currently this screenshot is blank as the event we use happens too early. This isn't a critical bug, however the ND testing is more useful with screenshots. The completion event we have in the app now is KVO on progress loaded. This happens before the web view has rendered. We may have more success using JS events like `document.addEventListener("DOMContentLoaded")`, or monitoring document.readyState in some way. This seems like it would be useful for other purposes going forward, that is, to have an event that has happened *after* the webview has drawn the page to the screen.
Priority: -- → P3
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.