Commit Graph

9816 Commits

Author SHA1 Message Date
Justin Lebar
7e748f5b3a Bug 802366 - The main event: Let a browser process inherit its app's id. r=bz,cjones DONTBUILD
The main bug fixed here is that in half of our interfaces, we use "is browser frame/element" to mean "browser or app", and in the other half, we use it to mean "is browser not app".

There's a related, functional bug also fixed here, which is that a browser process doesn't inherit its parent's app-id. This causes problems e.g. for IndexedDB: If a browser inside an app uses IndexedDB, the DB should have the app's app-id.

I also modified Tab{Parent,Child} and nsFrameLoader to call "app" "ownOrContainingApp", to emphasize that we might have inherited the app from a parent process. I left nsIDocShell::appId alone, because changing that would have necessitated changing nsILoadGroup and therefore a /lot/ of users in Necko; it's also not clear it would have clarified anything in those cases.

(Re-landing changeset a6a847452dbf, backed out in 5091aa6083c4, because it was originally landed with the incorrect bug number.)
2012-10-30 16:13:21 -04:00
Justin Lebar
6bd563b2ee Backed out changeset a6a847452dbf due to incorrect bug number (should be bug 802366, but was bug 802367). DONTBUILD 2012-10-30 16:13:20 -04:00
Justin Lebar
fd1dec6d7f Bug 806168 - Remove extra indentation in webapp_clearBrowserData.js. r=bent
The extra indentaiton was necessary because we wanted hg/git to notice that webapp_clearBrowserData.js was actually a rename of test_webapp_clearBrowserData.html.

--HG--
extra : rebase_source : 5154e7406238a0a257e10114a8446ca9288ec08d
2012-10-30 15:55:06 -04:00
Justin Lebar
94490d8c63 Bug 806168 - Test for bugs 802366 and 806127. r=bent
--HG--
rename : dom/indexedDB/test/test_webapp_clearBrowserData.html => dom/indexedDB/test/webapp_clearBrowserData.js
extra : rebase_source : baa5325286fa456eaf5c828b4a59a0ba57680e21
2012-10-30 15:55:06 -04:00
Justin Lebar
1c32e4bcb8 Bug 806127 - Test that cookies from pages inside <iframe mozbrowser> are not considered third-party. r=bz
The test for the other change in bug 806127 (which affects IndexedDB) is in bug 806168.

--HG--
extra : rebase_source : e1adb7af745953b019d80b8a8c086aba24e8408c
2012-10-30 15:55:05 -04:00
Justin Lebar
dd373841e9 Bug 802366 - Epilogue: Remove workaround for bug 802366 in Webapps.jsm. r=sicking
--HG--
extra : rebase_source : ce3e114a9c168810f71a3fa122b94fbd7d97ddca
2012-10-30 15:55:05 -04:00
Justin Lebar
c936f604ec Bug 802367 - The main event: Let a browser process inherit its app's id. r=bz,cjones
The main bug fixed here is that in half of our interfaces, we use "is browser frame/element" to mean "browser or app", and in the other half, we use it to mean "is browser not app".

There's a related, functional bug also fixed here, which is that a browser process doesn't inherit its parent's app-id.  This causes problems e.g. for IndexedDB: If a browser inside an app uses IndexedDB, the DB should have the app's app-id.

I also modified Tab{Parent,Child} and nsFrameLoader to call "app" "ownOrContainingApp", to emphasize that we might have inherited the app from a parent process.  I left nsIDocShell::appId alone, because changing that would have necessitated changing nsILoadGroup and therefore a /lot/ of users in Necko; it's also not clear it would have clarified anything in those cases.

--HG--
extra : rebase_source : f3ef9475e21204da10bf39c6cca506bc08096949
2012-10-30 15:55:05 -04:00
Justin Lebar
8eb0aa0ed6 Bug 802366 - Prelude, part 2: Rename GetParentIgnoreBrowserFrame to GetSameTypeParentIgnoreBrowserAndAppBoundaries. r=bz
It's a long name, but at least it's clear.

--HG--
extra : rebase_source : fdf13259e0b0cc3b0f5d1760f5ced512dee2c28b
2012-10-30 15:55:05 -04:00
Justin Lebar
4c333b07a9 Bug 802366 - Prelude, part 1: Rename in-process-browser-frame-shown to in-process-browser-or-app-frame-shown. r=bz
--HG--
extra : rebase_source : 683e1facc5a6356a4cce0546fd2593a701fe69c0
2012-10-30 15:55:05 -04:00
David Rajchenbach-Teller
f00db38ba7 Bug 770538 - dirfd, MacOS X version. r=froydnj 2012-10-30 11:34:49 -04:00
Kyle Huey
bdf47895bb Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon 2012-10-30 12:28:11 -07:00
Ed Morley
415466b584 Backout fdb7c9649a07 (bug 805967), 72003517a631 (bug 806538), 354250ed1e72 (bug 770538), ea6edd3749ce (bug 770538) for bustage on a CLOSED TREE 2012-10-30 17:56:20 +00:00
Ed Morley
777eed8444 Backout a145ded68994, e0cf397089ec & 1545e91c658e (bug 798491) for bustage on a CLOSED TREE 2012-10-30 17:02:31 +00:00
Fabrice Desré
a628308e1c Bug 805967 - [OTA update] much of my user data blown away in today's update [r=sicking]
--HG--
extra : rebase_source : 102151f13a1176c8afa9eaf73123c383c82bcefc
2012-10-30 00:11:17 -07:00
Patrick Wang
4024b59207 Bug 801540 - Use setupDataCallByType to build data connection. r=dougt 2012-10-23 15:18:11 +08:00
Steven Lee
45a49f2fa0 Bug 792290 - Rename TimeSetting.cpp/TimeSetting.h to TimeZoneSettingObserver.cpp/TimeZoneSettingObserver.h. r=jlebar
--HG--
rename : dom/system/gonk/TimeSetting.cpp => dom/system/gonk/TimeZoneSettingObserver.cpp
rename : dom/system/gonk/TimeSetting.h => dom/system/gonk/TimeZoneSettingObserver.h
2012-10-30 11:34:50 -04:00
Steven Lee
d6f5073988 Bug 792290 - Change TimeSetting to TimeZoneSettingObserver. r=jlebar 2012-10-30 11:34:49 -04:00
David Rajchenbach-Teller
8bc51b6773 Bug 770538 - dirfd, MacOS X version. r=froydnj 2012-10-30 11:34:49 -04:00
Kyle Huey
aa1997a51a Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon 2012-10-30 08:26:12 -07:00
Nathan Froyd
bd55a07f0e Bug 806618 - rewrite PR_NewLogModule calls to not generate static initializers; r=ehsan 2012-10-29 19:32:10 -04:00
Ed Morley
5a558dae9c Backout 95752d95cf73, 190933b35023, 6834d09f8f09, 53e3e62c2b3d & f39ba5076599 (bug 797277) for xpcshell failures 2012-10-30 12:15:07 +00:00
Vicamo Yang
c930c024ae Bug 797277 - Part 5/5: test cases, r=marshall_law 2012-10-30 18:55:48 +08:00
Vicamo Yang
a18f73e8a7 Bug 797277 - Part 4/5: Android implementation, r=mounir,blassey 2012-10-30 18:55:44 +08:00
Vicamo Yang
a93ff362b4 Bug 797277 - Part 3/5: RIL implementation, r=philikon 2012-10-30 18:55:41 +08:00
Vicamo Yang
f06151c4ac Bug 797277 - Part 2/5: dom implementation, r=mounir 2012-10-30 18:55:37 +08:00
Vicamo Yang
fae1955114 Bug 797277 - Part 1/5: add messageClass attribute in nsIDOMSmsMessag, sr=sicking 2012-10-30 18:55:34 +08:00
Vicamo Yang
5d43612b5f Bug 742790 - Part 5/5: test cases, r=marshall_law 2012-10-30 18:53:35 +08:00
Vicamo Yang
7d4ced12cb Bug 742790 - Part 3/5: B2G RIL implementation, r=philikon,marshall_law 2012-10-30 18:53:27 +08:00
Vicamo Yang
1d73a296f4 Bug 742790 - Part 2/5: DOM implementation, r=mounir 2012-10-30 18:53:24 +08:00
Vicamo Yang
2242dbeeca Bug 742790 - Part 1/5: support SMS delivery failure event. Interface changes, sr=sicking,mounir 2012-10-30 18:53:20 +08:00
Peter Van der Beken
9e18022b7d Fix for bug 763643 (Implement static operations and attributes for WebIDL). r=bz.
--HG--
extra : rebase_source : d9dd5450af5d2b1f3e7e3a738ec2efdc7f7053da
2012-10-19 09:34:28 +02:00
Andrea Marchesini
d8a1911a95 Bug 805712 - Try to fix Intermittent test_archivereader_zip_in_zip.html r=mounir 2012-10-30 11:31:34 +01:00
Jan Varga
49e3ad9384 Bug 786688 - Part 3: Automatic tests. r=sicking 2012-10-30 07:12:18 +01:00
Jan Varga
52c04ab469 Bug 786688 - Part 2: Code cleanup. r=sicking 2012-10-30 07:11:58 +01:00
Jonas Sicking
534f67d717 Bug 786688 - Part 1: Add chrome only openForPrincipal() and deleteForPrincipal(). r=bent 2012-10-30 07:07:09 +01:00
Ehsan Akhgari
451773ee5b Bug 803392 - Initial implementation of AudioParam; r=bzbarsky
This patch implements most of the semantics of AudioParam in a
templatized base class called AudioEventTimeline.  This is done in order
to make it possible to test this code from C++ without the need of
linking to libxul.  Basically we take everything that could depend on
libxul or is not suitable for a genertic implementation and put it in a
traits like type as a template argument.  Then the test creates mock
objects that conform to the argument interfaces, and tests the logic of
AudioEventTimeline.
2012-10-16 21:19:06 -04:00
Masayuki Nakano
0c44af9695 Bug 806300 Use intptr_t instead of int64_t for the 3rd argument of GetInputContext() of PBrowser r=cjones, feedback=Ms2ger 2012-10-30 10:58:29 +09:00
Blake Kaplan
309b7a6a97 Bug 802418 - Turn on background scanning when we're disconnected to work around wpa_supplicant's sched_scan getting stuck. r=vchang
--HG--
extra : rebase_source : c254c88d441b9ef6d449f509b8cc0beac6a215cc
2012-10-25 16:27:10 -07:00
Kartikaya Gupta
eaf1ecb30a Bug 806473 - Expose MemoryInfoDumper methods via a nsIMemoryInfoDumper service. r=jlebar
--HG--
rename : xpcom/base/MemoryInfoDumper.h => xpcom/base/nsIMemoryInfoDumper.idl
rename : xpcom/base/MemoryInfoDumper.cpp => xpcom/base/nsMemoryInfoDumper.cpp
2012-10-29 20:41:14 -04:00
Fabrice Desré
5f0e9e9b55 Bug 802683 - mozApp.download() doesn't do anything (packaged app) [r=vingtetun]
--HG--
extra : rebase_source : 892f89978c4582f1624f9acacabed852eda522b7
2012-10-29 17:17:47 -07:00
Mike Habicher
67537fe5ea Bug 804741 - close our recorder output file handle because recorder dup()s it. r=mwu 2012-10-29 16:16:42 -07:00
Jacek Szpot
0b35b0e3d8 Bug 792180 - Replace NS_{UN,}LIKELY with MOZ_{UN,}LIKELY; r=ehsan 2012-10-26 15:32:10 +02:00
Chris Pearce
818603ae1d Bug 805301 - Rename iframe.mozallowfullscreen to allowfullscreen. r=jlebar 2012-10-30 11:02:24 +13:00
Phil Ringnalda
278263cb2f Merge m-c to m-i 2012-10-29 14:37:11 -07:00
Peter Van der Beken
704bdbee45 Fix for bug 778152 (Content window does not have an XMLHttpRequest property when accessed via an Xray wrapper in a subscript) - followup to fix problem pointed out by reviewer. r=bz.
--HG--
extra : rebase_source : 13271029cb0c7cd18b98fa2ed409e43f1df13e47
2012-10-29 21:55:13 +01:00
Phil Ringnalda
7c33475369 Merge the last PGO-green cset on mozilla-inbound to mozilla-central 2012-10-29 13:48:37 -07:00
Doug Turner
41e523420b Bug 804789 - Fix commented out code cause by Bug 793955. r=bent 2012-10-29 09:54:35 -07:00
Bobby Holley
b4461f0bed Bug 803068 - Merge DirectWrapper and Wrapper. r=ejpbruel
--HG--
extra : rebase_source : a2b98a9585c6f7761747cfaf55684e6eeed91344
2012-10-29 16:52:53 +01:00
Phil Ringnalda
30415c8366 Bug 766886 - Reenable test_pluginstream_seek_close.html to see whether it leaks, or only test_streamatclose.html does 2012-10-28 13:11:28 -07:00
Phil Ringnalda
5909705354 Bug 766886 - Disable test_streamatclose.html in debug builds for frequent leaks 2012-10-28 13:09:37 -07:00