Commit Graph

45964 Commits

Author SHA1 Message Date
Mike Conley
7f712307f1 Bug 1349787 - Make sure browser_tabCloseProbes.js waits for tabs to be fully open before closing them. r=mossop
The tests in browser_tabCloseProbes.js were closing tabs without waiting for them
to be fully open, and when they're not fully open, closing occurs without animation.

This was intermittently breaking the test for the probe that checks that we add
a count to the right histogram when closing with animation.

MozReview-Commit-ID: 5Qz7mZvtbkB

--HG--
extra : rebase_source : 0d794faebc8e751bfcd15476ae849018dfb1f6c1
2017-04-07 10:45:56 -04:00
Sebastian Hengst
6a5fe3bae0 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: IkoXCAwjjKu
2017-04-08 22:49:04 +02:00
Dão Gottwald
c951251cca Bug 1354782 - Re-use pinned tab width to avoid layout flush and invalidation loop in _positionPinnedTabs. r=florian
MozReview-Commit-ID: 98eGdDUXLm2

--HG--
extra : rebase_source : d454599f50aabbefd6144d7051cb293025e7e1ae
2017-04-08 09:17:03 +02:00
Dão Gottwald
cac52d46df Bug 1354781 - Filter scrollbox overflow and underflow events more accurately. r=florian
MozReview-Commit-ID: 6GJjO89q2s2

--HG--
extra : rebase_source : 3446a64267234eb36cc9c358c4a88c5b30e6fe62
2017-04-08 09:02:40 +02:00
kernp25
656efd183a Bug 1339416 - contextMenus.OnClickData should have the frameId. r=mixedpuppy 2017-04-04 12:00:16 +02:00
ffxbld
c288e8360e No bug, Automated blocklist update from host bld-linux64-spot-307 - a=blocklist-update 2017-04-07 09:18:33 -07:00
Carsten "Tomcat" Book
e9a1efbf89 Backed out changeset d4b635aa0c2e (bug 893505) for eslint failure
--HG--
extra : rebase_source : 4d3d223400907e2ed63384a6cf457a0b41d2624e
2017-04-07 15:53:19 +02:00
Carsten "Tomcat" Book
3a762886de Merge mozilla-central to mozilla-inbound 2017-04-07 15:33:03 +02:00
Tim Taubert
4da3a7f72e Bug 912717 - Tiny follow-up to fix ESLint bustage caused by a test file r=bustage 2017-04-07 15:09:46 +02:00
Tim Taubert
afed0705da Bug 912717 - Don't let SessionCookie collection jank the chrome process r=mikedeboer
Current state:
--------------

Session cookies - those that have no Expires or Max-Age directive, sent as a
header or set via document.cookie - are meant to live for the duration of a
session. SessionStore is a feature that aims to enable users to resume where
they left off last time they closed the browser. So SessionStore will persist
and restore those cookies that the cookie service only keeps in memory.

SessionCookies.jsm registers observers with the cookie service and is thus
notified of cookie additions, deletions, and modifications as-it-happens. It
has its own internal storage that we could easily serialize and write to disk
together with the rest of the session data.

The hangs shown in various profiles stem from the fact that since the inception
of SessionStore as an add-on around Firefox 2, cookies have been tacked to
windows. This means that whenever we collect session data for a specific
window (i.e. tabs, their shistory entries, etc.) we have to iterate *all* its
tabs and *all* their shistory entries to enumerate the hosts contained in that
window. We will then ask the internal cookie store in SessionCookies.jsm to
give us all cookies for these hosts and then store them together with the
window. This way we filter out cookies from tabs/hosts that have no active
documents (BFCache counts as "active").

Changes in this patch:
----------------------

Instead of trying to only retain cookies from “active” documents, i.e. those
contained somewhere in the shistory of a tab, we now simply save all session
cookies of the session. This will surely reduce user complaints about us
"logging them out" too fast because we discard cookies from tabs they
open only once in a while, although those definitely belong to the
browsing session.

Instead of storing the cookies per each window we now have a top-level
"cookies" attribute that is a list of cookies. These get restored whenever we
restore a session. Legacy window.cookies attributes will still be restored to
support older session formats for a while.

The DEFER_SESSION startup mode is active by default when a user choses not to
restore their whole session automatically but they still have one or more
pinned tabs. These pinned tabs are restored automatically and split off of the
rest of the session. The rest can be restored manually if the user chooses to
do so.

In the past, we here extracted and restored only the pinned tabs' cookies from
the last session. This filtering also works against how some sites (e.g.
Google) use session cookies. It also means we have to iterate all windows,
tabs, shistory entries, and cookies to find the data we want.

