Can security be relaxed on macOS to allow Safari to open local html files without manual confirmation?

I’m trying to run Kotlin tests in Safari on macOS Big Sur and each time I’m stuck on following dialog:

enter image description here

It looks like that after enabling “Develop > Disable Local File restrictions” option from menu I at least can click “Open” and tests will proceed. However for obvious reasons I don’t want to submit this form manually each time I’m rerunning tests. My question would be:
Is there’s any way to force Safari to open local html files and get rid of any confirmation dialog completely?

What I’ve tried so far is to add Safari to the “System Preference > Security & Privacy > Privacy > Full Disk Access” settings section, as it described here – unfortunately that doesn’t seem to help.

Safari version is: Version 14.0.3 (16610.|
MacOS version is: Version 11.2.1 (Big Sur)

air travel – Will the authority accept my second ticket as a confirmation that I am transiting

I booked two ticket from two different companies.

The first ticket is from Germany to Barcelona, arrives in the morning. The second is from Barcelona to non-Eu country departs at night.

Spain currently does not require any tests when going there for a transit. When they ask me for my corona test, will they accept my second ticket as a confirmation that I’m going there for less than 24h without going outside the airport?

entities – What is the best way to add a confirmation tooltip to the remove button of a managed_file field?

Another Update

I’m trying to implement the solution found here: Intercept click event on a button, ask for confirmation, then proceed, but the remove button still submits normally. I know my JS is targeting the correct element, because I can change other attributes on it like the background color.

Here’s my form:

function form_experiments_01() {
  $form('#attached')('js') = array(
    drupal_get_path('module', 'form_experiments') . '/js/form_experiments.js',

  $form('managed_files') = array(
    '#type' => 'fieldset',
    '#title' => t('Managed Files'),

  $num_docs = 3;
  for ($i = 1; $i <= $num_docs; $i++) {
    $form('managed_files')($i) = array(
      '#type' => 'managed_file',
      '#title' => 'Managed File ' . $i,

  $form('submit') = array(
    '#type' => 'submit',
    '#value' => 'Submit',

  return $form;

Here’s my javascript:

(function ($) {
  Drupal.behaviors.managedFileAutoUpload = {
    attach: function(context, settings) {
      $('.form-item input.form-submit(value=Upload)', context).hide();
      $('.form-item input.form-file', context).change(function() {
        $parent = $(this).closest('.form-item');

        //setTimeout to allow for validation
        //would prefer an event, but there isn't one
        setTimeout(function() {
          if(!$('.error', $parent).length) {
            $('input.form-submit(value=Upload)', $parent).mousedown();
        }, 100);

  Drupal.behaviors.managedFileConfirmRemove = {
    attach: function(context, settings) {
      var myButton = $('.form-item input.form-submit(value=Remove)', context);

      if (myButton.length > 0) {
        var myClick = null;

        //get a list of jQuery handlers bound to the click event
        var jQueryHandlers ='events').click;


        //grab the first jquery function bound to this event
        $.each(jQueryHandlers,function(i,f) {
          myClick = f.handler;
          return false;

        //unbind the original

        //bind the modified one{
          if(window.confirm("Are You Sure?")){
          } else {
            return false;


After some more research I found this question. This is what I was trying to ask but didn’t know how to word.

Intercept click event on a button, ask for confirmation, then proceed

I’ll implement this solution and post a resolution once I’ve got it working.


I would like to add a confirmation tooltip when the “remove” button is clicked on my managed_file field.

I would like to do something similar to this:

Bootstrap Confirmation Example

What is the best way to do that?

Possible Solution?

So far, I’m thinking I could probably use javascript to hide the remove button and instead display my own button. Then when my button is clicked, I can trigger a popup that contains a second custom button to cancel and the remove button that I originally hid.

I’m worried that this solution is a bit messy. Is there a more elegant way to do this? Can I get a similar behavior without hiding the original remove button?

Similar Questions

I’m not sure if these apply to my use-case since I’m working with a managed_file field. So far, I’ve been unable to implement similar solutions without the default behavior of the remove button interfering.


8 – How to get the customer name in Commerce order confirmation e-mail?

First, you have to create function as @NoSSweat suggested (thanks for the hint) and from it get it like:

function hook_preprocess_commerce_order_receipt(&$variables)
  $givenName = $variables('billing_information')('#profile')->get('address')(0)->given_name;
  $variables('given_name') = $givenName;

(was incredible hard to figure this out 🙂 ) Field name for last name would be “family_name”. Checkout the file:


for other available fields.

I added this function to my module, but adding it to theme file should also work.

That way you are assigning variable which is now available in twig template so you can print it simple as:

{{ given_name }}

Don’t forget to clear the cache.

huawei – I no longer receive sms from services (bank, google otp, confirmation throught sms, …)

I found myself in a really strange problem, I have not received text messages from services for several months, while I continue to receive any other type of text message (e.g. if a friend of mine sends me a text message I receive it and I can also reply, but if I register somewhere and I receive a confirmation SMS, or if I have to make a payment with my credit card and receive the OTP from my bank, and other such messages are not received).
I use the google messaging app as an SMS app, I disabled spam protection for the test but nothing seems to have changed.
In the advanced section of the settings of the “Google messages” app I have:

  • receive service messages: enabled
  • the entry “phone number” is filled in with my phone number
  • the “Custom SMSC” item is filled in with the SMSC provided by my telephone operator

I tried to:

  • reset the network settings and restart
  • turn off and on again (removing the sim)
  • delete all SMS
  • insert the SIM on another mobile phone (it works)

know that android StackExchange is my last hope, I spent 2 days talking to my telephone operator who did nothing but give me solutions such as: switch off and on, buy a new phone, or “we don’t take care of it, call your device manufacturer ”
I then call Huawei (I have a Huawei P20 Pro) and I am told that the problem is not theirs as “Huawei is just one of many brands and they do not add particular SMS blocks to their devices other than those of any other mobile”, and then to call my telephone operator again.

I hope to find a solution here at least, thanks in advance to those who want to help me.

Huawei P20 Pro (CLT-L09), EMUI 10.0.0, Android 10

Webform Wizard Confirmation Page – Drupal Answers

I have built a webform 4 page quiz and am using a Wizard pages. The last page of the quiz shows their computed results. I want to use that last page as the confirmation page. So when the user clicks next on the page before the last page, it submits their quiz and displays the results. How can I make the webform to submit using the last page of the quiz instead of sending the user to a confirmation page?

Used incorrect email address setting up Facebook Business Page so I can’t access the confirmation email

We are a start-up and my business partner’s son-in-law set up the domain for us and Google workspace and we thought he also set up a domain email address Unfortunately, he hadn’t, which means we have now found out means that it doesn’t exist.

Not knowing this, while setting up the Facebook Business Page, I used as the business email address, so the confirmation email from Facebook has been sent to a non-existent email.

I just tried to set up again and put in the our Gmail address, but it said “Unable to Create Account
You are trying to create a business page with the same name as one you are already a part of. Please pick a different name.”

Does anyone know

  • if the confirmation email will expire
  • how to correct my mistake.

interaction design – ‘Add to Favorites’ state change immediately or wait for backend confirmation?

Optimistic updates can go wrong too, what if the network request takes time, and use closes the browser or leaves the site and thinks the interaction was successful because of the visual feedback he received?
In my opinion the best practice, for important interactions, is to use some transition that gives feedback on click, but does not hide the pending state in case it takes more than a second or two.
For low-importance interactions, like rating something or clicking ‘like’, the impact of errors is smaller, so optimistic updates are more ok.

Does the miner machine get any other type of reward except confirmation of transaction in bitcoin?

As a result of mining, miners receive income from two sources

  • The mining reward per block, which halves approximately every 4 years.
  • The transaction fees for the transactions the miner includes in the block.

Nothing else.

The miner includes as the first transaction in the block (the “coinbase” transaction) a transaction with no inputs and with outputs to one or more addresses of their choice with a total amount which is less than or equal to the sum of other included transactions fees and the current mining reward .