289056 Commits

Author SHA1 Message Date
Justin Lebar
7b38d49f83 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
818638f210 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
Felipe Gomes
8beaac4b2e Bug 804910 - Part 2. Watch for error notification and display recovery UI. r=jaws 2012-10-30 13:10:04 -07:00
Shane Caraveo
e9858c308c Bug 804910 - Part 1. Check for worker load failures and send a notification in case of errors. r=felipe 2012-10-29 21:57:07 -07:00
Justin Lebar
55b72be75a 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
cdede20026 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
e213f2e376 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
43d4d8a8b6 Bug 806127 - ThirdPartyUtil should not consider in-process <iframe mozbrowser/mozapp> to be third-party. r=bz
--HG--
extra : rebase_source : e6142b0f71f6a6daf7740d694f0d4201cfba7642
2012-10-30 15:55:05 -04:00
Justin Lebar
65f06d5150 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
af7297481d 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
3393b3aed4 Bug 802366 - Prelude, part 5: Improve comments in nsIDocShellTreeItem.idl and nsILoadContext.idl. r=bz
--HG--
extra : rebase_source : 9a3fd090299ff312050eb82ff3c515615df7b17b
2012-10-30 15:55:05 -04:00
Justin Lebar
e81c256481 Bug 802366 - Prelude, part 4: Use and simplify nsScriptSecurityManager::GetDocShellCodebasePrincipal. r=bz
--HG--
extra : rebase_source : 9987bd127ffbfdc6b34302dd05bfac1d6e481a33
2012-10-30 15:55:05 -04:00
Justin Lebar
f0cecd2f62 Bug 802366 - Prelude, part 3: Make some methods on nsIPrincipal infallible, and improve documentation on other methods. r=bz
--HG--
extra : rebase_source : fecd856eee53b99a2a306b4005f2bb3b84c1cfb3
2012-10-30 15:55:05 -04:00
Justin Lebar
f2b7635866 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
0a5c71f499 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
Nathan Froyd
49fa59a6bc Bug 806971 - avoid passing a "null" charset to GetUnicodeDecoder; r=hsivonen 2012-10-29 14:44:24 -04:00
Neil Deakin
e0e633faae Bug 806781, null-check the document when updating menu items, r=neil 2012-10-30 15:55:03 -04:00
Neil Deakin
13b4a84a1e Bug 793157, address extra review comments, r=neil 2012-10-30 15:55:00 -04:00
Rafael Ávila de Espíndola
1fdb43dea5 Bug 806538 - Update double-conversion and document the version we are at. r=Waldo.
--HG--
extra : rebase_source : 5394aab0cb622ad3723ca01a91712ce7cc9ae145
2012-10-30 15:30:08 -04:00
David Rajchenbach-Teller
b308603424 Bug 770538 - dirfd, MacOS X version. r=froydnj 2012-10-30 11:34:49 -04:00
Mitesh Pathak
8f44b62329 Bug 770538 - Call Unix C function |dirfd| from JavaScript. r=dteller 2012-10-12 00:19:17 +05:30
Jonathan Kew
e623b31a10 bug 806059 - make gfxQuartzNativeDrawing aware of backing scale factor when rendering native widgets. r=smichaud 2012-10-29 09:22:30 +00:00
Randell Jesup
59cd59057f Bug 805279: make sure we pass values for formatted log messages r=derf 2012-10-30 15:31:09 -04:00
Kyle Huey
9a3674d80a 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
b0a5453bf1 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
4144129728 Backout a145ded68994, e0cf397089ec & 1545e91c658e (bug 798491) for bustage on a CLOSED TREE 2012-10-30 17:02:31 +00:00
Kyle Huey
2d587fe010 Bug 798491: Followup bustage fix. 2012-10-30 09:10:08 -07:00
Geoff Brown
2554d5a4dc Bug 781745 - Robocop: wait for list update in testBookmarksTab; r=jmaher 2012-10-30 10:04:40 -06:00
Fabrice Desré
5def479303 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
Rafael Ávila de Espíndola
6df39e5636 Bug 806538 - Update double-conversion and document the version we are at. r=Waldo.
--HG--
extra : rebase_source : 7e7ec80943329342c2305370dd0fe6bde46433a4
2012-10-30 11:48:56 -04:00
Karl Tomlinson
2314cc4954 Bug 707623 - gtk_grab_add(mShell) instead of (mContainer) to avoid double key event dispatch r=roc, feedback=mconley. 2012-10-30 11:49:10 -04:00
Kyle Huey
c52440cc57 Bug 798491: Followup bustage fix. 2012-10-30 08:42:47 -07:00
Patrick Wang
b8c849c3b5 Bug 801540 - Use setupDataCallByType to build data connection. r=dougt 2012-10-23 15:18:11 +08:00
Steven Lee
6a541743ec 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
9860793521 Bug 792290 - Change TimeSetting to TimeZoneSettingObserver. r=jlebar 2012-10-30 11:34:49 -04:00
David Rajchenbach-Teller
ec00829162 Bug 770538 - dirfd, MacOS X version. r=froydnj 2012-10-30 11:34:49 -04:00
Mitesh Pathak
4edd47e296 Bug 770538 - Call Unix C function |dirfd| from JavaScript. r=dteller 2012-10-12 00:19:17 +05:30
Ryan VanderMeulen
07b3932eca Merge m-c to inbound. 2012-10-30 11:34:44 -04:00
Kyle Huey
50b5d3f681 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
Ryan VanderMeulen
498dad2875 Merge the last PGO-green inbound changest to m-c. 2012-10-30 10:48:44 -04:00
Chris AtLee
5732687fc4 Bug 804090: Remove official branding from l10n mozconfigs. r=bhearsum DONTBUILD 2012-10-30 10:11:29 -04:00
Josh Matthews
55785543f7 Bug 804653 - Make destroying a private docshell update the global count of private docshells instead of waiting an indefinite amount of time for the destructor. r=bz 2012-10-30 09:21:52 -04:00
Ryan VanderMeulen
42bf588452 Backout f5de2f1dd9d7 (bug 804653) due to leaks. 2012-10-30 10:13:08 -04:00
Ed Morley
36dbee070f Merge mozilla-central to mozilla-inbound 2012-10-30 10:50:27 +00:00
Dão Gottwald
2adaf14ee9 merge backout 2012-10-30 11:39:17 +01:00
Dão Gottwald
9de9a8d7c0 Backed out changeset 36603a91c06f 2012-10-30 11:38:56 +01:00
Nick Thomas
7bc18da2ee Bug 800364, unagi dep build support, r=catlee,mwu 2012-10-30 15:55:51 +13:00
Nathan Froyd
4c61ef9ec5 Bug 806618 - rewrite PR_NewLogModule calls to not generate static initializers; r=ehsan 2012-10-29 19:32:10 -04:00
Josh Matthews
9593cebee0 Bug 804653 - Make destroying a private docshell update the global count of private docshells instead of waiting an indefinite amount of time for the destructor. r=bz 2012-10-30 09:21:52 -04:00
Ed Morley
33a9c3c7a1 Backout 95752d95cf73, 190933b35023, 6834d09f8f09, 53e3e62c2b3d & f39ba5076599 (bug 797277) for xpcshell failures 2012-10-30 12:15:07 +00:00