This patch changes our past behavior so that we now restore only pinned tabs
but all session cookies. So we don't have to filter, and pages will break less
likely. We hereby assume that a user having pinned tabs wants to continue their
browsing session partially, although without Firefox remembering the exact list
of tabs. Or they simply like starting off of a clean slate.
2017-04-07 14:41:38 +02:00
Johann Hofmann
9cd3d14848 Bug 1337772 - Part 2 - Explicitly trigger a mousedown event before opening the context menu in browser_context_menu.js. r=MattN
MozReview-Commit-ID: ADTskzMoK9t

--HG--
extra : rebase_source : 6133986c9e3c470f6e2fb3c5a172a82c0f07fd8a
2017-04-06 11:00:11 +02:00
Phil Ringnalda
cb5344f715 Backed out changeset 228a6487d0c1 (bug 1350781) for eslint failures
CLOSED TREE
2017-04-06 21:16:03 -07:00
Ehsan Akhgari
3ee2f84634 Bug 1350781 - Avoid recomputing gBrowserThumbnails._topSiteURLs for 1 minute after computing it to speed up session restore; r=markh 2017-04-06 23:26:08 -04:00
Doug Thayer
765003669c Bug 893505 - Simplify the application update UI. r=Gijs, r=enndeakin, r=rstrong, data-r=bsmedberg
There are quite a few changes in here. At a high level, all we're trying to do is to replace the old update popup with a less intrusive and more modern doorhanger (set of doorhangers) for various update success and failure conditions.
2017-04-06 17:20:36 -07:00
Sebastian Hengst
3f2001d7b9 Backed out 2 changesets (bug 893505) for failing eslint. r=backout
Backed out changeset 5880d471d75c (bug 893505)
Backed out changeset 3246d7cb2729 (bug 893505)
2017-04-07 01:04:54 +02:00
Robert Strong
8f137a0e86 Followup eslint fix for Bug 893505. r=me 2017-04-06 15:50:20 -07:00
Wes Kocher
7da1f4c235 Merge m-c to inbound a=merge 2017-04-06 15:30:43 -07:00
Doug Thayer
06dfd98d7d Bug 893505 - Simplify the application update UI. r=Gijs, r=enndeakin, r=rstrong, data-r=bsmedberg
There are quite a few changes in here. At a high level, all we're trying to do is to replace the old update popup with a less intrusive and more modern doorhanger (set of doorhangers) for various update success and failure conditions.
2017-04-06 15:09:16 -07:00
Wes Kocher
0c3144c6f6 Merge inbound to central, a=merge 2017-04-06 15:01:34 -07:00
Ryan VanderMeulen
91cbca3e88 Backed out changeset 5de79bf87514 (bug 1354081) 2017-04-06 09:50:40 -04:00
Ryan VanderMeulen
2ad48ad061 Bug 1354081 - Update pdf.js to version 1.7.418. r=bdahl 2017-04-06 15:32:15 +02:00
Sebastian Hengst
1074351606 Backed out changeset 3fd845171474 (bug 1354081) for rooting hazard. r=backout 2017-04-06 15:24:10 +02:00
Ryan VanderMeulen
f1e573b0c7 Bug 1354081 - Update pdf.js to version 1.7.418. r=bdahl 2017-04-06 08:43:36 -04:00
Joel Maher
16ec3a15a0 Bug 1341980 - Intermittent browser/components/sessionstore/test/browser_819510_perwindowpb.js - disable on osx. r=gbrown
MozReview-Commit-ID: J3IL8cHAmau
2017-04-06 07:29:53 -04:00
Carsten "Tomcat" Book
207b516e89 merge mozilla-inbound to mozilla-central a=merge 2017-04-06 12:50:50 +02:00
Mark Banner
585bf398ea Bug 1342459 - Enable no-undef on browser/base, and clean up unnecessary no-undef references. r=mossop
MozReview-Commit-ID: KVrAnAjMD1E

--HG--
extra : rebase_source : 7a9651c055e2c6e959d42d08e5be9de2e2265346
2017-04-03 11:46:56 +01:00
Mark Banner
92c422a2d6 Bug 1342459 - Add a rule to automatically detect ContentTask.spawn and inject the relevant globals. r=mossop
This reduces the amount of places where we need to specify the mozilla/frame-script environment. It does have
the side effect of allowing those globals in the whole file, but that is what specifying the environment would
do, and this is also for mochitest test files only.

MozReview-Commit-ID: 1LLFbn6fFJR

--HG--
extra : rebase_source : 82a6934d90bbbbd25f91b7b06bf4f9354e38865a
2017-04-05 10:00:25 +01:00
Mark Banner
427e3b23dc Bug 1342459 - Fix various no-undef issues in browser/base. r=mossop
MozReview-Commit-ID: CRYxu7copKb

--HG--
extra : rebase_source : bc176c5e6890ffc6a4e26cb9bc9d441d9486ce7b
2017-04-04 13:42:33 +01:00
Phil Ringnalda
3654f8f62b Backed out changeset 0a3044dc01d2 (bug 1354342) for eslint bustage 2017-04-06 20:26:36 -07:00
Andy McKay
da7650dff2 bug 1354342 allow a relativeUrl for homepage r=mixedpuppy
MozReview-Commit-ID: 86V6vFjO66C

--HG--
extra : rebase_source : b6017ed9a4f50008d20fc6c5684a70a4a740aef7
2017-04-06 17:12:57 -07:00
Masayuki Nakano
14608ddcac Bug 1353699 <menulist> for default font should use onsyncfrompreference r=jaws
When font.name.*.* is set to false, "value" attribute of <preference> is removed.  Then, <preference>.setElementValue() with an element which doesn't have onsyncfrompreference tries to set null.  Then, <menulist> selects nothing.

In such case, <menulist> should select the item whose value is "". If there is onsyncfrompreference attribute and it returns empty string, <preference>.setElementValue()  works as expected.

MozReview-Commit-ID: 54KIe3JxwyA

--HG--
extra : rebase_source : 8b94ff9a790cb5f771901cbfea72240d6d8df554
2017-04-06 10:04:04 +09:00
Ting-Yu Chou
19c3b373bc Bug 1333003 part 8 - Include ASan runtime dll and LLVM symbolizer in jsshell package. r=glandium
Update also the similar logic in browser/installer/package-manifest.in. The
reason I added the symbolizer is because it'd be useful when someone conduct
jsshell testing/fuzzing.

MozReview-Commit-ID: J9IqFWsnskS

--HG--
extra : rebase_source : db461065f778fc025576b1fc7612642181d94dcd
2017-03-24 16:58:27 +08:00
Doug Thayer
f463069928 Bug 893505 - Simplify the application update UI r=chmanchester,enndeakin+6102,Gijs,rstrong
There's quite a few changes in here. At a high level, all we're trying to do
is to replace the old update popup with a less intrusive and more modern
doorhanger (set of doorhangers) for various update failure conditions.

MozReview-Commit-ID: 24sESMTosNX

--HG--
extra : rebase_source : ee0c1e00fe3f99e16388f0de17274ff97a3b9fcf
2017-03-21 13:50:09 -07:00
Blake Kaplan
971ced558b Bug 1353910 - Fix intermittents in webrtc tests while removing code duplication. r=florian
MozReview-Commit-ID: 83XSsnQ0bBY

--HG--
extra : rebase_source : f476470a9d78b1d820a1aa23263e5b289c1e77fa
2017-04-06 11:41:02 -07:00
Andrew McCreight
757620ca9d Bug 1354328 - Lazily load the inline spell checker. r=Felipe
It isn't needed until we create a context menu.

MozReview-Commit-ID: 4kCfq9PzVPV

--HG--
extra : rebase_source : 51907d6aa28d5bd2a9fb8a0acb28cac719888292
2017-04-06 15:46:09 -07:00
Andrew McCreight
78ab774d55 Bug 1352522, part 3 - Remove the unused listener for webrtc:StartBrowserSharing. r=florian
MozReview-Commit-ID: 780LNGx1p15

--HG--
extra : rebase_source : 89d346d0f14ace7f80d842ee780e121c223788f9
2017-04-06 14:39:02 -07:00
Andrew McCreight
f4badf6dde Bug 1352522, part 2 - Use a shim for ContentWebRTC message listeners. r=florian
This avoids importing ContentWebRTC.jsm unless webrtc is actually
being used, which reduces memory usage.

MozReview-Commit-ID: GlMo1WIZEFD

--HG--
extra : rebase_source : 25476c825bef1948f22d0e6dae67dc01ab41f886
2017-03-31 11:19:27 -07:00
Andrew McCreight
a4e17048dd Bug 1352522, part 1 - Add ContentWebRTC observers in ContentObservers.js. r=florian
This avoids importing ContentWebRTC.jsm just to register observers
that may never observe anything. Avoiding importing .jsms reduces
memory usage.

ContentObserver.js gets loaded once per content process, so I think
the ._initialized stuff is not needed in the process script.

MozReview-Commit-ID: 5r9L3bfFS0U

--HG--
extra : rebase_source : 0fe6e14c2963efccf21bd1606885098902fed598
2017-04-07 08:48:58 -07:00
Phil Ringnalda
7acd88c933 Backed out changeset 3d1ad05d7b99 (bug 1353104) for Android bustage in test_chrome_ext_hybrid_addons.html 2017-04-07 13:39:54 -07:00
Phil Ringnalda
d40c8778b0 Backed out changeset 389893c52830 (bug 1349787) for timeouts in browser_tabCloseProbes.js 2017-04-07 13:36:11 -07:00
Sebastian Hengst
548852b3a4 merge mozilla-central to autoland. r=merge a=merge 2017-04-07 22:16:26 +02:00
Gijs Kruitbosch
035ae179d1 Bug 1353104 - use HiddenFrame.jsm to create frames for add-on sdk add-ons, r=kmag
MozReview-Commit-ID: CfR9xMPVr9H

--HG--
extra : rebase_source : 4dda587bc7ed850594754cab9ea0a02f0114d4d0
2017-04-03 21:25:16 +01:00
Mike Conley
b1321366a3 Bug 1349787 - Make sure browser_tabCloseProbes.js waits for tabs to be fully open before closing them. r=mossop
The tests in browser_tabCloseProbes.js were closing tabs without waiting for them
to be fully open, and when they're not fully open, closing occurs without animation.

This was intermittently breaking the test for the probe that checks that we add
a count to the right histogram when closing with animation.

MozReview-Commit-ID: 5Qz7mZvtbkB

--HG--
extra : rebase_source : 3533f2c43091829723463f8943cf43e722bbd70c
2017-04-07 10:45:56 -04:00
Mike Shal
290404b519 Bug 1352982 - clobber OSX .app directory before rsyncing files in; r=ted
The .app directory for OSX builds is created piecemeal by several
commands in browser/app/Makefile.in, however it isn't normally cleaned
by a build. If a file is removed from the tree, it's possible that an
incremental build will still have a copy in the .app dir and get
packaged up in the final dmg. It's simple to just rm -rf this directory
beforehand.

MozReview-Commit-ID: 2Zr97o9dTn8

--HG--
extra : rebase_source : 2c9995991c58ee9724464514ec8285c31ab8d062
2017-04-05 15:25:30 -04:00
Andy McKay
9d4cc67f87 bug 1354342 allow a relativeUrl for homepage r=mixedpuppy
MozReview-Commit-ID: 86V6vFjO66C

--HG--
extra : rebase_source : e692822b0b60ac553b63671406c8f6ffd7a06714
2017-04-07 09:14:08 -07:00
Ryan VanderMeulen
6ca4bae63d Bug 1354081 - Update pdf.js to version 1.8.173. r=bdahl
--HG--
extra : amend_source : f9c411dd1c63a7308f391d8d4ff90239c9408a03
2017-04-07 13:32:57 -04:00
Andrew McCreight
8aedac1cad Bug 1352218, part 2 - Avoid PdfJs.enabled call. r=Gijs
This avoids a sync IPC message from child to parent.

Changes entirely from:
  https://github.com/mozilla/pdf.js/pull/8218

MozReview-Commit-ID: 3Egayok3DBZ

--HG--
extra : rebase_source : e02829e2508bb75caf44c0a3c86b06fac3bf167f
2017-03-30 14:52:09 -07:00
Andrew McCreight
fec8ba650f Bug 1352218, part 1 - Split pdf.js boot strap file. r=Gijs
One is always run, the other is only run when PdfJs.enabled is true in
the parent process. This refactoring enables the next patch.

The extensions changes are from:
  https://github.com/mozilla/pdf.js/pull/8218

MozReview-Commit-ID: HwQ3yk8Jck4

--HG--
extra : rebase_source : 94f1516989685176a95e235f2d3ef8658adaf8b7
2017-03-30 14:43:04 -07:00
k88hudson
6fcdd4aa89 Bug 1350409 - Add Store, Actions, and Reducers to Activity Stream system add-on r=ursula
MozReview-Commit-ID: 5lCFGBCtH2e

--HG--
extra : rebase_source : 01e7ae01e1dd03de9fbe84fa1fbc7797323ed475
2017-04-04 12:57:53 -04:00
Rex Lee
2a6a2e2288 Bug 1347504 - [jsplugins][UI] Support opening external links in PDF files. r=evelyn,lochang, f=lchang, f=lochang
MozReview-Commit-ID: CIrC4ise4Zs

Hotkeys works like normal DOM links, except "Open in background tab" (which corresponds to ctrl/command + click)
open tabs in foreground due to limitation from outside chrome process.

--HG--
extra : rebase_source : 6a3b43c518e23c61fe3c48cc4317b813a39acc7a
2017-04-06 16:14:23 +08:00