Граф коммитов

4934 Коммитов

Автор SHA1 Сообщение Дата
Sebastian Hengst d1d55ab8bc merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 517PGVX0wPB
2017-09-25 11:58:15 +02:00
Nicholas Nethercote 3aa25724fe Bug 1402255 - Change nsIBaseWindow::title from wstring to AString. r=janv.
Because nsAString is nicer to work with than char16_t*. The patch relatedly
changes nsIEmbeddingSiteWindow::title and nsIWindowMediator::updateWindowTitle
as well.

--HG--
extra : rebase_source : 0bf332dec3e09af6c39c676f8795b368768a6046
2017-09-25 13:10:51 +10:00
Nicholas Nethercote 7ea76d4cd7 Bug 1402253 - Remove dead FindItemWithNameAcrossWindows() declaration. r=bz.
--HG--
extra : rebase_source : 6b60684ff147371df89fa6e07047151cc8e3fd51
2017-09-25 10:10:09 +10:00
Samael Wang c4ecad6c4b Bug 1364364 - Part 5.2: Remove browser.sessionhistory.cache_subframes and fix test cases relying on it. r=smaug
browser.sessionhistory.cache_subframes has been disabled for 12yrs. It's not
actually maintained and it leaks content viewers. Using this unreliable feature
in test cases is a bad practice, so remove the pref completely and fix existing
test cases.

MozReview-Commit-ID: 3tQLpsqmmaq

--HG--
extra : rebase_source : 3e5094fed014a5d152e85f21b6de796a9a7abaa9
2017-09-05 16:02:04 +08:00
Kyle Machulis 9b4ac7e03f Bug 1402102 - Remove nsIDOMHTMLObjectElement; r=bz
Removes the nsIDOMHTMLObjectElement XPCOM interface, replacing it with
HTMLObjectElement and FromContent conversion usage.

MozReview-Commit-ID: dmsjSO97uh

--HG--
extra : rebase_source : 9b2c25b8681f754bc34233afccdb6fc5d38f0804
2017-09-22 17:05:12 -07:00
Andrea Marchesini cee83bc968 Bug 1398733 - nsILinkHandler::OnLinkClick and OnLinkClickSync should know the post data inputStream length, r=smaug 2017-09-22 08:11:18 +02:00
Andrea Marchesini 3a42475049 Bug 1398733 - nsIDocShell::internalLoad should know the size of the post data inputStream, r=smaug 2017-09-22 08:10:41 +02:00
Samael Wang f094864c63 Bug 1364364 - Part 4: Add test case. r=smaug
MozReview-Commit-ID: BozQDPdx0MI

--HG--
extra : rebase_source : 773d6b97b6fe45eea7faa734799205b004f05ce6
2017-08-30 17:00:12 +08:00
Samael Wang f3e7ea932b Bug 1364364 - Part 3: Clear dynamic subframe entries in RemoveFromBFCacheSync/Async. r=smaug
MozReview-Commit-ID: F8OTxbWIp5O

--HG--
extra : rebase_source : 96f7574adf34ba19de31f0f8f6816108754d8c05
2017-08-24 15:17:39 +08:00
Samael Wang 6c3a30e37f Bug 1364364 - Part 2: Extract a part of EvictExpiredContentViewerForEntry to a new function FindTransactionForBFCache, and implement RemoveDynEntriesForEntry on top of it. r=smaug
MozReview-Commit-ID: EzK2U0c94v8

--HG--
extra : rebase_source : 472fae2733efae09157b8440c466a8c5ccc6b626
2017-08-24 14:32:23 +08:00
Samael Wang dde797a357 Bug 1364364 - Part 1: Why are we declaring private virtual functions? r=smaug
MozReview-Commit-ID: KQxFTrEO1aq

--HG--
extra : rebase_source : 6b56cae60b7f82f3695d57d0e3f23bd59cc06756
2017-08-24 11:27:11 +08:00
Nicholas Nethercote e3c9cbb969 Bug 1401813 - Rename Null[C]String() as Void[C]String(). r=erahm.
XPCOM's string API doesn't have the notion of a "null string". But it does have
the notion of a "void string" (or "voided string"), and that's what these
functions are returning. So the names should reflect that.

