Geolocation error handle in Firefox problems

Hi,

there are 4 error handle state’s for the geolocation.
But in Firefox there is the button “don’t allow yet” (or how it is called in english).
If the visitor hits this button then there is no error state.

I wan’t to show the direction to the company if the visitor allows the geolocation.
This works great, but the error handle does not really work in Firefox.

I have:

if (Modernizr.geolocation) {
  navigator.geolocation.getCurrentPosition(showMapAndRoute, handle_error);
  }
  else {
  // do something
}

function handle_error(err) {
  if (err.code == 1 || 2 || 3) {
    var myLatlng = new google.maps.LatLng(49.844808, 8.858109);
    var myOptions = {
        zoom: 12,
        center: myLatlng,
        mapTypeId: google.maps.MapTypeId.ROADMAP,
        navigationControl: false,
        mapTypeControl: true,
        scaleControl: false,
        streetViewControl: false
    };
  map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);

  } else if (err.code == 0) {

    var myLatlng = new google.maps.LatLng(49.844808, 8.858109);
    var myOptions = {
        zoom: 12,
	center: myLatlng,
        mapTypeId: google.maps.MapTypeId.ROADMAP,
        navigationControl: false,
        mapTypeControl: true,
        scaleControl: false,
        streetViewControl: false
    };
  map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);

  }
}

I also tried:

function handle_error(err) {
  if (err.code == 0 || 1 || 2 || 3) {
    var myLatlng = new google.maps.LatLng(49.844808, 8.858109);
    var myOptions = {
        zoom: 12,
	center: myLatlng,
        mapTypeId: google.maps.MapTypeId.ROADMAP,
        navigationControl: false,
        mapTypeControl: true,
        scaleControl: false,
        streetViewControl: false
    };
  map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);

  }
}

I want to show the normal map if the visitor does not share the location. It works in Chrome everytime i refresh the page.
In Firefox it only works the first time after klicking don’t share. If i refresh the page then nothing shows up.
And also if i klick “don’t share this time” nothing shows up.