Commit Graph

104000 Commits

Author SHA1 Message Date
Mike Hommey
084f0b33bd Bug 787180 - Switch between FINAL_TARGET and DIST/bin in various places under browser/. r=khuey 2012-09-05 20:43:23 +02:00
Bobby Holley
07838d4445 Bug 771354 - Don't special-case principal assignment for chrome windows in nsGlobalWindow.cpp. r=bz 2012-09-05 11:32:07 -07:00
Bobby Holley
f8b9fcd4e5 Bug 774607 - Remove JS_{Is,Make}SystemObject API. r=luke 2012-09-05 11:32:07 -07:00
Bobby Holley
c466facab9 Bug 774607 - Remove use of JS_{Is,Make}SystemObject from Gecko. r=bz
We currently set this for system globals and anything whose parent
chain leads to a system global. Maybe this was relevant before, but
with CPG this is just equivalent to asking whether the object is in
a system compartment. And the only place where we _check_ this bit
is immediately after checking for a system compartment, in
WrapperFactory. So AFAICT this can go away entirely.
2012-09-05 11:32:07 -07:00
Bobby Holley
fbc6e78256 Bug 774633 - Fix TestAppShellSteadyState to load a system principal URI so that we don't discard the inner window. r=bent 2012-09-05 11:32:07 -07:00
Bobby Holley
3323a3c0e1 Bug 774633 - Assert against switching origins on a compartment. r=jst 2012-09-05 11:32:07 -07:00
Bobby Holley
99f6405182 Bug 774633 - Remove "is chrome window" condition for inner window reuse. r=jst
WouldReuseInnerWindow also returns true if the new window is same-origin with
the old one about:blank document.

This condition exists in order to handle some sloppiness with respect to the
principals on initial about:blank documents. Chrome callers sometimes parent
chrome windows (with XUL document) to content windows. But this parenting causes
us to push the cx of the content window during window creation, meaning that
the subsequent load of chrome://foo.xul blows away the old inner window and any
expandos on it. We can handle this case more precisely by skipping the cx push
for type="chrome" windows.

Furthermore, this was also necessary to prevent the inner window from being
blown away in the call to SetOpenerScriptPrincipal once nsWindowWatcher gets
the window back from the window creator (and after it's already told consumers
about the window via "domwindowcreated"). But we fixed this nastiness in the
previous patches.

So we can remove this case. By doing so, we can prevent inner windows from ever
changing origins, which is very important for compartment security invariants.
2012-09-05 11:32:06 -07:00
Bobby Holley
06c95f674b Bug 774633 - Move the call to SetInitialPrincipalToSubject into nsAppShellService::RegisterTopLevelWindow. r=jst
This means that we get the correct principal on the window before sending notifying
any consumers about the window's creation.
2012-09-05 11:32:06 -07:00
Bobby Holley
05e10f96c1 Bug 774633 - Fold SetOpenerScriptPrincipal into SetInitialPrincipalToSubject, and make it indempotent and callable without an existing document. r=jst
There's no reason it has to fail if there's no mDoc, since any document is promptly
blown away with the new about:blank document.

The indempotence is important because we want to be able to call this method
unconditionally in OpenJSWindowInternal (since we may not have gone through
RegisterTopLevelWindow) without worrying about whether we've called it already.
2012-09-05 11:32:06 -07:00
Bobby Holley
517b3a2ec0 Bug 774633 - Remove dead mOpenerScriptPrincipal. r=jst
This value is initialized to null and never set, so we can get rid of it.
2012-09-05 11:32:06 -07:00
Bobby Holley
e0da4110dc Bug 774633 - Wean SetInitialPrincipalToSubject off some parameters and clean it up. r=jst
We can remove the fallback to the principal of aParent because we already push the
cx for aParent (callerContextGuard) whenever we're concerned about using its principal.
2012-09-05 11:32:06 -07:00
Bobby Holley
3d944bcab3 Bug 774633 - Factor nsWindowWatcher call to SetOpenerScriptPrincipal into a method on nsGlobalWindow. r=jst
This doesn't change any functionality in the code. Note that the name is currently
a bit of a misnomer, but we change that in the next patch when we rip out the
arguments.
2012-09-05 11:32:06 -07:00
Boris Zbarsky
437a27a6d1 Bug 778044. Add a way to pref off Paris binding constructor objects. r=peterv 2012-09-05 13:37:28 -04:00
Andrea Marchesini
60ef34b89f Bug 788181. Fix instanceof for XHR and XHR.upload in workers. r=peterv 2012-09-05 13:37:27 -04:00
Boris Zbarsky
7459711346 Bug 788149. Don't use jsids in worker code in bindings, because those are runtime-specific and workers can run on multiple runtimes. r=peterv 2012-09-05 13:37:27 -04:00
Chris Jones
d1b2c1e8ac Bug 788396: Centralize usage of ipc::LoggingEnabled() and ensure it goes to logcat on bionic OSes. r=bent 2012-09-05 10:11:05 -07:00
Myk Melez
5c26a10f81 bug 785545 - unrefactor mozApps tests for maximum readability/reliability; r=fabrice 2012-09-05 10:08:54 -07:00
Chris Jones
7ee7b46bd3 Bug 783066: Paint the backgrounds of remote subdocuments like we paint those of same-process subdocuments. r=roc 2012-09-05 09:23:45 -07:00
Brad Lassey
5acd657e06 bug 770289 - JNIEnv->NewString can throw and needs to be caught before another JNI call, handle NewStringUTF r=kats 2012-09-05 00:23:02 -04:00
Abhishek Potnis
91a7ba9fed Bug 777925 : Removes HTML editor logging support; r=ehsan 2012-09-04 21:18:59 +05:30
Dão Gottwald
89045aecf0 Bug 787275 - Location bar tooltip shows shortened URL when full location bar address is not visible. r=Unfocused
--HG--
extra : rebase_source : 495475dd10208f2eca49bb327faac131d44a103c
2012-09-05 17:43:19 +02:00
Ehsan Akhgari
17dd908a05 Bug 787743 - Set the cached private browsing flag on HttpBaseChannel::SetLoadGroup as well; r=jdm 2012-09-05 11:41:29 -04:00
Andrew Quartey
99670eb305 Bug 788397 - Remove extra ';' from nsPagePrintTimer::Run r=Ms2ger 2012-09-05 10:44:24 -04:00
Mike Hommey
a120f09fa5 Bug 787443 - CmdCmd.jsm and CmdCookie.jsm include Console.jsm with the wrong url. r=jwalker 2012-09-05 16:42:10 +02:00
Mike Hommey
a97b66e6ea Bug 782890 - browser.js includes SafeBrowsing.jsm and BrowserNewTabPreloader.jsm with the wrong url. r=gavin 2012-09-05 16:42:10 +02:00
Mike Hommey
d4d87778e3 Bug 784262 - Use generic install/copy rule in rules.mk. r=ted 2012-08-29 08:55:57 +02:00
Mike Hommey
160d5d1f93 Bug 785265 - Explicitely use sh -c instead of letting subprocess.Popen do it. r=ted 2012-09-05 16:42:09 +02:00
Mike Hommey
e3c782edaa Bug 785269 - Replace a few DEPTH and relativesrcdir. r=ted,r=callek 2012-09-05 16:42:09 +02:00
Justin Lebar
6aeb00a617 Bug 787378 - Part 2: Tests for mozbrowserfirstpaint event. 2012-09-05 10:34:06 -04:00
Justin Lebar
50e0732239 Bug 787378 - Part 1: Fire a "firstpaint" event in iframe mozbrowser. 2012-09-05 10:34:06 -04:00
Geoff Brown
9e85ee7f38 Bug 783011 - Change order of command line args for android xpcshell tests; r=jmaher 2012-09-05 07:42:02 -06:00
Boris Zbarsky
f17771a580 Bug 778150 part 3. Default attributes to infallible. Allow annotation of fallible attributes in WebIDL. r=peterv
The valid annotations are [Throws], [GetterThrows], and [SetterThrows], which can all either take no value or
be set to MainThread or Workers if the throwing behavior is only happening on main thread or in workers
2012-09-05 09:21:33 -04:00
Boris Zbarsky
a17389cd6f Bug 778150 part 2. Default methods to infallible. Allow annotation of fallible methods in WebIDL using [Throws]. r=peterv
[Throws] can either take no value, or can take MainThread or Workers if the
throwing behavior is only happening on main thread or in workers.
2012-09-05 09:21:33 -04:00
Boris Zbarsky
2b85439c92 Bug 778150 part 1. Remove the vestigial ability to specify infallibility stuff in the conf file. r=peterv 2012-09-05 09:21:33 -04:00
Patrick McManus
3b28d4a410 bug 499203 null deref in nsprotocolproxyservice::getprotocolinfo with null nsiuri r=biesi 2012-09-05 08:44:27 -04:00
Mounir Lamouri
45c66f71d7 Bug 787102 - (2/2) - Dispatch the change event for textarea elements even if .value is set while focused. r=bz 2012-09-05 13:40:13 +01:00
Mounir Lamouri
22a7f92553 Bug 787102 - (1/2) - Dispatch the change event for input elements even if .value is set while focused. r=bz 2012-09-05 13:39:33 +01:00
Patrick McManus
7217a5ff06 bug 570283 - dont send http proxy-connection r=jduell 2012-09-05 08:38:01 -04:00
Patrick McManus
5bf91775ff bug 701562 ssl proxy not part of connection info hash r=duell 2012-09-05 08:34:43 -04:00
Patrick McManus
24f5222615 bug 652928 add socks proxy host:port information to connection info key r=jduell 2012-09-05 08:32:28 -04:00
Patrick McManus
6fcd24947d bug 648603 - update connection limits; especially for proxies r=jduell 2012-09-05 08:27:31 -04:00
Alexander Surkov
bf441d16d0 Bug 761102 - focus may be missed when ARIA active-descendant is changed on active composite widget, r=tbsaunde, f=davidb 2012-09-05 20:03:39 +09:00
Robert O'Callahan
f716b5f69e Bug 787089. Rip out mUpdatePluginGeometryForFrame optimization. It's not known to be a significant win, and creates problems when prescontext ancestor chains are broken; the complexity probably isn't worthwhile. Also, soon (or now) we can rework plugin bounds computation to be use the display list built for rendering. r=matspal
--HG--
extra : rebase_source : 0394fcb5111b8b96b5f8ce48e20d6e5503f9ccf7
2012-09-05 22:30:10 +12:00
Robert O'Callahan
98b856dbc0 Bug 785588. Perform asynchronous scroll operations before firing requestAnimationFrame callbacks. r=tnikkel
--HG--
extra : rebase_source : 3c1439773981db4ea1b957db4351f50899229130
2012-09-05 22:29:15 +12:00
Robert O'Callahan
d1f472b4ee Bug 787623. Call MarkContextClean immediately if we're not going to receive a DidTransactionCallback. r=joedrew
--HG--
extra : rebase_source : 459c517fba4b6c2e6e6d95200aebec9369c0edb6
2012-09-05 22:28:23 +12:00
Shih-Chiang Chien
8f39d91f36 Bug 784590 - No onchange event after seleted options by value selector(mozbrowser <select>), r=fabrice 2012-09-05 14:10:55 +08:00
Tim Taubert
0ec3169d22 Bug 776928 - When doing lazy tab restoration, set the <browser>s in question to display:none until restored. r=dao 2012-09-05 07:52:31 +02:00
Shian-Yow Wu
c9bdf6614b Bug 787406 - B2G Network Manager: Allow only one default route at the same time. r=philikon. 2012-09-05 13:29:48 +08:00
Chris Jones
d0c5ba562a Bug 780074: Change the fps counter to provide better estimates of instantaneous fps. r=jrmuizel 2012-09-04 22:17:13 -07:00
Brad Lassey
a4736dd52a bug 761503 - return a bool from PumpMessageLoop to indicate if work was performed r=snorp 2012-06-05 01:14:12 -04:00