--HG--
extra : rebase_source : 4e3f982e0873877174a08a25413595ff66f7d20e
2017-09-22 14:35:46 +10:00
Kershaw Chang 53cf0a2a8e Bug 1247843 - Part 3: Set request context ID to the http channel created in imgLoader::LoadImage. r=baku
In order to let necko postpone the load of favicon, we have to set request context ID to the http channel that is created to load favicon.
This patch starts with passing a request context ID to nsContentUtils::LoadImage and makes other necessary changes to set the request context ID to the channel.
2017-09-20 20:09:00 -04:00
Ben Kelly bd9be74749 Bug 1336364 P3 Restrict service worker interception for more cookie policies. r=asuth 2017-09-20 09:24:06 -07:00
Ben Kelly 060f0734d0 Bug 1336364 P2 Fix the SW interception 3rd party cookie check to only apply to non-subresource requests and to properly check top window URI. r=smaug 2017-09-20 09:24:06 -07:00
Ben Kelly 5556b33547 Bug 1336364 P1 Refact nsDocShell::ShouldPrepareForIntercept() to short-circuit on subresource instead of non-subresource. r=smaug 2017-09-20 09:24:06 -07:00
Johann Hofmann 4a84c97ab7 Bug 1394462 - Update dnsNotFound error copy and illustration. r=nhnt11
MozReview-Commit-ID: KFp3JhkCDJJ

--HG--
extra : rebase_source : 62449541d1d5362fbc15b18fde9b4964cd153c4c
2017-09-19 21:54:29 +02:00
Wes Kocher 3baa8a7e6e Merge inbound to central, a=merge
MozReview-Commit-ID: 5B5W6AHKcCb
2017-09-19 14:49:11 -07:00
Boris Zbarsky e3883c1255 Bug 1400501. Store a list of ancestor principals on docshell and document. r=mystor
Right now every document in a docshell makes a copy of the list.  In practice,
this list is usually pretty short (limited by depth of iframe nesting), so this
is probably not a problem.  We could add a bit of complexity and have a
refcounted struct that contains the list... I wish we had something as simple
as Rust's Arc that we could use here.

MozReview-Commit-ID: 8jGIlkhp1DU
2017-09-18 21:24:38 -04:00
Erica Wright 5203d976cb Bug 1394460 - Update illustration and copy for error: invalid URL. ui-r=shorlander r=johannh
MozReview-Commit-ID: 8mMUvlOzygj

--HG--
extra : rebase_source : 6b93f7de2bbf55c330c4c25f08555386362dce04
2017-08-29 16:55:31 -04:00
Ryan VanderMeulen 68c8008faf Backed out 7 changesets (bug 1364364) for causing bug 1399182.
Backed out changeset c517d8071dfb (bug 1364364)
Backed out changeset 809036cfd7d9 (bug 1364364)
Backed out changeset c394b06dc30c (bug 1364364)
Backed out changeset c5a737bbfdeb (bug 1364364)
Backed out changeset 21ee8f318a47 (bug 1364364)
Backed out changeset 074475da0f2c (bug 1364364)
Backed out changeset de6c153ec533 (bug 1364364)

--HG--
rename : dom/indexedDB/test/bfcache_page1.html => dom/indexedDB/test/bfcache_iframe1.html
rename : dom/indexedDB/test/bfcache_page2.html => dom/indexedDB/test/bfcache_iframe2.html
rename : dom/media/webspeech/synth/test/file_bfcache_page1.html => dom/media/webspeech/synth/test/file_bfcache_frame.html
rename : dom/media/webspeech/synth/test/file_bfcache_page2.html => dom/media/webspeech/synth/test/file_bfcache_frame2.html
rename : dom/workers/test/WorkerDebugger_frozen_window1.html => dom/workers/test/WorkerDebugger_frozen_iframe1.html
rename : dom/workers/test/WorkerDebugger_frozen_window2.html => dom/workers/test/WorkerDebugger_frozen_iframe2.html
rename : dom/workers/test/suspend_window.html => dom/workers/test/suspend_iframe.html
2017-09-12 13:21:17 -04:00
Samael Wang a175a57a4e Bug 1364364 - Part 5.2: Remove browser.sessionhistory.cache_subframes and fix test cases relying on it. r=smaug
browser.sessionhistory.cache_subframes has been disabled for 12yrs. It's not
actually maintained and it leaks content viewers. Using this unreliable feature
in test cases is a bad practice, so remove the pref completely and fix existing
test cases.

MozReview-Commit-ID: 3tQLpsqmmaq

--HG--
extra : rebase_source : ce6e27c7d422f32dec858712eba5ed8011ee8039
2017-09-05 16:02:04 +08:00
Samael Wang f9a1a3b070 Bug 1364364 - Part 4: Add test case. r=smaug
MozReview-Commit-ID: BozQDPdx0MI

--HG--
extra : rebase_source : 861931ed42bd00cb698e051818d98808d828d65e
2017-08-30 17:00:12 +08:00
Samael Wang 6ecf7b4ce8 Bug 1364364 - Part 3: Clear dynamic subframe entries in RemoveFromBFCacheSync/Async. r=smaug
MozReview-Commit-ID: F8OTxbWIp5O

--HG--
extra : rebase_source : 000ac21b857f53268b6dae54ab76a44f1c7b0e3e
2017-08-24 15:17:39 +08:00
Samael Wang 1cee800a66 Bug 1364364 - Part 2: Extract a part of EvictExpiredContentViewerForEntry to a new function FindTransactionForBFCache, and implement RemoveDynEntriesForEntry on top of it. r=smaug
MozReview-Commit-ID: EzK2U0c94v8

--HG--
extra : rebase_source : 472fae2733efae09157b8440c466a8c5ccc6b626
2017-08-24 14:32:23 +08:00
Samael Wang b3523614fe Bug 1364364 - Part 1: Why are we declaring private virtual functions? r=smaug
MozReview-Commit-ID: KQxFTrEO1aq

--HG--
extra : rebase_source : 6b56cae60b7f82f3695d57d0e3f23bd59cc06756
2017-08-24 11:27:11 +08:00
Christoph Kerschbaumer 7aa9de237b Bug 1397653 - Update tests within docshell/ to comply with new toplevel data: URI navigation policy. r=smaug 2017-09-10 13:22:12 +02:00
Daniel Holbert fb2c2ce4a5 Bug 1398379 part 1: Make callers of GetRootScrollFrameAsScrollableExternal() use its equivalent non-"External" version instead. r=mats
This is a simplification. GetRootScrollFrameAsScrollableExternal() is just a
wrapper around its non-"External" version, GetRootScrollFrameAsScrollable(), so
we might as well just directly call *that* version.  All of the callers here
are inside of libxul, so they don't need the special "External" version.

MozReview-Commit-ID: GGMMDAlJ9xu

--HG--
extra : rebase_source : a3bd19a6300d0ce66f38fb8433db20b4ec03abfb
2017-09-08 16:36:32 -07:00
Masayuki Nakano 4ce89d8f61 Bug 1369072 - part3: nsXBLPrototypeHandler::DispatchXBLCommand() should use controller of visible window r=smaug
With previous change, KeyboardEvent is dispatched even when invisible window
has focus.  However, nsRootWindow::GetControllerForCommand() returns controller
for focused window even when the window is invisible because it uses
nsFocusManager::GetFocusedDescendant() to retrieve focused window.

Perhaps, we can assume that users won't expect to do something with invisible
window when they type some keys.  Then, nsRootWindow::GetControllerForCommand()
should return controller for visible ancestor window if focused window is
invisible.

This patch makes nsFocusManager::GetFocusedDescendant() can return only visible
descendants.  However, it already has a bool argument.  Therefore, it should
have a flag instead of adding new flag.  Most changes of this patch is replacing
its callers.

Then, nsRootWindow::GetControllerForCommand() and nsRootWindow::GetControllers()
should have a bool flag if it should return controller(s) for visible window.
This patch adds a bool flag for it.  Fortunately, the interface isn't scriptable.

Finally, this patch makes nsXBLPrototypeHandler::DispatchXBLCommand() and
EventStateManager::DoContentCommandEvent() retrieve controller for visible
window since they are always handles user input.

MozReview-Commit-ID: GygttTHuKRm

--HG--
extra : rebase_source : 1341273c4606298cb9b890b9312d9f5c8a75d144
2017-09-07 22:54:49 +09:00
Sebastian Hengst 911772b412 Backed out changeset 24edc3618b45 (bug 1364364) for failing mochitest dom/workers/test/test_multi_sharedWorker_lifetimes.html on Android. r=backout 2017-09-07 16:50:38 +02:00
Sebastian Hengst 7a9c465cf3 Backed out changeset 58fe37290a82 (bug 1364364) 2017-09-07 16:49:45 +02:00
Sebastian Hengst a8efe436cc Backed out changeset e07ddefd4a8e (bug 1364364) 2017-09-07 16:49:39 +02:00
Sebastian Hengst 4fc276c795 Backed out changeset 6fc41dc87a44 (bug 1364364) 2017-09-07 16:49:34 +02:00
Sebastian Hengst e32d31055b Backed out changeset 0458fccefb5c (bug 1364364) 2017-09-07 16:49:22 +02:00
Samael Wang 593ae22cd9 Bug 1364364 - Part 5.2: Remove browser.sessionhistory.cache_subframes and fix test cases relying on it. r=smaug
browser.sessionhistory.cache_subframes has been disabled for 12yrs. It's not
actually maintained and it leaks content viewers. Using this unreliable feature
in test cases is a bad practice, so remove the pref completely and fix existing
test cases.

MozReview-Commit-ID: 3tQLpsqmmaq

--HG--
extra : rebase_source : 5dcc252160694a72e30ae41689f173cc0886edd6
2017-09-05 16:02:04 +08:00
Samael Wang 6d9efa467e Bug 1364364 - Part 4: Add test case. r=smaug
MozReview-Commit-ID: BozQDPdx0MI

--HG--
extra : rebase_source : 861931ed42bd00cb698e051818d98808d828d65e
2017-08-30 17:00:12 +08:00
Samael Wang 6717899b75 Bug 1364364 - Part 3: Clear dynamic subframe entries in RemoveFromBFCacheSync/Async. r=smaug
MozReview-Commit-ID: F8OTxbWIp5O

--HG--
extra : rebase_source : 000ac21b857f53268b6dae54ab76a44f1c7b0e3e
2017-08-24 15:17:39 +08:00
Samael Wang f80cfaf15b Bug 1364364 - Part 2: Extract a part of EvictExpiredContentViewerForEntry to a new function FindTransactionForBFCache, and implement RemoveDynEntriesForEntry on top of it. r=smaug
MozReview-Commit-ID: EzK2U0c94v8

--HG--
extra : rebase_source : 472fae2733efae09157b8440c466a8c5ccc6b626
2017-08-24 14:32:23 +08:00
Samael Wang 7d872b8023 Bug 1364364 - Part 1: Why are we declaring private virtual functions? r=smaug
MozReview-Commit-ID: KQxFTrEO1aq

--HG--
extra : rebase_source : 6b56cae60b7f82f3695d57d0e3f23bd59cc06756
2017-08-24 11:27:11 +08:00
Wes Kocher a14d71906d Merge m-c to inbound, a=merge
MozReview-Commit-ID: BJ4WkYrJ9g6
2017-09-06 17:24:48 -07:00
Wes Kocher bf3d38a14c Bug 1396926 - Update BUG_COMPONENT for the new component r=KWierso
MozReview-Commit-ID: 85zVvwDVQvu

--HG--
extra : rebase_source : 777df029c0b5167292cb7b3b1ab087b702a4154d
extra : source : 5c3e698a52dda9a2508ccda8963809d47d882c0a
2017-09-06 00:10:01 -07:00
Christoph Kerschbaumer 1b8c06e845 Bug 1331740: Pass correct context for TYPE_DOCUMENT loads within docshell. r=smaug 2017-09-05 18:01:07 +02:00
Eugen Sawin 6cb533c8c1 Bug 1396065 - [1.3] Add nsILoadURIDelegate to handle load delegation to the window (GeckoView). r=smaug,snorp 2017-09-05 19:08:04 +02:00
Olli Pettay 2e8b602108 Bug 1377131 - Try to trigger collector slices at times which disturb page js less (at least with iframes loaded after the top level page has been loaded), r=mccr8,bz
When triggering an iframe load or starting to parse a document for an iframe, the main thread may often have some time before the new page has been created. Try to trigger CC/GC slice at such point in order to avoid collector later when page is already executing its JS

--HG--
extra : rebase_source : 806df0af1dbaefb1761134eca0bb7c6ade6ac1a9
2017-09-06 18:18:11 +01:00
Christoph Kerschbaumer 9522e28631 Bug 1394554: Block toplevel data: URI navigations after redirect. r=smaug 2017-09-06 09:33:10 +02:00
Christoph Kerschbaumer f8536aa3bd Bug 1395948: Move blocking of toplevel data: URI navigations before opening a new window. r=smaug 2017-09-05 12:56:43 +02:00
Sebastian Hengst 50778e172c Backed out changeset 4270e8daf3cf (bug 1395948) for build bustage at docshell/base/nsDocShellLoadTypes.h:22. r=backout on a CLOSED TREE 2017-09-05 12:09:22 +02:00
Christoph Kerschbaumer 299370b2ab Bug 1395948: Move blocking of toplevel data: URI navigations before opening a new window. r=smaug 2017-09-05 08:21:55 +02:00
Wes Kocher d03d9bee49 Merge m-c to inbound, a=merge
MozReview-Commit-ID: BJmeuDcuHke
2017-08-28 17:45:07 -07:00
Eric Rahm 9398bd6f43 Bug 1393235 - Fix improper usages of string functions. r=njn
This fixes usages of `Find`, `RFind` and the equality operator that kind of
work right now but will break with the proper type checking of a templatized
version of the string classes.

For `Find` and `RFind` it appears that `nsCString::(R)Find("foo", 0)` calls
were being coerced to the `Find(char*, bool, int, int)` versions. The intent was
probably to just start searching from position zero.

For the equality operator, the type of nullptr is nullptr_t rather than
char(16_t)* so we'd need to add an operator overload that takes nullptr_t. In
this case just using `IsVoid` is probably more appropriate.

--HG--
extra : rebase_source : 50f78519084012ca669da0a211c489520c11d6b6
2017-08-22 19:30:46 -07:00