Commit graph

1710 commits

Author SHA1 Message Date
Jared Wein
5dd9ac0f8c Bug 1218937 - Introduce a new option for switchToTabHavingURI's ignoreFragment to not overwrite the fragment portion. Use this new argument to switch to the preferences without changing the currently opened pane. r=mattn
MozReview-Commit-ID: JZmAsf8k5Qp
2016-08-31 12:53:23 -04:00
Sebastian Hengst
ee40c4ef0a Backed out changeset 865501b808e3 (bug 1287330) for frequent timeouts in browser_async_remove_tab.js with e10s on Linux debug. r=backout 2016-08-21 16:45:16 +02:00
Allasso Travesser
a436068793 Bug 1287330 - Insert tabs' linkedBrowser lazily into the document. r=dao 2016-08-19 17:46:04 +02:00
Wes Kocher
07f8858bf6 Merge inbound to central, a=merge 2016-08-17 16:38:41 -07:00
Dão Gottwald
7112aaf595 Bug 1292542 - Remove unused 'window' variable in SessionStoreInternal._resetLocalTabRestoringState. r=dao
--HG--
extra : rebase_source : 5d55d995ebab845803ece6d3ee03b22c0efc02cb
2016-08-16 20:36:31 +02:00
Wes Kocher
2253eb9510 Merge m-c to inbound, a=merge 2016-08-15 14:53:49 -07:00
Mike Conley
2a5c775eea Bug 1290280 - Make bug_423132.js more resilient to the initial browser being remote by default. r=mikedeboer
The problem with this test was that it was actually relying on the old
broken behaviour where the initial browser of the new window it opens
would be flipped from remote back to non-remote before loading its
contents and flipping remote again. Because it now starts remote
(and stays there instead of doing all of the extra work), the
test was more likely to fall into the trap that I described in
https://groups.google.com/forum/#!searchin/mozilla.dev.platform/1261842%7Csort:relevance/mozilla.dev.platform/gthFqog3J-M/Ypx-SNhEQgAJ
where the promiseBrowserLoaded was firing for the wrong page
load, which meant that the cookie hadn't had a chance to be
set yet.

I've converted the test to use the properly instrumented
BrowserTestUtils functions which wait for the window to be
properly ready, and it appears to pass on try with multiple
retriggers.

MozReview-Commit-ID: BtQRx7og52A

--HG--
extra : rebase_source : 83a9c36533505167198b62ddc189c6fa62cec8cd
2016-08-13 18:46:38 -04:00
Mike Conley
e5d369da14 Bug 1290280 - Add tests for window state restoration remoteness flips. r=mikedeboer
MozReview-Commit-ID: ARtmju65xR9

--HG--
extra : rebase_source : 166dbace15bf8215d0cf0155b8e167a69c91ac5b
2016-08-10 15:46:03 -04:00
Mike Conley
bb89bb5f47 Bug 1290280 - Improve the logic for flipping the remoteness of the initial browser back to non-remote. r=mikedeboer
The code that checks to see whether or not we should flip the remoteness of a browser
before loading the session state into it wasn't accounting for the fact that oftentimes,
restoreImmediately isn't included, so it's undefined, which coerces to "false-y".

This caused us to very quickly destroy a TabParent, very soon after creating it. In
some cases, the IPC layer seems to not like that, and throws an OnChannelError,
which causes the TabParent ActorDestroy method to be called with an abnormal
shutdown reason, which causes the tab crash observer to fire, which bubbles the
tab crash event.

We should probably make the IPC layer more resilient to this sort of thing, but
we should also probably not flip remoteness when we really don't need to.

Now instead, when restoring a tab, we detect whether or not it's going to
be restored automatically in the near future. If it's not going to be
restored automatically, and the browser is remote, we flip its remoteness -
otherwise we leave it alone.

MozReview-Commit-ID: 5AmPHvzDZlX

--HG--
extra : rebase_source : 0bfeb2cdb0c5849a65bc9a0855c6209d693e5ff4
2016-08-09 13:32:21 -04:00
Sebastian Hengst
0d0d1992db Backed out changeset 1e57110913fc (bug 1290280) for timeouts of added test and remoteness issues e.g. in cookie tests like browser_423132.js. r=backout 2016-08-13 15:27:48 +02:00
Sebastian Hengst
5073e10f9a Backed out changeset 2b50b05f8929 (bug 1290280) 2016-08-13 15:26:39 +02:00
Mike Conley
c40ae43473 Bug 1290280 - Add tests for window state restoration remoteness flips. r=mikedeboer
MozReview-Commit-ID: ARtmju65xR9

