Gecko engine for Wine
Go to file
Mike Conley 3e118befc1 Bug 1077168 - Cancel in-flight Webapp install jobs from windows that change location. r=myk.
Installing a Webapp is an asynchronous job, and there is a pocket of time
between when web content requests to install an app and before the browser
displays an installation prompt that the outer window of the content can
browse away. This pocket of time is typically used by XHR to request the
web app resources and verify their contents.

This pocket of time is, essentially, bug 771294, and is a bit of a security
problem.

This problem was originally patched over on Desktop by checking in the parent
process that the outer window was still at the same URI as it had been when it
made the request. I'm not entirely sure if Android / B2G made similar checks.

With separated content processes, however, the browser front-end can no longer
performantly check to ensure that the outer window is at the same URI.

We solve this problem by sending up a message in the content process when
the location of an outer window making use of navigator.mozApps changes.
We hold a Map of "actions" mapping to in-flight installs mapped by the
outer window ID of the requesting content. When we notice a location
change, we mark those actions as cancelled. When the XHR returns, we have
it check the state of its actions, and if they're cancelled, it aborts
further action.

Normally, this wouldn't be necessary, since any XHR initiated by the
content window would be cancelled once the location changed, but in
this case, the XHR is occurring in Webapps.jsm, and is not influenced
by the outer window of the content.
2015-02-10 13:18:47 -05:00
accessible Bug 1111022 - Fixes the accessibility test_docload.html test failing with hidden windows. 2015-02-22 12:28:32 +01:00
addon-sdk Bug 1131923 - Uplift Add-on SDK to Firefox a=me 2015-02-18 09:14:14 -08:00
b2g Bumping manifests a=b2g-bump 2015-02-23 01:01:28 -08:00
browser Bug 1077168 - Notice when any content requesting Webapp permissions browses away, and remove the notification. r=felipe. 2015-02-11 11:46:50 -05:00
build Bug 1123990 - installer needs voucher.bin; r=glandium, r=cpearce, a=RyanVM 2015-02-19 10:04:16 -05:00
caps Bug 1123854 - Remove some out of memory checks in caps/. r=jst 2015-01-30 10:59:49 -08:00
chrome Bug 1119005 - No need to branch on NewChannelinternal callsites anymore - callsite updated (r=sicking) 2015-02-19 11:47:59 -08:00
config Fixup for bug 1114669 on a CLOSED TREE. r=gps 2015-02-13 11:15:15 +09:00
content
db/sqlite3 Bug 1127899 - Upgrade to SQLite 3.8.8.2, r=mak. 2015-01-31 18:00:34 -08:00
docshell Bug 1119005 - No need to branch on NewChannelinternal callsites anymore - callsite updated (r=sicking) 2015-02-19 11:47:59 -08:00
dom Bug 1077168 - Cancel in-flight Webapp install jobs from windows that change location. r=myk. 2015-02-10 13:18:47 -05:00
editor Bug 1056851 - Change existing callers of SpecialPowers.setBoolPref/setIntPref/setCharPref to SpecialPowers.pushPrefEnv. r=jmaher,mwargers 2015-02-19 11:53:01 -05:00
embedding Back out bug 1075670 for causing smoketest failures on B2G, bug 1133518 and friends. rs+a=kats 2015-02-17 10:39:35 -05:00
extensions Bug 1119005 - No need to branch on NewChannelinternal callsites anymore - callsite updated (r=sicking) 2015-02-19 11:47:59 -08:00
gfx Bug 1135408: Report device resets and their reasons through telemetry. r=vladan 2015-02-22 22:53:32 +00:00
hal Bug 1114890 - Use TabParent::GetFrom everywhere. r=billm 2015-02-05 16:47:32 -05:00
image Bug 1056851 - Change existing callers of SpecialPowers.setBoolPref/setIntPref/setCharPref to SpecialPowers.pushPrefEnv. r=jmaher,mwargers 2015-02-19 11:53:01 -05:00
intl Merge fx-team to m-c a=merge CLOSED TREE 2015-02-20 18:06:13 -08:00
ipc bug 1133075 - fixup includes CLOSED TREE 2015-02-18 17:31:55 -05:00
js Bug 1135001 - Get rid of slow GetTopJitJSScript calls in Ion ICs. r=bhackett 2015-02-22 23:37:58 +01:00
layout Back out 21e812742b52 (bug 1134598) for unexpected assertions 2015-02-22 15:56:44 -08:00
media Bug 1128116: Fix decoding H264 in webrtc where SPS & PPS aren't in a STAP-A packet r=ehugg 2015-02-22 19:10:59 -05:00
memory Bug 1128413, Part 4: Fix warnings in mozilla-config.h and gcc-stl-wrapper.template.h, r=glandium 2015-02-02 17:35:19 -08:00
mfbt Bug 1131783 - Optimize away null checks in non-POD Vectors too r=waldo 2015-02-12 08:37:01 -08:00
mobile Bug 1130461 - Part 3: disable ReadingListHelper's background fetch triggers to avoid test problems. r=margaret 2015-02-23 10:35:11 -08:00
modules Backed out changeset aec4384126ef (bug 1116806) 2015-02-22 02:53:41 -07:00
mozglue Bug 1132663 - Part 2: Block rndlnpshimswf.dll and rndlmainbrowserrecordplugin.dll. r=bsmedberg 2015-02-18 14:12:41 +13:00
netwerk Bug 1119005 - No need to branch on NewChannelinternal callsites anymore - callsite updated (r=sicking) 2015-02-19 11:47:59 -08:00
nsprpub
other-licenses
parser bug 1133075 - add more MOZ_OVERRIDE r=froydnj, waldo, jrmuizel 2015-02-18 17:03:30 -05:00
probes
profile
python Bug 1075055 - Inform mozinfo about the MOZ_TELEMETRY_REPORTING build configuration. r=ted 2015-02-19 22:20:00 -08:00
rdf Back out changesets 2fcef6b54be7, 2be07829fefc, 66dfe37b8532, df3fcd2be8fd, 0a436bce77a6 (bug 1050035) for causing intermittent crashes and assertion failures. 2015-02-10 14:39:49 -08:00
security Merge inbound to m-c. a=merge 2015-02-21 16:40:27 -05:00
services Bug 1131455 - about:sync-log assertion failure: newly created channel must have a loadinfo attached (r=rnewman) 2015-02-17 19:54:12 -08:00
startupcache
storage Bug 1127201 (attempt 2, part 1) - Replace most NS_ABORT_IF_FALSE calls with MOZ_ASSERT. r=Waldo. 2015-02-09 14:34:50 -08:00
testing Bug 1133468 - Use wait_for_condition rather than immediately checking for a url update in marionette's modal handling code.;r=automatedtester 2015-02-19 17:41:37 -08:00
toolkit Bug 1077168 - Have RemoteWebProgress dispatch DOMWindowID's to nsIWebProgressListener's. r=felipe. 2015-02-10 12:28:31 -05:00
tools Backed out changesets fbfda0143584 and e8cfd49ac790 (bug 1129510) for crashes. 2015-02-20 20:01:08 -05:00
uriloader Bug 694870 - Only support GIO in Linux file and protocol handler. r=roc, r=karlt 2015-02-16 16:00:32 -07:00
view Bug 1127201 (attempt 2, part 1) - Replace most NS_ABORT_IF_FALSE calls with MOZ_ASSERT. r=Waldo. 2015-02-09 14:34:50 -08:00
webapprt Bug 1127339 - Move SSLv3 detection out of aboutNetError.xhtml. r=gijs 2015-02-21 17:20:23 +09:00
widget Merge b2g-inbound to m-c a=merge CLOSED TREE 2015-02-20 18:17:56 -08:00
xpcom Backed out changesets 4c2b179b71ae and c96050cdedd5 (bug 1133939) for asserts. 2015-02-20 20:00:19 -05:00
xpfe Back out bug 1075670 for causing smoketest failures on B2G, bug 1133518 and friends. rs+a=kats 2015-02-17 10:39:35 -05:00
xulrunner Bug 870366 - Part 2: Move PREF_JS_EXPORTS to moz.build (easy moves). r=gps 2015-01-20 13:07:03 -05:00
.clang-format
.clang-format-ignore
.gdbinit
.gitignore
.hgignore
.hgtags
.lldbinit
aclocal.m4
Android.mk
AUTHORS
client.mk
client.py
CLOBBER Bug 1119335 - support ideal/exact constraint syntax. r=mrbkap, r=mt 2015-02-20 17:06:26 -05:00
configure.in Bug 1133384 - Add -MaxILKSize to LDFLAGS for MSVC to avoid LNK1248 error. r=glandium 2015-02-19 10:29:35 +13:00
GNUmakefile Bug 794723 - Add a default makefile which wraps mach. r=gps 2015-02-06 10:26:00 -08:00
LEGAL
LICENSE
mach
Makefile.in
moz.build Bug 1126593 - Add a global fallible instance, so that using fallible works directly, everywhere. r=njn 2015-02-02 09:56:13 +09:00
mozilla-config.h.in Bug 1128413, Part 4: Fix warnings in mozilla-config.h and gcc-stl-wrapper.template.h, r=glandium 2015-02-02 17:35:19 -08:00
README.txt Bug 1130683 - Use stable owner name which will never fail r=garndt 2015-02-09 21:53:26 -08:00

An explanation of the Mozilla Source Code Directory Structure and links to
project pages with documentation can be found at:

    https://developer.mozilla.org/en/Mozilla_Source_Code_Directory_Structure

For information on how to build Mozilla from the source code, see:

    http://developer.mozilla.org/en/docs/Build_Documentation

To have your bug fix / feature added to Mozilla, you should create a patch and
submit it to Bugzilla (https://bugzilla.mozilla.org). Instructions are at:

    http://developer.mozilla.org/en/docs/Creating_a_patch
    http://developer.mozilla.org/en/docs/Getting_your_patch_in_the_tree

If you have a question about developing Mozilla, and can't find the solution
on http://developer.mozilla.org, you can try asking your question in a
mozilla.* Usenet group, or on IRC at irc.mozilla.org. [The Mozilla news groups
are accessible on Google Groups, or news.mozilla.org with a NNTP reader.]

You can download nightly development builds from the Mozilla FTP server.
Keep in mind that nightly builds, which are used by Mozilla developers for
testing, may be buggy. Firefox nightlies, for example, can be found at:

    ftp://ftp.mozilla.org/pub/firefox/nightly/latest-trunk/
            - or -
    http://nightly.mozilla.org/