
    8Sj
                     J    S SK Jr  S\S\\\4   S\S\4S jrS\S\S\4S jrg	)
    )GeneratedIncludesincludesextended_attributestextreturnc                 `   SU;   a)  U R                  S5        UR                  SS5      nSU S3nUR                  S5      S:X  a:  U R                  S	5        U R                  S
5        UR                  SS5      nSU S3nSU;   a)  U R                  S5        UR                  SS5      nSU S3nU$ )NSecureContextz&LibWeb/Bindings/PrincipalHostDefined.h
z
    zl    if (HTML::is_secure_context(Bindings::principal_host_defined_environment_settings_object(realm))) {
    z    }
ExposedWindowzAK/TypeCasts.hzLibWeb/HTML/Window.hz7    if (is<HTML::Window>(realm.global_object())) {
    Experimentalz"LibWeb/HTML/UniversalGlobalScope.hzQ    if (HTML::UniversalGlobalScopeMixin::expose_experimental_interfaces()) {
    )addreplaceget)r   r   r   s      a/mnt/mint/home/seanl/public/Repos/ladybird/Meta/Generators/libweb_bindings/extended_attributes.py,wrap_with_extended_attribute_exposure_checksr      s     --=>||D(+	F  y)X5%&+,||D(+	F  ,,9:||D(+	F  K    
expressionc                 X    U R                  S5        U R                  S5        SU SU S3$ )Nz0LibWeb/HTML/Scripting/SimilarOriginWindowAgent.hzLibWeb/Bindings/MainThreadVM.hz[&]() -> decltype(a  ) {
        // For [CEReactions]: https://html.spec.whatwg.org/multipage/custom-elements.html#cereactions

        // 1. Push a new element queue onto this object's relevant agent's custom element reactions stack.
        auto& reactions_stack = HTML::relevant_similar_origin_window_agent(*idl_object).custom_element_reactions_stack;
        reactions_stack.element_queue_stack.append({});

        // 2. Run the originally-specified steps for this construct, catching any exceptions. If the steps return a value, let value be the returned value. If they throw an exception, let exception be the thrown exception.
        auto value_or_exception = a~  ;

        // 3. Let queue be the result of popping from this object's relevant agent's custom element reactions stack.
        // 4. Invoke custom element reactions in queue.
        auto queue = reactions_stack.element_queue_stack.take_last();
        Bindings::invoke_custom_element_reactions(queue);

        // 5. If an exception exception was thrown by the original steps, rethrow exception.
        if (value_or_exception.is_error())
            return value_or_exception.release_error();

        // 6. If a value value was returned from the original steps, return value.
        return value_or_exception.release_value();
    }())r   )r   r   s     r   wrap_with_ce_reactionsr   $   s>    LLCDLL12!* .# $., /	 r   N)#Generators.libweb_bindings.includesr   dictstrr   r    r   r   <module>r      sS   
 B6:38nLO8%6 C C r   