--HG--
extra : rebase_source : 8a1466e01be4f1af69f2efe5611c59c4f4649501
2016-08-10 15:46:03 -04:00
Mike Conley
f5ae3a058b Bug 1290280 - Improve the logic for flipping the remoteness of the initial browser back to non-remote. r=mikedeboer
The code that checks to see whether or not we should flip the remoteness of a browser
before loading the session state into it wasn't accounting for the fact that oftentimes,
restoreImmediately isn't included, so it's undefined, which coerces to "false-y".

This caused us to very quickly destroy a TabParent, very soon after creating it. In
some cases, the IPC layer seems to not like that, and throws an OnChannelError,
which causes the TabParent ActorDestroy method to be called with an abnormal
shutdown reason, which causes the tab crash observer to fire, which bubbles the
tab crash event.

We should probably make the IPC layer more resilient to this sort of thing, but
we should also probably not flip remoteness when we really don't need to.

Now instead, when restoring a tab, we detect whether or not it's going to
be restored automatically in the near future. If it's not going to be
restored automatically, and the browser is remote, we flip its remoteness -
otherwise we leave it alone.

MozReview-Commit-ID: 5AmPHvzDZlX

--HG--
extra : rebase_source : 9e152c2f1106eda76702bd3ed4cf48e9703e05c8
2016-08-09 13:32:21 -04:00
fiveNinePlusR
a4ddf79125 Bug 1289213 - Part 1: Add ability to duplicate tabs lazily from the session store. r=kmag 2016-08-01 16:35:52 -07:00
Wes Kocher
d58870a5c6 Backed out changeset 1c7f1b07be44 (bug 1290280) for failures in browser_remoteness_flip_on_restore.js a=backout
--HG--
extra : rebase_source : c343e11573398423d4506bbbfc0cb770c33ac46c
2016-08-11 14:43:09 -07:00
Wes Kocher
45575a7f86 Merge m-c to autoland, a=merge
a=release for the webidl hook for a comment-only change

--HG--
extra : amend_source : e590e515ab273d097f88b35be0e5c999502ebdf4
2016-08-16 22:07:30 -07:00
James Andreou
3585e16752 Bug 1283281 - Remove PB Flag from DOMStorage. r=jdm 2016-06-29 14:01:00 +02:00
Mike Conley
2832151d8c Bug 1290280 - Add tests for window state restoration remoteness flips. r=mikedeboer
MozReview-Commit-ID: ARtmju65xR9

--HG--
extra : rebase_source : 25aead2fc9c27c41cdc56c2d8e56ab0f0b02355d
2016-08-10 15:46:03 -04:00
Mike Conley
7b43357ff4 Bug 1290280 - Improve the logic for flipping the remoteness of the initial browser back to non-remote. r=mikedeboer
The code that checks to see whether or not we should flip the remoteness of a browser
before loading the session state into it wasn't accounting for the fact that oftentimes,
restoreImmediately isn't included, so it's undefined, which coerces to "false-y".

This caused us to very quickly destroy a TabParent, very soon after creating it. In
some cases, the IPC layer seems to not like that, and throws an OnChannelError,
which causes the TabParent ActorDestroy method to be called with an abnormal
shutdown reason, which causes the tab crash observer to fire, which bubbles the
tab crash event.

We should probably make the IPC layer more resilient to this sort of thing, but
we should also probably not flip remoteness when we really don't need to.

Now instead, when restoring a tab, we detect whether or not it's going to
be restored automatically in the near future. If it's not going to be
restored automatically, and the browser is remote, we flip its remoteness -
otherwise we leave it alone.

MozReview-Commit-ID: 5AmPHvzDZlX

--HG--
extra : rebase_source : 9e152c2f1106eda76702bd3ed4cf48e9703e05c8
2016-08-09 13:32:21 -04:00
Rob Wood
a9d2d038d2 Bug 1259329 - Split test up to fix intermittent timeout; r=jmaher
MozReview-Commit-ID: 5uDU6ScsDea

--HG--
extra : rebase_source : 03cf31d4e7cb5a986786c22848d0a6c40a2df161
2016-08-15 15:05:24 -04:00
Carsten "Tomcat" Book
99002c6dcd merge fx-team to mozilla-central a=merge 2016-08-05 12:00:16 +02:00
Dão Gottwald
edec54dc91 Bug 1292095 - Implement SSWindowRestored event and use it instead of SSWindowStateReady for the Ctrl+Tab panel. r=mdeboer 2016-08-04 18:58:00 +02:00
Mike Conley
1bb234e764 Bug 1291860 - Don't flip remoteness of pinned tabs on session restore. r=mikedeboer
The initial browser of new windows starts remote now. When restoring a session,
if we're restoring content into the initial tab and it's going to be loaded
on demand, then we would flip it to non-remote so that it can't background crash.

We'd do this for pinned tabs too, which is silly, since pinned tabs load ASAP.

This patch causes us to skip the remoteness flip if the tab we're restoring
is pinned.

MozReview-Commit-ID: 9eQzfLADzlQ

--HG--
extra : rebase_source : 5a38290991540152392dcab8f3ae1b2dfa398506
2016-08-03 16:34:20 -04:00
Dão Gottwald
b3a935b435 Bug 1292049 - Prevent tab.lastAccessed from being set to a discrete value when the tab is selected. r=mdeboer
--HG--
extra : rebase_source : 6eecb2fab57870fc490b1d1d9881ef89654c74be
2016-08-04 14:41:15 +02:00
Dão Gottwald
1696c5c0ae Backed out changeset 510f0b4792de 2016-08-04 14:21:56 +02:00
Dão Gottwald
3ab8406d45 Bug 1292049 - Prevent tab.lastAccessed from being set to a discrete value when the tab is selected. r=mdeboer 2016-08-04 11:33:15 +02:00
Gabor Krizsanits
a9a4295a9e Bug 1285941 - browser_crashedTabs.js should always use single content process. r=mrbkap 2016-08-01 12:27:08 +02:00
Jonathan Hao
c80e63e7f2 Bug 1289571 - Set browser's userContextId before updateRemoteness in restoreTabContent. r=mikedeboer
--HG--
extra : rebase_source : 1406bf99fa1c03d8b99a7ede665736a72ee243f6
2016-07-28 23:54:00 +02:00
Christoph Kerschbaumer
706065f96d Bug 1286472: Replace serializing nsISHEntry.owner with nsISHEntry.triggeringPrincipal. r=bz,mikedeboer 2016-07-28 09:23:25 +02:00
Mike Conley
6989766387 Bug 1261842 - Tests in browser_windowStateContainer.js should wait for new browser windows to completely load. r=baku
MozReview-Commit-ID: 8SyED1dQbM5

--HG--
extra : rebase_source : dcd4b6f7f8156159460d20c8cbe2369e266163be
extra : source : d6ffc9db53461550f8965e3587244b5b9d68eab6
2016-06-08 10:48:15 -04:00
Mike Conley
13379af1e1 Bug 1261842 - When putting the initial tab into the restored background state, flip it to non-remote. r=mikedeboer
MozReview-Commit-ID: BX8XbYjJHGf

--HG--
extra : rebase_source : 5333e1a15e36aaea5e6e38ab7df5919e8cda3017
extra : source : 2a1acfd17baf3a269719c70cdd5b273e8b344b41
2016-06-03 14:12:21 -04:00
Mike Conley
a386a255c4 Bug 1261842 - Update browser_394759_behavior.js to account for initial browser being remote. r=mikedeboer
MozReview-Commit-ID: H1A4bzARkyf

--HG--
extra : rebase_source : 46ba0178e5856f5d0c567d1c71218c9db8394e56
extra : source : 970cbbb3a658336a8a70cfea01ba5a6afa3ae58b
2016-06-01 17:15:25 -04:00
Mike Conley
462c1e5074 Bug 1261842 - browser_async_window_flushing.js no longer needs to wait for remoteness flip on initial browser of new window. r=Felipe
MozReview-Commit-ID: E74rDTQ2FjX

--HG--
extra : rebase_source : b7cb3d1a782bbb65414a6c13ebd836c735966e0c
extra : source : 6eaa642a93e1707ae917f9e6f61242ecef36c658
2016-06-08 16:22:13 -04:00
Mike Conley
70e421c78c Bug 1261842 - browser_423132.js no longer needs to wait for remoteness flip on initial browser of new window. r=Felipe
MozReview-Commit-ID: 4QniZC8w7pA

--HG--
extra : rebase_source : df8761bb86d9d3250847be559e1098b11585e2db
extra : source : 1240345f5624539c14543dc21888ce1f74f9059b
2016-06-08 16:45:37 -04:00
Mike Conley
daf5c06f3b Bug 1261842 - browser_394759_behavior.js no longer needs to wait for remoteness flip on initial browser of new window. r=Felipe
MozReview-Commit-ID: C9aIKuRSDa3

--HG--
extra : rebase_source : 47d106f2d8f33b1048a4cb419e3c3e7d9da0b34c
extra : source : ce46ebf231c1d679c9bc7abc28f774538b5a1362
2016-06-08 16:42:39 -04:00
Tom Tromey
5538d692d3 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx

--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06:00
Dão Gottwald
a1816a5043 Bug 1287732 - Remove some event.target null checks. r=gijs 2016-07-19 18:20:13 +02:00
Pushpankar
c6670d980f Bug 1286854 - Replace ownerDocument.defaultView with ownerGlobal in browser/. r=dao
--HG--
extra : rebase_source : 72d50e73baf595840a2aade57ae782e4c40d4c27
2016-07-16 10:20:04 +02:00
Allasso Travesser
f5545cdfb4 Bug 1285789 - Implement TabBrowserCreated event. r=dao
--HG--
extra : rebase_source : 23ce02dddc6e4be01ab034735df2b9ed0d3ac3a7
2016-07-15 16:10:27 +02:00
Phil Ringnalda
bc94fc8653 Merge f-t to m-c, a=merge 2016-07-09 08:53:47 -07:00
Mike Conley
d23a632b4a Bug 1284687 - Hide windows on shutdown while persisting session instead of closing them. r=billm
We were closing the windows before to improve perceived shutdown
performance, but we end up in a state where we're likely to miss
out on the last ~2 seconds of session activity for most tabs per
window. This is because we were removing the session update
message listeners and resolving the flush Promises once the
domwindowclosed notification fired for the window.

Hiding the window allows us to wait for the messages properly.

What's more, we weren't even collecting the window state after
we had flushed, so we have _always_ been missing (in the worst
case) about 2 seconds of session state per window. This addresses
that.

MozReview-Commit-ID: BEOIHV4EErf

--HG--
extra : rebase_source : a814098c0e3aa2224f5d38327c135aba986b4b80
2016-07-07 15:04:52 -04:00
Mike de Boer
4a6222d06c No Bug - add test coverage for more types of form fields to ignore in session form field restore. r=MattN
MozReview-Commit-ID: KdN5kETA9go
2016-07-07 15:10:26 +02:00
Jonathan Hao
5c43c6db43 Bug 1283709 - Test if cookies are restored correctly to container tabs. r=mikedeboer
MozReview-Commit-ID: 2NJlJ5tFsS4

--HG--
extra : amend_source : ae347962c3fb5ae2c20d960698d078553a99f17e
2016-07-06 01:39:00 +08:00
Jonathan Hao
5f61825cd1 Bug 1283709 - Map SessionCookies by origin attributes. r=mikedeboer
MozReview-Commit-ID: IAuKZdVWgNl
2016-07-06 01:45:00 +08:00
Mike Conley
4a3ae90945 Bug 1271607 - Pinned tabs should not restore as non-remote. r=mikedeboer
App tabs load immediately, and so there's no point in causing the remoteness
flipping machinery to kick off by making the pinned tabs non-remote by default.

MozReview-Commit-ID: 48O2mJSHurr

--HG--
extra : rebase_source : 975137009468db697b20f1b05569bc7e0ec48534
2016-06-29 13:49:57 -04:00
Ben Kelly
dd3c9e4501 Bug 1279389 P3 Fix OS.File.DirectoryIterator leaks throughout tree. r=yoric 2016-06-28 18:47:55 -07:00
Carsten "Tomcat" Book
c1cb5a12bd Backed out changeset 00312b136937 (bug 968273) for causing regressions 2016-06-28 10:03:25 +02:00
Andrea Marchesini
dd6cbdac21 Bug 1271516 - Introducing nsIWebNavigation.setOriginAttributesBeforeLoading, r=smaug 2016-06-07 19:59:22 +02:00
Phil Ringnalda
035f8773be Back out 32d16086e85e (bug 1271516) for frequent ChromeUtils::IsOriginAttributesEqual assertin failures
CLOSED TREE
2016-06-06 21:07:42 -07:00
Yoshi Huang
5399e1e48d Bug 1278149 - split browser_sessionStoreContainer.js. r=mikedeboer 2016-06-07 11:02:38 +08:00