Skip to content

FF124 Screen Wakelock API shipped#22255

Merged
Elchi3 merged 4 commits intomdn:mainfrom
hamishwillee:ff124_screen_wakelock
Feb 20, 2024
Merged

FF124 Screen Wakelock API shipped#22255
Elchi3 merged 4 commits intomdn:mainfrom
hamishwillee:ff124_screen_wakelock

Conversation

@hamishwillee
Copy link
Contributor

FF124 supports the Screen Wake Lock API by default in https://bugzilla.mozilla.org/show_bug.cgi?id=1874849

This updates from preview to 124 for all things tagged with web-features:screen-wake-lock

Related docs work can be tracked in mdn/content#32338

@github-actions github-actions bot added the data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API label Feb 19, 2024
@github-actions github-actions bot added the data:http Compat data for HTTP features. https://developer.mozilla.org/docs/Web/HTTP label Feb 19, 2024
}
}
},
"permission_screen-wake-lock": {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Found this Permission API permission in the spec - we somehow missed it last time.

Tested with on the indicated versions (and closest I can find before). These are supported (or would otherwise have thrown in test)

(async () => {
    try {
        const result = await navigator.permissions.query({ name: "screen-wake-lock" });
        console.log(result);
    } catch (error) {
        console.error(error);
    }
})();

Copy link
Member

@Elchi3 Elchi3 left a comment

Choose a reason for hiding this comment

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

Thanks! I would have caught this later this week when running our collector against the to be released Firefox 124 beta, but I will trust your research and get this in.

Also thanks for adding the Permission API permission.

@Elchi3 Elchi3 merged commit ce96f14 into mdn:main Feb 20, 2024
@hamishwillee hamishwillee deleted the ff124_screen_wakelock branch February 22, 2024 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API data:http Compat data for HTTP features. https://developer.mozilla.org/docs/Web/HTTP

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants