Skip to content

Broken features in window.DefineScript #228

Description

@dima-lur

In JsWindow::ParseDefineScriptOptions there is error (usage of jsOptions instead of jsFeatures):

JS::RootedObject jsFeatures( pJsCtx_, &jsFeaturesValue.toObject() );
if ( const auto propOpt = utils::GetOptionalProperty( pJsCtx_, jsOptions, "drag_n_drop" ) )
{
parsedOptions.features.dragAndDrop = *propOpt;
}
if ( const auto propOpt = utils::GetOptionalProperty( pJsCtx_, jsOptions, "grab_focus" ) )
{
parsedOptions.features.grabFocus = *propOpt;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions