Closed Bug 1121227 Opened 9 years ago Closed 9 years ago

Don't harcode the system app origin in touch-events.js

Categories

(Firefox OS Graveyard :: Runtime, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: fabrice, Assigned: fabrice)

References

Details

Attachments

(1 file)

Because it can change...
Blocks: graphene
Attachment #8548489 - Flags: review?(poirot.alex)
Comment on attachment 8548489 [details] [diff] [review]
touch-events.patch

Review of attachment 8548489 [details] [diff] [review]:
-----------------------------------------------------------------

::: toolkit/devtools/touch-events.js
@@ +72,5 @@
> +      try {
> +        systemOrigin = Services.io.newURI(
> +          Services.prefs.getCharPref("b2g.system_manifest_url"), null, null)
> +          .prePath;
> +      } catch(e) {}

We may want to compute systemOrigin once, during startup, instead of doing it on each click!
Attachment #8548489 - Flags: review?(poirot.alex) → review+
https://hg.mozilla.org/mozilla-central/rev/a1344737184b
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: