Skip to content

Instantly share code, notes, and snippets.

View jan-ivar's full-sized avatar

Jan-Ivar Bruaroey jan-ivar

View GitHub Profile
already_AddRefed<Promise>
MediaDevices::GetUserMedia(const MediaStreamConstraints& aConstraints,
CallerType aCallerType,
ErrorResult &aRv)
{
RefPtr<Promise> p = Promise::Create(GetParentObject(), aRv);
if (NS_WARN_IF(aRv.Failed())) {
return nullptr;
}
MediaManager::Get()->GetUserMedia(GetOwner(), aConstraints, aCallerType)->Then(
already_AddRefed<Promise>
MediaDevices::GetUserMedia(const MediaStreamConstraints& aConstraints,
CallerType aCallerType,
ErrorResult &aRv)
{
RefPtr<Promise> p = Promise::Create(GetParentObject(), aRv);
if (NS_WARN_IF(aRv.Failed())) {
return nullptr;
}
MediaManager::Get()->GetUserMedia(GetOwner(), aConstraints, aCallerType)->Then(
★ ~/moz/mozilla-central $ mach run
0:01.24 /Users/Jan/moz/mozilla-central/obj-x86_64-apple-darwin12.2.1-opt/dist/Nightly.app/Contents/MacOS/firefox -no-remote -foreground -profile /Users/Jan/moz/mozilla-central/obj-x86_64-apple-darwin12.2.1-opt/tmp/profile-default
console.error: BackgroundUpdate:
_reasonsToNotScheduleUpdates: Failed to check for Maintenance Service Registry Key: [Exception... "Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIUpdateProcessor.getServiceRegKeyExists]" nsresult: "0x80004001 (NS_ERROR_NOT_IMPLEMENTED)" location: "JS frame :: resource://gre/modules/BackgroundUpdate.jsm :: _reasonsToNotScheduleUpdates :: line 255" data: no]
JavaScript error: resource://gre/modules/XULStore.jsm, line 58: Error: Can't find profile directory.
console.error: (new TypeError("can't access property \"payload\", result is undefined", "resource:///modules/UrlbarProviderQuickActions.sys.mjs", 273))
console.error: (new TypeError("can't access property \"payload\", result is und
★ ~/moz/mozilla-central $ mach run
0:01.04 /Users/Jan/moz/mozilla-central/obj-x86_64-apple-darwin12.2.1-opt/dist/Nightly.app/Contents/MacOS/firefox -no-remote -foreground -profile /Users/Jan/moz/mozilla-central/obj-x86_64-apple-darwin12.2.1-opt/tmp/profile-default
console.error: BackgroundUpdate:
_reasonsToNotScheduleUpdates: Failed to check for Maintenance Service Registry Key: [Exception... "Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIUpdateProcessor.getServiceRegKeyExists]" nsresult: "0x80004001 (NS_ERROR_NOT_IMPLEMENTED)" location: "JS frame :: resource://gre/modules/BackgroundUpdate.jsm :: _reasonsToNotScheduleUpdates :: line 255" data: no]
JavaScript error: resource://gre/modules/XULStore.jsm, line 58: Error: Can't find profile directory.
JavaScript error: resource://services-settings/RemoteSettingsClient.jsm, line 328: Error: Cannot instantiate Remote Settings client in child processes.
JavaScript error: https://teams.microsoft.com/statics/hashed/precompiled-shared

GPT4 on W3C methods returning dictionaries

User

How many W3C specifications are you aware of?

ChatGPT

As an AI language model, I'm aware of many W3C (World Wide Web Consortium) specifications up to my knowledge cutoff in September 2021. Some of the most notable specifications include: