summaryrefslogtreecommitdiff
path: root/js/xpconnect/tests/chrome/file_bug1281071.html
blob: 2398ce4a576157b541938d2244384b6377a6b6f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<!DOCTYPE html>
<script>
  function tryLocationGet() {
    var desc = Object.getOwnPropertyDescriptor(window, "location");
    try {
      desc.get.call(parent);
      return "get succeeded";
    } catch (e) {
      return e.message;
    }
  }
</script>