merge from trunk: construct baseUrl from non-webkit window.location
attributes when using IE.