Ben Kelly
70f338b679
Bug 1231211 P10 Move nsDocShell logic into separate ServiceWorkerInterceptController. r=asuth
2018-01-23 10:38:53 -05:00
Ben Kelly
1d94a9ebaa
Bug 1231211 P9 Move logic out of nsDocShell::ChannelControlled() and into ServiceWorkerManager::DispatchFetchEvent(). r=asuth
2018-01-23 10:38:53 -05:00
Ben Kelly
bcb92a3fdd
Bug 1231211 P8 Make nsDocShell::ShouldPrepareForIntercept() only depend on channel data. r=asuth
2018-01-23 10:38:53 -05:00
Ben Kelly
2dc82400a7
Bug 1231211 P7 Pass the nsIChannel to ShouldPrepareForIntercept(). r=asuth
2018-01-23 10:38:53 -05:00
Ben Kelly
5a5a70b6f5
Bug 1231211 P4 Set isReload on LoadInfo in docshell. r=asuth
2018-01-23 10:38:52 -05:00
Emilio Cobos Álvarez
d673bbdc88
Bug 1431854: Remove a bit of indirection in nsSHEntryShared::SetContentViewer. r=smaug
...
MozReview-Commit-ID: HRIfFJa9K2V
--HG--
extra : rebase_source : 5fe6ffea02377d7e93dbd4e2a0f8389be38bb388
2018-01-19 23:50:13 +01:00
Jonathan Watt
d80eff51f9
Bug 1430619 part 3 - Remove nsIContentViewerContainer. r=smaug
...
MozReview-Commit-ID: BxpgH0DPKQw
2018-01-11 12:27:00 +00:00
Jonathan Watt
b7e7d82901
Bug 1430619 part 2 - Move nsIContentViewerContainer::setIsPrinting to nsIDocShell. r=smaug
...
MozReview-Commit-ID: LJrZbDAilnW
2018-01-11 12:05:37 +00:00
Jonathan Watt
e0fb07c39d
Bug 1430619 part 1 - Make nsIContentViewerContainer::embed non-IDL. r=smaug
...
MozReview-Commit-ID: 5yw90tgFCGz
2018-01-11 11:42:15 +00:00
Mike Conley
b9592e87ec
Bug 1423200 - When setting up a new content viewer, if the previous PresShell was active, make the new one active too. r=mystor
...
It's possible to RenderLayers for a top-level content process DocShell without that DocShell being
active. When we do this, the PresShell for that DocShell becomes active, but the DocShell stays
inactive (to avoid accidentally playing paused video or clearing notifications in that DocShell).
If a DocShell is inactive but rendering its layers, it's possible for that DocShell to navigate.
When this occurs, a new PresShell can be created, which normally reads its active state off of
the DocShell. This means that the PresShell will become inactive even though the tab is supposed
to continue rendering its layers.
This patch checks for PresShell active state when setting up a new content viewer after a navigation,
and if the previous PresShell was active, makes the new PresShell active too.
MozReview-Commit-ID: KX9HvZJKqg2
--HG--
extra : rebase_source : aac1710a64b6e5f93b9874b2a15637d94a8ce5b6
2018-01-17 14:36:08 -08:00
Chris Peterson
37efe4d0e6
Bug 1428535 - Add missing override specifiers to overridden virtual functions. r=froydnj
...
MozReview-Commit-ID: DCPTnyBooIe
--HG--
extra : rebase_source : cfec2d96faeb11656d86d760a34e0a04cacddb13
extra : intermediate-source : 6176724d63788b0fe8caa3f91607c2d93dbaa7ec
extra : source : eebbb0600447f9b64aae3bcd47b4be66c02a51ea
2017-11-05 19:37:28 -08:00
Nika Layzell
e0822be7b9
Bug 1383876 - Part 2: Remove GroupedSHistory and Prerendering logic from JS code, r=freesamael
...
MozReview-Commit-ID: KwvOcgQKheK
2018-01-12 17:52:54 -05:00
Nika Layzell
a0d1f16079
Bug 1383876 - Part 1: Remove GroupedSHistory and Prerendering logic from C++ code, r=freesamael, r=smaug
...
MozReview-Commit-ID: 2aHA6NcQPGk
2018-01-12 17:52:52 -05:00
Sylvestre Ledru
4b189b7baf
Bug 1278282 - Update of the tests to reflect the removal of the gtk2 r=lsalzman
...
MozReview-Commit-ID: Htgc44dCEjX
--HG--
extra : rebase_source : 55ce6a6a72c36cbfdbeef08fe58d11f2053dc35f
2018-01-10 08:55:38 +01:00
Ciure Andrei
f7400ad72e
Merge inbound to mozilla-central r=merge a=merge
2018-01-11 11:54:56 +02:00
Kate McKinley
e97980a95e
Bug 1424917 - Remove support for HSTS Priming. r=mayhemer, r=ckerschb
...
This patch removes support and tests for HSTS priming from the tree.
2018-01-10 11:07:00 -05:00
Andrew Swan
63c732760f
Bug 1396399
- Clarify rules for applying activeTab permission to content scripts. r=kmag, r=bz
...
MozReview-Commit-ID: 9xPDX8Qk2iR
2017-11-04 21:06:20 -07:00
Milan Sreckovic
2413f473dd
Bug 1423558: Use BaseRect access methods instead of member variables in docshell r=freesamael
...
MozReview-Commit-ID: CrdXCQkKdnh
--HG--
extra : rebase_source : dda614844fdf4c894aafc8736458616ef208bea1
2018-01-10 10:46:57 -05:00
Doug Thayer
1e3446b9cc
Bug 1421703 - Fix tests to use onVisits r=mak
...
Fairly straightforward. Fixes the tests that were broken due to
the changes introduced in part 1.
MozReview-Commit-ID: GbZ9ZpmG9nE
--HG--
extra : rebase_source : ebb2088288718631a941139d5a4d945259aaa0c6
2017-12-14 16:55:31 -06:00
Margareta Eliza Balazs
fe2caaa266
Merge inbound to mozilla-central r=merge a=merge
2018-01-09 11:52:55 +02:00
Alphan Chen
87bb85b91b
Bug 1421214 - Try GoToAnchor() with unescaped string before using document's charset. r=smaug
2018-01-05 15:12:16 +08:00
Ben Kelly
11f4db4683
Bug 1426977 P3 Use StorageAllowedForNewWindow() in nsDocShell::ServiceWorkerAllowedToControlWindow(). r=mystor
2018-01-08 20:25:53 -05:00
Sebastian Hengst
dfcbe8d912
merge central to autoland. r=merge a=merge
2018-01-06 01:54:50 +02:00
Sebastian Hengst
2928d8ae82
Bug 1425975 - Follow-up: Move method to correct position. r=merge-fix a=merge-fix
2018-01-06 01:51:46 +02:00
Sebastian Hengst
a149c84834
Bug 1425975 - Fix merge bustage. r=bustage-fix a=bustage-fix
2018-01-06 01:10:52 +02:00
Sebastian Hengst
d52c7b3231
merge inbound to central. r=merge a=merge
2018-01-06 00:27:10 +02:00
Ben Kelly
7f0e026bcb
Bug 1425975 P16 Make nsDocShell check for session cookie lifetime policy before allowing service worker intercept. r=asuth
2018-01-05 12:10:22 -05:00
Ben Kelly
ddc8898fc1
Bug 1425975 P12 Don't mark an initial about:blank client as controlled if its sandboxed. r=asuth
2018-01-05 12:10:22 -05:00
Ben Kelly
c67746c9b2
Bug 1425975 P7 Use the mControlledClients list to drive controller start and stop logic. r=asuth
2018-01-05 12:10:21 -05:00
Samael Wang
112d2693c3
Bug 1406161 - Part 6: Move shistory related static functions to nsSHistory. r=smaug
...
MozReview-Commit-ID: 7rqo2rISCB5
--HG--
extra : rebase_source : 3de7a21b24ce526f45424a2f1aad4329a8758f78
2017-12-19 18:26:36 +08:00
Samael Wang
3899149f41
Bug 1406161 - Part 5: Move LoadType convertion functions to nsDocShellLoadTypes.h. r=smaug
...
MozReview-Commit-ID: Ccw7cDE20m3
--HG--
extra : rebase_source : 950eee87d0c02a82aa5e0c62f8f1e0fa5e2cb72d
2017-12-19 15:13:02 +08:00
Samael Wang
837eb62f44
Bug 1406161 - Part 4: Move nsPingListener and nsRefreshTimer to separate files. r=smaug
...
MozReview-Commit-ID: 9Z6i9yWoQwj
--HG--
extra : rebase_source : dfa8f9fad42851b92cf20a8aa9ae5b5b114b647f
2017-12-18 20:19:36 -06:00
Samael Wang
e86402b778
Bug 1406161 - Part 3: Remove a dead member function. r=smaug
...
MozReview-Commit-ID: LYNUZhvnAdm
--HG--
extra : rebase_source : 696d21afde06340006e63bf824068fe17c3e7d14
2017-12-15 17:15:02 -06:00
Samael Wang
2387e7d5ac
Bug 1406161 - Part 2: Reorder docshell members and remove unnecessary `virtual` or `NS_IMETHOD` keywords. r=smaug
...
MozReview-Commit-ID: KuEchFzFu7E
--HG--
extra : rebase_source : 8a950c67c746f0771b36bdbd9844d52ea59ea048
2017-12-15 17:09:43 -06:00
Samael Wang
5d946a3ccf
Bug 1406161 - Part 1: Reorder #include, #define, forward declarations, global & static variables. r=smaug
...
MozReview-Commit-ID: 9DKL1zuLboL
--HG--
extra : rebase_source : 97a01497f1a1a67d93e102ca8a9b2503e779c9e0
2017-12-15 14:14:06 -06:00
Emilio Cobos Álvarez
c8eb630ebe
Bug 1423990: Move the last few attribute-related methods outside of nsIContent. r=bz
...
MozReview-Commit-ID: 8JZuS6O8f8W
2017-12-25 17:50:10 +01:00
Emilio Cobos Álvarez
ffdf5d2cb5
Backout changeset e43f568b3e9a (bug 1423990) because some OSX-only code still doesn't build. r=me
2017-12-25 12:55:45 +01:00
Emilio Cobos Álvarez
c0959b2955
Bug 1423990: Move the last few attribute-related methods outside of nsIContent. r=bz
...
MozReview-Commit-ID: 8JZuS6O8f8W
--HG--
extra : rebase_source : 09b82acb4f3d69e8a4345457ab217443bc28d6e2
2017-12-07 19:13:50 +01:00
Csoregi Natalia
0bf10c4d4e
Backed out 14 changesets (bug 1425975) for M(5) permafails mochitest/test_ext_webrequest_filter.html. r=backout a=backout
...
Backed out changeset e6f4a2d1df9a (bug 1425975)
Backed out changeset 1e657fa97b71 (bug 1425975)
Backed out changeset 9e1544ec814d (bug 1425975)
Backed out changeset 0e50d9d1d069 (bug 1425975)
Backed out changeset fb89dbd922ba (bug 1425975)
Backed out changeset f2b451ce55d4 (bug 1425975)
Backed out changeset 4ce186c6d8f5 (bug 1425975)
Backed out changeset 6f520ab76d6a (bug 1425975)
Backed out changeset f091f5e182c4 (bug 1425975)
Backed out changeset 82d39ed8c831 (bug 1425975)
Backed out changeset df13eba47970 (bug 1425975)
Backed out changeset 553628a56e6a (bug 1425975)
Backed out changeset acf4d61babab (bug 1425975)
Backed out changeset b7ae11b5bce8 (bug 1425975)
2017-12-24 00:23:57 +02:00
Ben Kelly
34fc67d3c5
Bug 1425975 P12 Don't mark an initial about:blank client as controlled if its sandboxed. r=asuth
2017-12-22 21:09:20 -05:00
Ben Kelly
b09f6aba9a
Bug 1425975 P7 Use the mControlledClients list to drive controller start and stop logic. r=asuth
2017-12-22 21:09:19 -05:00
Mike Conley
5ece45274a
Bug 1397426 - Stop disabling tab warming in browser_bug343515.js. r=billm
...
Tab warming was originally disabled in this test because it was accidentally
setting the DocShell to be active at an unexpected time.
Because tab warming no longer activates DocShells, we can revert this change,
though we also have to make it deal with the fact that switching tabs no longer
makes docShells become activate immediately.
MozReview-Commit-ID: K0fiA5AVfEm
--HG--
extra : rebase_source : 874f112e4368a037b4baf02f205198c0f598b5b8
extra : source : e7a6fe9f9ce7186e8dc3c7aaeab47362c7060f5a
2017-10-23 17:01:48 -04:00
Valentin Gosu
0203cc4abd
Bug 1426501 - Change C++ code to use NS_MutateURI when changing URI r=mayhemer
...
MozReview-Commit-ID: 4VzZlhWrtSJ
--HG--
extra : rebase_source : 9c872dc14c8e5f03e6354ab76c8bf750a7e10260
2018-01-08 15:20:35 +01:00
Mike Conley
921cb8735c
Bug 1397426 - Rename TabChild's notion of "active tabs" to "visible tabs" and move logic into renderLayers. r=billm
...
MozReview-Commit-ID: 1bBNwew7uCk
--HG--
extra : rebase_source : 0e59b548c6c01d7feaf9f40c282ab2f55e47bab7
extra : source : 4643e46ff8d3e84d10ff178e15a1be7f734b020f
2017-11-03 11:27:29 -04:00
Florian Quèze
22c55eb7b7
Bug 1421992 - Hand written cleanup patch to make tests pass after removing obsolete xpcshell functions. r=Gijs,ochameau a=Aryx
2017-12-21 11:11:57 +01:00
Florian Quèze
0f55cd45be
Bug 1421992 - script-generated patch to replace do_execute_soon, do_print and do_register_cleanup with executeSoon, info and registerCleanupFunction, rs=Gijs.
2017-12-21 11:10:23 +01:00
Florian Quèze
032c961e0a
Bug 1421992 - script-generated patch to replace do_check_* functions with their Assert.* equivalents, rs=Gijs.
2017-12-21 11:08:17 +01:00
Ben Kelly
0240c2751f
Bug 1426253 P3 Use the window/document GetController() method. r=asuth
2017-12-20 10:53:18 -05:00
Jonathan Kingston
2cb1afc933
Bug 1420622 - Remove feed and pcast protocols. r=Gijs
...
MozReview-Commit-ID: KAC9MmLiuBG
--HG--
extra : rebase_source : 076fc5a6acc75362ceffee1b5150e1598af41673
2017-12-19 16:12:29 +00:00
Gurzau Raul
bc6e59d2b4
Merge mozilla-central to autoland. r=merge a=merge CLOSED TREE
2017-12-19 00:00:36 +02:00
Kartikaya Gupta
4f18e92ffb
Bug 1334189 - Enable mochitest-plain for linux64-qr. r=jrmuizel
...
MozReview-Commit-ID: nbcWhDq5de
--HG--
extra : rebase_source : 25e2c2b8b996ae11cd25dee07d9092ba574a9e40
2017-12-13 18:38:39 -05:00
Jonathan Kingston
d592ba8cc6
Bug 1419007 - ensure errors FireOnLocationChange after documentURI has changed in docshell. r=sawang r=francois
...
MozReview-Commit-ID: AaZEIOI4sW1
2017-11-21 11:40:01 +00:00
Jonathan Watt
f239219d4f
Bug 1425178
- Rename nsPrintEngine to nsPrintJob. r=bobowen
...
MozReview-Commit-ID: 2HCNmeOLPd3
--HG--
rename : layout/printing/nsPrintEngine.cpp => layout/printing/nsPrintJob.cpp
rename : layout/printing/nsPrintEngine.h => layout/printing/nsPrintJob.h
2017-12-04 11:44:17 -06:00
Ben Kelly
890e126aaa
Bug 1293277 P6 Use the ClientInfo.Id() value for FetchEvent.clientId. r=baku
2017-12-12 15:44:48 -05:00
Andrea Marchesini
b32bea6044
Bug 1424809 - Get rid of NS_NewPostDataStream, r=valentin
2017-12-12 06:01:17 -06:00
Tooru Fujisawa
b34460eea8
Bug 1372476 - Add event load listener before start loading in docshell/test/browser/browser_bug349769.js. r=billm
2017-12-10 20:12:11 -06:00
Gurzau Raul
91d3bc0100
Merge inbound to mozilla-central r=merge a=merge
2017-12-09 00:36:15 +02:00
Ben Kelly
65e9628fa6
Bug 1423913 P2 Make callers expect infallble CreateSource() and CreateHandle(). r=baku
2017-12-08 11:52:07 -05:00
Narcis Beleuzu
fd0b701b6f
Backed out 4 changesets (bug 1417251) for reftest failures in abs-pos-non-replaced-vrl* on Windows and in box-sizing-replaced* on Android. r=backout a=backout
...
Backed out changeset 66d4e6df73d2 (bug 1417251)
Backed out changeset 5f8edbddf6b5 (bug 1417251)
Backed out changeset bf26cbb99b6a (bug 1417251)
Backed out changeset 2374657677b7 (bug 1417251)
--HG--
extra : amend_source : 9e00f8873f41a7aa6a98e6ccb6528e0c3c19eb05
2017-12-08 14:31:03 +02:00
Bill McCloskey
f9b9902b91
Bug 1412456 - Fix onbeforeunload test to no longer rely on interposition (r=Gijs)
...
MozReview-Commit-ID: DlIRAvXw6R4
2017-12-07 12:55:26 -08:00
Bill McCloskey
9f4d083047
Bug 1412456 - Test changes to no longer use interposition (r=felipe,bgrins,mrbkap)
...
MozReview-Commit-ID: 2nQPOSGTr1s
2017-12-07 12:55:24 -08:00
Sylvestre Ledru
9bfe27d903
Bug 1394734 - Replace CONFIG['GNU_C*'] by CONFIG['CC_TYPE'] r=glandium
...
MozReview-Commit-ID: 7duJk2gSd4m
--HG--
extra : rebase_source : 7312fe276e561e8c034a5f6749774ae812727f9c
2017-12-07 22:09:15 +01:00
Andreea Pavel
89531e8dc3
Backed out 9 changesets (bug 1412456) for crashing talos g2 and unexpected network connections in browser-chrome's browser_searchEngine_behaviors.js r=backout a=backout on a CLOSED TREE
...
Backed out changeset 0c01a98f4fd5 (bug 1412456)
Backed out changeset 27077db47231 (bug 1412456)
Backed out changeset f35ec2a884f8 (bug 1412456)
Backed out changeset 602b30ac3c69 (bug 1412456)
Backed out changeset b1ff1050c589 (bug 1412456)
Backed out changeset f100d953f9eb (bug 1412456)
Backed out changeset d85af60fe259 (bug 1412456)
Backed out changeset 736f38486832 (bug 1412456)
Backed out changeset 13a637602dc2 (bug 1412456)
2017-12-07 12:20:21 +02:00
Bill McCloskey
9ed0e9cb0e
Bug 1412456 - Fix onbeforeunload test to no longer rely on interposition (r=Gijs)
...
MozReview-Commit-ID: DlIRAvXw6R4
2017-12-06 21:17:08 -08:00
Bill McCloskey
bef7c122df
Bug 1412456 - Test changes to no longer use interposition (r=felipe,bgrins,mrbkap)
...
MozReview-Commit-ID: 2nQPOSGTr1s
2017-12-06 21:17:05 -08:00
Dorel Luca
eb65c24c7b
Backed out 8 changesets (bug 1412456) for ESlint failure on browser_urlbarKeepStateAcrossTabSwitches.js:13:49 r=backout on a CLOSED TREE
...
Backed out changeset 0e88de036c55 (bug 1412456)
Backed out changeset 49b93f807db0 (bug 1412456)
Backed out changeset 039e980b7dc6 (bug 1412456)
Backed out changeset c7698410ddbd (bug 1412456)
Backed out changeset e56a1ba26b7c (bug 1412456)
Backed out changeset 0c4506e124ac (bug 1412456)
Backed out changeset a7aec2ce903b (bug 1412456)
Backed out changeset 3e9fb71f1e8e (bug 1412456)
2017-12-07 07:09:33 +02:00
Bill McCloskey
32656e2e1c
Bug 1412456 - Fix onbeforeunload test to no longer rely on interposition (r=Gijs)
...
MozReview-Commit-ID: DlIRAvXw6R4
2017-12-06 20:46:58 -08:00
Bill McCloskey
be77cf4a01
Bug 1412456 - Test changes to no longer use interposition (r=felipe,bgrins,mrbkap)
...
MozReview-Commit-ID: 2nQPOSGTr1s
2017-12-06 20:46:58 -08:00
Mike Conley
053fbea1fc
Backed out changeset 4643e46ff8d3 (bug 1397426)
...
--HG--
extra : rebase_source : 3e235d725c42300f3c8f3af51850e3c4e1aa7ddf
2017-12-06 16:03:32 -05:00
Mike Conley
69e38dfce8
Backed out changeset e7a6fe9f9ce7 (bug 1397426)
...
--HG--
extra : rebase_source : 2c1b37bd607eee584bafa9f2be8daab3084fc3d0
2017-12-06 15:58:02 -05:00
Jonathan Watt
3e61847b92
Bug 1417251, part 2 - Make the reftest harness support loading of consecutive URIs differing only by hash. r=dbaron,bz
...
MozReview-Commit-ID: 6VVJrtX1KZa
2017-11-14 15:58:30 +00:00
Ben Kelly
fb38b7b228
Bug 1423412 P1 Actually mark window/worker ClientSource objects controlled when loaded with a controlling service worker. r=baku r=jld
2017-12-05 20:45:22 -05:00
Ben Kelly
c948c62fd6
Bug 1422584 Handle nullptr ClientSource in nsDocShell::MaybeCreateInitialClientSource(). r=baku
2017-12-05 11:45:11 -05:00
Ben Kelly
2982dea3de
Bug 1422983 Cycle collect the ClientSource object when owned by an nsGlobalWindowInner or nsDocShell object. r=mccr8
2017-12-04 22:13:33 -05:00
Valentin Gosu
2d82c0834f
Bug 1422518 - Use LOAD_FLAGS_DISALLOW_INHERIT_PRINCIPAL for meta refresh r=bz
...
MozReview-Commit-ID: H3hnO3NmHYA
2017-12-05 02:29:41 +01:00
Bogdan Tara
28f65f2044
Merge mozilla-central to inbound. r=merge a=merge on a CLOSED TREE
2017-12-04 22:47:53 +02:00
David Major
2b2c246e13
Bug 1422869 - Add "htp" and "htps" to the scheme typo fixup list. r=bz
...
--HG--
extra : rebase_source : f80cc58b3a71114dbe77edf80aa13be68c13d84c
2017-12-04 12:21:24 -05:00
Csoregi Natalia
009021edbb
Backed out changeset 362425ee97ad (bug 1419007) for ESLint failure and for failing test_threathit_report.html. r=backout on a CLOSED TREE
2017-12-03 21:41:07 +02:00
Jonathan Kingston
4de9966be8
Bug 1419007 - Ensure errors FireOnLocationChange after documentURI has changed in docshell. r=sawang
...
MozReview-Commit-ID: AaZEIOI4sW1
2017-11-21 11:40:01 +00:00
Mike Conley
94c19b3bf1
Bug 1397426 - Stop disabling tab warming in browser_bug343515.js. r=billm
...
Tab warming was originally disabled in this test because it was accidentally
setting the DocShell to be active at an unexpected time.
Because tab warming no longer activates DocShells, we can revert this change,
though we also have to make it deal with the fact that switching tabs no longer
makes docShells become activate immediately.
MozReview-Commit-ID: K0fiA5AVfEm
--HG--
extra : rebase_source : 5de92eb125e1001dd358a5deaa76f626802e3928
2017-10-23 17:01:48 -04:00
Mike Conley
cacae0556b
Bug 1397426 - Rename TabChild's notion of "active tabs" to "visible tabs" and move logic into renderLayers. r=billm
...
MozReview-Commit-ID: 1bBNwew7uCk
--HG--
extra : rebase_source : fb907f0e9f02635b122dbf67da7a7c1292427cec
2017-11-03 11:27:29 -04:00
Thomas Nguyen
fd883fdb12
Bug 1345433 - Bring back assertion that history entries need a valid triggeringPrincipal r=JanH,smaug
...
MozReview-Commit-ID: 9GfGIxkqfhM
--HG--
extra : rebase_source : 9568fb89e43400453d42980a267aee733d551e13
2017-10-23 18:14:28 +08:00
Samael Wang
c17e17983e
Bug 1418119 - Update the assertion in nsDocShell::InternalLoad to reflect the change of OnLinkClickSync in bug 1397512. r=bz
...
MozReview-Commit-ID: J7BCKdsH8Dx
--HG--
extra : rebase_source : 60870294ea1297c4fa4cde66598fdd026e266c9f
2017-11-23 15:07:11 +08:00
Dorel Luca
be78e6ea9b
Merge inbound to mozilla-central r=merge a=merge
2017-11-29 12:26:15 +02:00
Samael Wang
a1cf236d7a
Bug 1362410 - Make the setTimeout run on the same target as HistoryTracker. r=smaug
...
MozReview-Commit-ID: KvcFxG7RMNZ
--HG--
extra : rebase_source : e8c239c100ebe515ef098b4679b8bd9ecf46b15a
2017-11-28 15:50:27 +08:00
Gijs Kruitbosch
5fb33f411d
Bug 1420395 - deal with IDN domains without protocols correctly in nsIURIFixup, r=valentin
...
MozReview-Commit-ID: DZYnxExcqdp
--HG--
extra : rebase_source : 08b4cb23db26a09a3f6fbe8fd7ea79c4191b293e
2017-11-28 14:28:58 +00:00
Tiberius Oros
18ea9ecad9
Merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE
...
--HG--
rename : devtools/client/webconsole/new-console-output/test/mochitest/test-bug-618078-network-exceptions.html => devtools/client/webconsole/new-console-output/test/mochitest/test-network-exceptions.html
rename : devtools/client/webconsole/new-console-output/test/mochitest/test_bug1092055_shouldwarn.html => devtools/client/webconsole/new-console-output/test/mochitest/test-subresource-security-error.html
rename : devtools/client/webconsole/new-console-output/test/mochitest/test_bug1092055_shouldwarn.js => devtools/client/webconsole/new-console-output/test/mochitest/test-subresource-security-error.js
rename : devtools/client/webconsole/new-console-output/test/mochitest/test_bug1092055_shouldwarn.js^headers^ => devtools/client/webconsole/new-console-output/test/mochitest/test-subresource-security-error.js^headers^
extra : rebase_source : e126b0ab427161de0acd67cdfb9a1434415412dc
2017-11-29 02:25:59 +02:00
Valentin Gosu
ee8c43ddf9
Bug 1414425 - Make sure the appropriate triggeringPrincipal is set for a meta refresh. r=bz
...
MozReview-Commit-ID: 4Kn6P4hnx74
2017-11-09 16:32:51 +01:00
Ben Kelly
f4ddc50d61
Bug 1420743 P2 Check the inner window for an existing document instead of the outer window in nsDocShell::EnsureInitialClientSource(). r=baku
2017-11-28 12:10:40 -05:00
Ben Kelly
e9bc23f889
Bug 1420743 P1 Do a better job of clearing docshell's mInitialClientSource at the end of page load. r=baku
2017-11-28 12:10:40 -05:00
Cosmin Sabou
651cb90a8a
Backed out changeset be86ccde4f4a (bug 1352497) for bc failures on Windows 7 debug with e10s at docshell/test/browser/browser_bug1309900_crossProcessHistoryNavigation.js r=backout a=backout
2017-11-26 01:36:44 +02:00
Ciure Andrei
327405164b
Merge inbound to mozilla-central r=merge a=merge
2017-11-25 00:04:02 +02:00
Kevin Jones
25bd05b91c
Bug 1415918 - Allow discarding browsers that have beforeunload handlers in tabbrowser.discardBrowser. r=bz
...
MozReview-Commit-ID: 5KQcrOQTSpK
2017-11-24 15:14:46 +01:00
Dão Gottwald
bfd060da04
Bug 1352497 - Remove about:healthreport. r=gfritzsche,nechen
...
MozReview-Commit-ID: 8aPg9oDFIlu
--HG--
extra : rebase_source : 6e9836a6d66b464df1228f7ed84e9b37bad8809c
2017-11-22 13:51:08 +01:00
Gabriele Svelto
8efb4e695e
Bug 1402519 - Remove MOZ_CRASHREPORTER directives from docshell; r=bz
...
MozReview-Commit-ID: 4V8AEYX3Xa7
--HG--
extra : rebase_source : 4d9d95148a8a4e9143c972a067feba37b29321d1
2017-10-10 12:03:40 +02:00
Nika Layzell
f1ac9bf744
Bug 1419597 - Part 18: Remove IsInnerWindow and IsOuterWindow methods, r=smaug
...
MozReview-Commit-ID: DAAm6tLubhJ
2017-11-23 13:12:13 -05:00
Dão Gottwald
aff5b2a7f6
Bug 1352497 - Remove about:healthreport. r=gfritzsche,nechen
...
MozReview-Commit-ID: 4FQ5aL2XrU5
--HG--
extra : rebase_source : a8863472a82697b3e7668866a35f14b6f01fafe7
2017-11-28 11:38:15 +01:00
shindli
fb855aa7ba
Backed out 16 changesets (bug 1402519) for conflicts during merge r=backout on a CLOSED TREE
...
Backed out changeset 07fcf163241a (bug 1402519)
Backed out changeset c6d2ad45d8e2 (bug 1402519)
Backed out changeset 8a3caca61294 (bug 1402519)
Backed out changeset 01425eae2c48 (bug 1402519)
Backed out changeset cf298d3815de (bug 1402519)
Backed out changeset e1964f4389cd (bug 1402519)
Backed out changeset f405337f3569 (bug 1402519)
Backed out changeset a76356fd3359 (bug 1402519)
Backed out changeset d3bb350d1c34 (bug 1402519)
Backed out changeset 9d3bfd9f932c (bug 1402519)
Backed out changeset e3dd6e5b073f (bug 1402519)
Backed out changeset e801b0c00134 (bug 1402519)
Backed out changeset 8a4139fa5dca (bug 1402519)
Backed out changeset 8d01c14ac1ca (bug 1402519)
Backed out changeset 24e0dcd01898 (bug 1402519)
Backed out changeset f8fdf450613f (bug 1402519)
2017-11-23 00:11:44 +02:00
Gabriele Svelto
af621335e5
Bug 1402519 - Remove MOZ_CRASHREPORTER directives from docshell; r=bz
...
MozReview-Commit-ID: 4V8AEYX3Xa7
--HG--
extra : rebase_source : b82ac111ceef5c9f01108cd0542c3cae51070ecf
2017-10-10 12:03:40 +02:00
Sebastian Hengst
925c9f36c0
Backed out 4 changesets (bug 1417251) for reftest failures, e.g. in box-decoration-break-with-outset-box-shadow-1.html. r=backout on a CLOSED TREE
...
Backed out changeset cdd6eb876d3d (bug 1417251)
Backed out changeset c2b174094be3 (bug 1417251)
Backed out changeset 9a85c4bd47e4 (bug 1417251)
Backed out changeset a9f5ffd87cd5 (bug 1417251)
2017-11-22 18:34:58 +02:00
Jonathan Watt
c73cc60a66
Bug 1417251, part 1 - Make the reftest harness support loading of consecutive URIs differing only by hash. r=dbaron,bz
...
When the URIs of consecutively loaded tests/references differed only by hash
we would previously do an anchor scroll causing us to fail timing out
waiting for a 'load' event that would never come. This change makes us load
such URIs using nsIWebNavigation.LOAD_FLAGS_BYPASS_CACHE to force a reload of
the document.
MozReview-Commit-ID: 6Fhy9h1tZol
2017-11-03 08:35:08 +00:00
Andrea Marchesini
ad64933e5a
Bug 1419382 - Moving ownership of nsIInputStream when using netUtil functions - part 2 - NS_NewInputStreamChannel, r=smaug
2017-11-22 11:18:36 +01:00
Ben Kelly
3935375a57
Bug 1419536 P3 Handle creating and activating the ClientSource in nsDocShell and nsGlobalWindow. r=baku r=freesamael
2017-11-21 15:13:05 -05:00
Gijs Kruitbosch
ba009dae2f
Bug 1408044 - remove the 'about:' page from toolkit, r=dao
...
MozReview-Commit-ID: 8qNBcCYWxhe
--HG--
extra : rebase_source : 7fbd316235899cbd340c53ea2111b020eff941d4
2017-11-16 17:16:12 +00:00
Oriol Brufau
a3f319d3d4
Bug 1418438 - Avoid null deref in nsIDocShell's forcedCharset. r=emk
...
MozReview-Commit-ID: KsTWmlAhDp8
--HG--
extra : rebase_source : 21e7476103c03488628f72aa517031135cfa4fe7
2017-11-17 21:28:50 +01:00
Ciure Andrei
a8907fc95a
Backed out 5 changesets (bug 1408044) for failing Android test: TestAboutPagesPreparer.java:24: cannot find symbol. r=backout on a CLOSED TREE
...
Backed out changeset 5c5152ad910d (bug 1408044)
Backed out changeset c9a062838c12 (bug 1408044)
Backed out changeset 9ceaa645f2a9 (bug 1408044)
Backed out changeset 10fc0a581606 (bug 1408044)
Backed out changeset 513140019014 (bug 1408044)
2017-11-17 12:19:30 +02:00
Brendan Dahl
f9e980c97f
Bug 1409580 - Skip test_bug511449.html in headless mode. r=jrmuizel
...
This could be enabled by adding support for SynthesizeNativeKeyEvent, but so
far this is the only test I've run into that needs this.
MozReview-Commit-ID: 9BWeHCc1fCi
--HG--
extra : rebase_source : c5b9fa25507816a988d072e290940a8d012af758
2017-10-19 17:16:17 -07:00
Gijs Kruitbosch
460f3e9014
Bug 1408044 - remove the 'about:' page from toolkit, r=dao
...
MozReview-Commit-ID: 8qNBcCYWxhe
--HG--
extra : rebase_source : b56c3e86aa16d975fbc38d1b50c101bfefa425a3
2017-11-16 17:16:12 +00:00
Nicholas Nethercote
f553c82da0
Bug 1416638 - Add a PrefValueKind arg to Preferences::Get*(), and remove Preferences::GetDefault*(). r=glandium
...
MozReview-Commit-ID: LgnZAf1pAl1
--HG--
extra : rebase_source : 8ba7c4bfb331f70fd41c2ae1d428e4cb9058d069
2017-11-14 19:06:01 +11:00
Bevis Tseng
a22e59eff8
Bug 1414136 - Fix test failures in session history relying on non-comformant Promise handling. r=sawang
2017-11-10 10:33:25 +08:00
Bill McCloskey
fe841a52b6
Bug 1412195 - Track all changes to TabChild active state (r=bevis)
...
MozReview-Commit-ID: 7nQjquaM4sQ
2017-11-11 21:04:20 -08:00
Kyle Machulis
ea86e1d617
Bug 1416069 - Remove nsIDOMHTMLHtmlElement and nsIDOMHTMLBaseElement; r=bz
...
MozReview-Commit-ID: 7qUw7cLeTpe
2017-11-10 13:10:02 -08:00
Andreea Pavel
e1c8aba28f
Merge mozilla-central to mozilla-inbound r=merge a=merge on a CLOSED TREE
2017-11-09 22:17:00 +02:00
Johann Hofmann
43fcda5c22
Bug 1412559 - Make the "confirm repost" prompt tab modal. r=bz
...
This is done to prevent malicious pages from abusing the feature
to lock up the browser.
MozReview-Commit-ID: 8Gf55nbMwCu
--HG--
extra : rebase_source : d3426bfef38a3dba27b1d1183b5f4427cbeb7436
2017-11-08 18:26:33 +01:00
Mats Palmgren
1c2b8c222e
Bug 1414666 part 1 - Add nsIFrame::PresShell() for convenient access to the shell. r=emilio
...
MozReview-Commit-ID: 8FPTPKWyVtY
2017-11-09 03:00:48 +01:00
Geoff Brown
78ad3423b1
Bug 1393441
- Disable test_bug293235.xul for on-going frequent intermittent failures; r=me,test-only
2017-11-09 09:33:03 -07:00
Nika Layzell
3409141758
Bug 1414974 - Part 2: Switch many consumers to nsGlobalWindow{Inner,Outer}, r=smaug
...
This is a large patch which tries to switch many of the external consumers of
nsGlobalWindow to instead use the new Inner or Outer variants.
MozReview-Commit-ID: 99648Lm46T5
2017-11-09 10:44:47 -05:00
Christoph Kerschbaumer
6584da597b
Bug 1407891: Allow view-image to open a data: URI by setting a flag on the loadinfo. r=bz
2017-11-08 20:01:41 +01:00
Jonathan Watt
2322aebae3
Bug 1413217 - Fix some includes etc. in widget code. r=jimm
...
MozReview-Commit-ID: 8bW6WIPMun4
2017-10-12 17:03:35 +01:00
Marco Castelluccio
7cdad0f284
Bug 1413248 - Remove nsIContextMenuListener, nsIContextMenuListener2 and nsContextMenuInfo as they are unused. r=qdot
...
--HG--
extra : rebase_source : e219d10f4516a79c2503362c07e02429da490209
2017-10-31 17:23:15 +00:00
Christoph Kerschbaumer
6fbe557b4c
Bug 1412824: Refactor MaybeCloseWindow and allow to reuse the window close code from within nsExternalHelperAppService as well as nsDSURIContentListener. r=smaug
2017-11-03 13:23:25 +01:00
Christoph Kerschbaumer
3d0a1f002e
Bug 1403814 - Block toplevel data: URI navigations only if openend in the browser. r=smaug
2017-11-03 13:23:11 +01:00
Marco Castelluccio
e806915aa2
Bug 1412982 - Compile nsDownloadHistory only if Places is not used. r=mak
...
--HG--
extra : rebase_source : 40294c023f64dfb1e27e11add4f54c1de50fbf97
2017-11-02 17:30:01 +01:00
Kyle Machulis
be815f3caf
Bug 1412437 - Remove nsIDOMHTMLTextAreaElement; r=bz
...
MozReview-Commit-ID: JAON7Rd7IAo
2017-11-01 14:28:22 -07:00
Nika Layzell
a864cbc340
Bug 1401379 - Part 1: Make nsDocShell and nsDocLoader cycle collected, r=smaug
...
MozReview-Commit-ID: Bui924n8Kvn
2017-11-01 11:06:24 -04:00
Andrew Osmond
0e2b74f9d2
Bug 1404422 - Part 2. Make chrome test ignore generic, unrelated chrome URLs from events. r=tnikkel
2017-11-01 06:59:10 -04:00
Marco Castelluccio
184be31cf6
Bug 1413052 - Remove nsCommandHandler as it is unused. r=mossop
...
--HG--
extra : rebase_source : de588679698715a35ab02099635483d31a005b56
2017-10-31 00:15:32 +00:00
Samael Wang
f22b5529d8
Bug 1397512 - Part 1: Use LOAD_NORMAL_REPLACE in OnLinkClickSync if it's running inside an onload handler. r=smaug
...
MozReview-Commit-ID: BILgS0XTAIc
--HG--
extra : rebase_source : 76ec2c1b37ae6850ea216cfbc22ee292ec8c4d77
2017-10-26 14:13:46 +08:00
Andrew McCreight
0d44bb055a
Bug 1412137 - Fix up mode lines in docshell/. r=freesamael
...
MozReview-Commit-ID: 8xm0Ax7pqZF
--HG--
extra : rebase_source : c32694e2a5808c3de86601420d72800cfda4cfef
2017-10-26 16:03:44 -07:00
Edouard Oger
76547f53cc
Bug 1395460 p1 - Remove usages of about:accounts. r=tcsc
...
MozReview-Commit-ID: APdGc9avJDw
--HG--
extra : rebase_source : aaa788be5251607ebedcb5b690da0e2a1a64e2cb
2017-10-24 14:05:52 -04:00
Sebastian Hengst
93903f0306
Backed out 2 changesets (bug 1395460) for eslint failure at browser/components/uitour/UITour.jsm:556 (no return value from arrow function). r=backout on a CLOSED TREE
...
Backed out changeset 0bc6d186d609 (bug 1395460)
Backed out changeset 6c028123001d (bug 1395460)
2017-10-26 23:33:04 +02:00
Edouard Oger
58876ecbe9
Bug 1395460 p1 - Remove usages of about:accounts. r=tcsc
...
MozReview-Commit-ID: APdGc9avJDw
--HG--
extra : rebase_source : 9da1cea9fb6494c057bc6587a7bcbdb4ac127448
2017-10-24 14:05:52 -04:00
Masatoshi Kimura
dbd92543c6
Bug 1313150 - Remove |weak| parameter from nsIMutableArray methods. r=froydnj
...
MozReview-Commit-ID: 7JoD4VYzZp3
--HG--
extra : rebase_source : 5db437f1c34608aa223916874d62b48c59baeae8
2017-10-21 23:53:02 +09:00
Andrew McCreight
4648f443a8
Bug 1407740
- Fix a crash by setting a flag to true. r=bz
2017-10-20 16:11:26 -04:00
Jesse Ruderman
cad2954183
Bug 443655 - Add crashtest. r=me
2017-10-18 09:43:10 -04:00
Nicholas Nethercote
7f098bdb9c
Bug 1409227 (part 4) - Replace nsMemory::Clone(id, sizeof(nsID)) with nsID::Clone(id). r=mccr8.
...
This change requires introducing nsID::Clone(). Because it's infallible, the
patch also removes some redundant failure-handling code. (nsMemory::Clone() is
also infallible, so this code was redundant even before this change.)
--HG--
extra : rebase_source : ef22757d3fa814320490bf7e19e822b8f0c4bdc3
2017-10-18 10:39:20 +11:00
Sebastian Hengst
6cab3753eb
merge mozilla-central to mozilla-inbound. r=merge a=merge
2017-10-17 11:48:30 +02:00
Sebastian Hengst
32f7c8fec3
merge mozilla-inbound to mozilla-central. r=merge a=merge
...
MozReview-Commit-ID: 1h3kZyrtqSt
2017-10-17 11:45:16 +02:00
Christoph Kerschbaumer
ebfa77072c
Bug 1408451: Log to web console when blocking toplevel data: URI navigations. r=bz
2017-10-16 14:18:52 +02:00
Ethan Lin
f585fef0f1
Bug 1408296 - Enable some crashtests for webrender. r=kats
...
MozReview-Commit-ID: 543ZYLhacx8
--HG--
extra : rebase_source : 247ddffeba52e7a7fbe864c2644be66b164ceb24
2017-10-13 11:56:04 +08:00
Kris Maglione
4a767c7e6e
Bug 1404198: Part 2j - Switch to NS_NewTimer* everywhere else. r=njn
...
MozReview-Commit-ID: LmGIgfmNSmk
--HG--
extra : rebase_source : bf34e852beb0c8f6eafd09184c2e0cda95f95f83
2017-09-24 19:57:48 -07:00
Kyle Machulis
1cc8b01353
Bug 1406224 - Remove nsIDOMHTMLImageElement; r=bz
...
MozReview-Commit-ID: GCATWRt6qMo
--HG--
extra : rebase_source : 29854f1374c6ad318da0b5b68be23507667c3be4
2017-10-06 13:27:23 -07:00
Kris Maglione
5fdcb5a5d2
Bug 1407056: Part 1 - Provide more consistent principal/origin URL to content policies. r=bz,ckerschb
...
We're currently fairly vague and inconsistent about the values we provide to
content policy implementations for requestOrigin and requestPrincipal. In some
cases they're the triggering principal, sometimes the loading principal,
sometimes the channel principal.
Our existing content policy implementations which require or expect a loading
principal currently retrieve it from the context node. Since no current
callers require the principal to be the loading principal, and some already
expect it to be the triggering principal (which there's currently no other way
to retrieve), I chose to pass the triggering principal whenever possible, but
use the loading principal to determine the origin URL.
As a follow-up, I'd like to change the nsIContentPolicy interface to
explicitly receive loading and triggering principals, or possibly just
LoadInfo instances, rather than poorly-defined request
origin/principal/context args. But since that may cause trouble for
comm-central, I'd rather not do it as part of this bug.
MozReview-Commit-ID: LqD9GxdzMte
--HG--
extra : rebase_source : 41ce439912ae7b895e0a3b0e660fa6ba571eb50f
2017-10-12 15:43:55 -07:00
Sebastian Hengst
044775ad49
merge mozilla-central to mozilla-inbound. r=merge a=merge
2017-10-11 00:01:28 +02:00
evilpies@gmail.com
06beef32ba
Bug 1305237 LoadInfo changes to include all ancestors principals and window IDs, r=bz,mystor
...
MozReview-Commit-ID: 1IMi5MqTx7o
--HG--
extra : rebase_source : 373f1928987718fe3bc22306e0dd3ae13fc0cd9f
2017-10-10 09:54:00 -07:00
Peter Van der Beken
c705293c1c
Bug 1383059 - Remove instanceof for supplemental interfaces. Part 1: add Window.isChromeWindow and switch |instanceof [nsIDOM]ChromeWindow| to use it instead. r=bz.
...
--HG--
extra : rebase_source : 1efc83abae922c1a7b7eb855fd10a6333615044b
extra : source : 32277b160af4739c812ca2750a39ca111b16ea69
2017-10-06 13:47:27 +02:00
Ben Kelly
20f23200cd
Bug 1391693 P1 Rename nsIInterceptedChannel.cancel() to cancelInterception() r=jdm
2017-10-09 10:03:40 -07:00
Nicholas Nethercote
d225f7151b
Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro.
...
(Path is actually r=froydnj.)
Bug 1400459 devirtualized nsIAtom so that it is no longer a subclass of
nsISupports. This means that nsAtom is now a better name for it than nsIAtom.
MozReview-Commit-ID: 91U22X2NydP
--HG--
rename : xpcom/ds/nsIAtom.h => xpcom/ds/nsAtom.h
extra : rebase_source : ac3e904a21b8b48e74534fff964f1623ee937c67
2017-10-03 09:05:19 +11:00
L. David Baron
df95fa026f
Bug 1405875
- Remove now-unused nsIContentViewerFile interface. r=mats
...
This became unused as a result of the previous two patches, and the
earlier removal of nsRegressionTester::DumpFrameModel.
MozReview-Commit-ID: DoQ8C8XNCWW
2017-10-05 11:15:57 -07:00
L. David Baron
70c24e3e54
Bug 1405875
- Remove debug file mechanism from printing. r=mats
...
This was used only by nsRegressionTester::DumpFrameModel, which was
removed in the previous patch.
MozReview-Commit-ID: I8fS7vzlFQw
2017-10-05 11:15:57 -07:00
Wes Kocher
6dc323cfe9
Merge m-c to autoland, a=merge
...
MozReview-Commit-ID: Dxbv9TjDlDY
2017-10-04 16:47:41 -07:00
Brad Werth
cccd100f25
Bug 1376931 Part 2: Extend ContentViewer to allow reporting of effective full zoom level as determined by the device context. r=bz,heycam
...
MozReview-Commit-ID: EoVp1DwAl0j
--HG--
extra : rebase_source : 59e5112caa73e675139b5fd93f03afcc13a9745d
2017-09-27 14:06:37 -07:00
Sebastian Hengst
b8b7f52566
Backed out changeset 3adba9da5967 (bug 1376931) for bustage at layout/style/nsMediaFeatures.cpp:296: 'class nsPresContext' has no member named 'GetEffectiveFullZoom'; did you mean 'GetDeviceFullZoom'. r=backout on a CLOSED TREE
2017-10-05 00:15:51 +02:00
Brad Werth
1450446d11
Bug 1376931 Part 2: Extend ContentViewer to allow reporting of effective full zoom level as determined by the device context. r=bz,heycam
...
MozReview-Commit-ID: EoVp1DwAl0j
--HG--
extra : rebase_source : b0bdf52adb0e44b51c4bbeb33668c35f559b8464
2017-09-27 14:06:37 -07:00
Christoph Kerschbaumer
04a3ca2e32
Bug 1403641: Allow data: URI downloads even if data: URI navigations are blocked. r=bz
2017-10-04 08:43:56 +02:00
Catalin Badea
f8162c4bfd
Bug 651120 - Remove index argument from content removed/appended/inserted notifications. r=peterv
2017-10-03 11:09:08 +01:00
Sebastian Hengst
7374adcf6f
Backed out changeset e83481bd6963 (bug 1401379) for failing wpt-reftest /infrastructure/reftest-wait.html and unexpected passes in /webvtt/ and leaks in browser-chrome, all on OS X and Windows. r=backout on a CLOSED TREE
2017-10-02 19:59:42 +02:00
Sebastian Hengst
592dda1465
Backed out changeset 436ecd081ffa (bug 1401379)
2017-10-02 19:57:06 +02:00
Sebastian Hengst
7edab52dde
Backed out changeset 318b85f85682 (bug 1401379)
2017-10-02 19:57:00 +02:00
Nika Layzell
8fe35461a1
Bug 1401379 - Part 8: Avoid using mDocShell to check if the window has been closed, r=smaug
...
MozReview-Commit-ID: CyNanVzyyNp
2017-10-02 11:58:03 -04:00
Nika Layzell
ca2daae3e9
Bug 1401379 - Part 7: Don't try to break nsDocShell <-> nsGlobalWindow references when cleaning up, r=smaug
...
MozReview-Commit-ID: CnAiOaAOTkw
2017-10-02 11:58:03 -04:00
Nika Layzell
7c6f663101
Bug 1401379 - Part 1: Make nsDocShell and nsDocLoader cycle collected, r=smaug
...
MozReview-Commit-ID: Bui924n8Kvn
2017-10-02 11:58:01 -04:00
Wes Kocher
61c098eae7
Merge inbound to m-c a=merge CLOSED TREE
...
MozReview-Commit-ID: 3pMHYV9oXLm
--HG--
rename : dom/base/nsReferencedElement.cpp => dom/base/IDTracker.cpp
rename : dom/base/nsReferencedElement.h => dom/base/IDTracker.h
2017-09-27 16:51:49 -07:00
Chris Peterson
14c40f3dac
Bug 1402666 - Part 1: Replace Replace("") with ReplaceLiteral(""). r=erahm
...
MozReview-Commit-ID: s2hrTSkBiJ
--HG--
extra : rebase_source : d3b3551ed7ed1d5c8f70fc98d72510a13868ada1
extra : source : 1c45e10702e7884cd536a25b1d39c3de90fd2914
2017-09-15 19:22:58 -07:00
Wes Kocher
acf8913934
Merge m-c to inbound, a=merge
...
MozReview-Commit-ID: IsbKCdZU2Ui
2017-09-26 17:14:31 -07:00
Kartikaya Gupta
1d607209de
Bug 1389000 - Disable crashtests that are crashing with assertion failures with layers-free enabled. r=jrmuizel
...
MozReview-Commit-ID: 4wyEnrBdXTE
--HG--
extra : rebase_source : 7b45040fdd0a63260ec2f6db90db4ebd8044b4ef
2017-09-26 14:49:21 -04:00
Kyle Machulis
a3876f104a
Bug 1389650 - Remove nsIDOMHTMLAnchorElement; r=bz
...
Removes the XPCOM interface for nsIDOMHTMLAnchorElement, replacing it
with binding class usage.
MozReview-Commit-ID: 7v0bKlY7Fax
2017-09-26 11:41:28 -07:00
Sebastian Hengst
5ed0b93c50
Backed out changeset 26805294a547 (bug 1389650)
2017-09-26 10:47:41 +02:00
Samael Wang
6ee7658d7e
Bug 1328501 - Part 2: Add test case. r=smaug
...
MozReview-Commit-ID: HpsK5HeHRO0
--HG--
extra : rebase_source : d6896ddcb938c377a9e0ca26c70782cf974dad3e
2017-09-11 18:09:18 +08:00
Samael Wang
33a5d73d1a
Bug 1328501 - Part 1: Apply iframe history if it contains only initial about:blank viewer. r=smaug
...
MozReview-Commit-ID: AhRwSxYGdZu
--HG--
extra : rebase_source : 1a6a2aa7280419f3fdd0fc5befa7d2f16b9a2ea5
2017-09-07 16:27:35 +08:00
Sebastian Hengst
72d1ea4a4b
merge mozilla-central to autoland. r=merge a=merge
2017-09-27 11:49:57 +02:00
Nicholas Nethercote
dfd3b7e7aa
Bug 1400459 (part 2) - Devirtualize nsIAtom. r=heycam.
...
This patch merges nsAtom into nsIAtom. For the moment, both names can be used
interchangeably due to a typedef. The patch also devirtualizes nsIAtom, by
making it not inherit from nsISupports, removing NS_DECL_NSIATOM, and dropping
the use of NS_IMETHOD_. It also removes nsIAtom's IIDs.
These changes trigger knock-on changes throughout the codebase, changing the
types of lots of things as follows.
- nsCOMPtr<nsIAtom> --> RefPtr<nsIAtom>
- nsCOMArray<nsIAtom> --> nsTArray<RefPtr<nsIAtom>>
- Count() --> Length()
- ObjectAt() --> ElementAt()
- AppendObject() --> AppendElement()
- RemoveObjectAt() --> RemoveElementAt()
- ns*Hashtable<nsISupportsHashKey, ...> -->
ns*Hashtable<nsRefPtrHashKey<nsIAtom>, ...>
- nsInterfaceHashtable<T, nsIAtom> --> nsRefPtrHashtable<T, nsIAtom>
- This requires adding a Get() method to nsRefPtrHashtable that it lacks but
nsInterfaceHashtable has.
- nsCOMPtr<nsIMutableArray> --> nsTArray<RefPtr<nsIAtom>>
- nsArrayBase::Create() --> nsTArray()
- GetLength() --> Length()
- do_QueryElementAt() --> operator[]
The patch also has some changes to Rust code that manipulates nsIAtom.
MozReview-Commit-ID: DykOl8aEnUJ
--HG--
extra : rebase_source : 254404e318e94b4c93ec8d4081ff0f0fda8aa7d1
2017-09-26 08:33:21 +10:00
Kyle Machulis
e2ace7d91f
Bug 1389650 - Remove nsIDOMHTMLAnchorElement; r=bz
...
Removes the XPCOM interface for nsIDOMHTMLAnchorElement, replacing it
with binding class usage.
MozReview-Commit-ID: 7v0bKlY7Fax
2017-09-25 23:12:44 -07:00
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
Alphan Chen
96889965b9
Bug 1380323 - Revise the behavior of scrolling to fragments. r=ehsan
2017-08-22 16:14:51 +08:00
Wei-Cheng Pan
fad0962338
Bug 1387625 - Fix TIME_TO_DOM_LOADING_MS record timing. r=smaug
...
nsDocument::mTiming can be nullptr when the document is still loading, so we
should not record ready state probes in nsDOMNavigationTiming.
Also stops recording probes from parent process because we only need data from
real web contents.
MozReview-Commit-ID: 8XUHC8yKobO
--HG--
extra : rebase_source : 2227ba85d55496f2e8dfa4aa91d8f9f966684c6f
2017-08-23 11:09:24 +08:00
Mike Conley
a48193a566
Bug 1385453 - Disable tab warming in browser_bug343515.js test. r=billm
...
MozReview-Commit-ID: 9DOv9drNi9n
--HG--
extra : rebase_source : f7927107e5374404f2043550e0cd1c9ee46f5991
2017-08-23 16:43:55 -04:00
Nicholas Nethercote
f582d96b98
Bug 1390428
(part 9) - Remove nsXPIDLCString. r=erahm.
...
This is straightforward, with only two notable things.
- `#include "nsXPIDLString.h" is replaced with `#include "nsString.h"`
throughout, because all nsXPIDLString.h did was include nsString.h. The
exception is for files which already include nsString.h, in which case the
patch just removes the nsXPIDLString.h inclusion.
- The patch removes the |xpidl_string| gtest, but improves the |voided| test to
cover some of its ground, e.g. testing Adopt(nullptr).
--HG--
extra : rebase_source : 452cc4a08046a1adb1a8099a7e85a1917de5add8
2017-08-17 15:29:03 +10:00
Nicholas Nethercote
9160e1cba8
Bug 1390428
(part 6) - Remove nsXPIDLCString class members. r=erahm.
...
These are all straightforward except for InternalLoadEvent::mTypeHint, which
requires a bit of care to preserve existing behaviour.
--HG--
extra : rebase_source : 9b152122b011cf49b9acccdc98b4693548b8bdd2
2017-08-17 14:17:27 +10:00
Eric Rahm
a33f11e0f5
Bug 1391803 - Use nsStringFwd.h for forward declaring string classes. r=froydnj
...
We should not be declaring forward declarations for nsString classes directly,
instead we should use nsStringFwd.h. This will make changing the underlying
types easier.
--HG--
extra : rebase_source : b2c7554e8632f078167ff2f609392e63a136c299
2017-08-16 16:48:52 -07:00
Samael Wang
437fb82030
Bug 1375833 - Part 4.1: Revert test_bug123696.html & update file_bug1326251.html. r=smaug
...
Revert test_bug123696.html to what it was before bug 1326251 laned. Update
file_bug1326251.html to reflect the change that static frame entries won't be
cleared on reloading.
MozReview-Commit-ID: F93ZBNv1Gj
--HG--
extra : rebase_source : e6573c38d03656a41b5e016bc402ef0c579a1797
2017-08-21 18:28:53 +08:00
Samael Wang
4c4325a56c
Bug 1375833 - Part 3: Add test case. r=smaug
...
MozReview-Commit-ID: L86sMEzfU4h
--HG--
extra : rebase_source : da7c3919a2ce66fc2fa9e8cf09f826a2e463d1b3
2017-08-11 18:30:49 +08:00
Samael Wang
363b9e9d45
Bug 1375833 - Part 2: Set mHistoryID to aSHEntry->DocshellID() in both reload and history navigation. r=smaug
...
The root cause of bug 1326845 is that reloading would apply frame history entries
without setting new child docshells' mHistoryID to the entrys' DocshellID.
So SHistory can not find corresponding entries for subframes in a consequent
GoBack(), and cause history navigation being broken (it would return
NS_ERROR_FAILURE).
MozReview-Commit-ID: 6syGYkoP1eZ
--HG--
extra : rebase_source : ba0edd6ee121cc81d9e7c6e825e17844b26c730d
2017-08-11 14:49:09 +08:00
Samael Wang
d281a28f21
Bug 1375833 - Part 1: Do not clear subframe history on normal reload. r=smaug
...
In bug 1326251 we made gecko aggressively clear frame history. It turns out to
be too aggressive comparing to all other major browsers. This patch reverses
the behavior, so that only force reload and fresh would clear frame history,
but not normal reload.
MozReview-Commit-ID: EYVaA13cp6b
--HG--
extra : rebase_source : 1edd23d0fc7ba3d8f319d2b8c3d9034befa8a818
2017-08-11 14:47:20 +08:00
Joel Maher
b97e05e9b4
Bug 1386393 - remove old docshell/test/unit/test_bug414201_jfif.js. rs=paolo
...
MozReview-Commit-ID: A5Ip1e8Fw2r
2017-08-22 15:45:39 -04:00
James Willcox
f029ff1bf4
Bug 1369815 - Add display mode to nsIDocShell and use it for media queries r=heycam
...
MozReview-Commit-ID: EVT0fTk6GfC
2017-08-22 09:08:39 -05:00
Christoph Kerschbaumer
e991a21b16
Bug 1370843 - Provide correct triggeringPrincipal for dropLinks. r=smaug,tooru
2017-08-22 10:07:03 +02:00
Christoph Kerschbaumer
9b81c8b695
Bug 1391011: CSP: Fix upgrade-insecure-requests for toplevel navigations when base it https. r=smaug
2017-08-21 08:57:14 +02:00
Xidorn Quan
179961b3c9
Bug 1383845 - Enable tests disabled for bug 1383845. r=TYLin
...
MozReview-Commit-ID: Glao9d9PiUF
--HG--
extra : rebase_source : cfc70fcb350a7ee8e325ba1bda0bcdead62d786e
2017-08-17 10:51:59 +10:00
Masatoshi Kimura
9ab81a1042
Bug 1389723 - Remove @deprecated nsIMIMEInputStream.addContentLength. r=dragana
...
MozReview-Commit-ID: 9b45aozatin
--HG--
extra : rebase_source : 636da171929fe6ecd69de5c68d9ed4064a3a7b09
2017-08-12 13:34:02 +09:00
Gijs Kruitbosch
1840a17b2a
Bug 776167 - allow going back to about:newtab, r=smaug,ursula
...
MozReview-Commit-ID: 8FTPI30RqYL
--HG--
extra : rebase_source : 693cecd231ebef219edbf2985910589c266101ae
2017-08-10 10:46:19 +01:00
Nicholas Nethercote
a83fefd956
Bug 1390036 (part 1) - Remove most remaining uses of nsXPIDLString. r=erahm.
...
CompareCacheHashEntry::mCrit[] is the only case where the nsXPIDLString-ness
was important. The patch adds an explicit SetIsVoid() call to that class's
constructor and changes some null checks to IsVoid() checks.
--HG--
extra : rebase_source : e68befcde4dd098bac2a550bc666eaf3bf1298d7
2017-08-11 18:31:22 +10:00
Sebastian Hengst
c5721643b5
Backed out changeset 3b956ceaaf8b (bug 1369815)
2017-08-15 18:30:29 +02:00
James Willcox
a976136fdd
Bug 1369815 - Add display mode to nsIDocShell and use it for media queries r=heycam
...
MozReview-Commit-ID: EVT0fTk6GfC
2017-08-15 09:29:56 -05:00
Carsten "Tomcat" Book
bcbc42d4e3
Merge mozilla-central to mozilla-inbound
2017-08-15 13:09:01 +02:00
Yoshi Huang
60b7d9f697
Bug 1390398: fix failures on windows for new data: URI inheritance model. r=smaug
2017-08-15 18:09:28 +08:00
Henry Chang
9e499caed6
Bug 1386391 - Poll to check if a document has loaded rather than a definite timeout. r=smaug
...
MozReview-Commit-ID: B293QZe3LIz
--HG--
extra : rebase_source : ae336c328b48799a3a952f8d14cb8532fc179a58
extra : source : ee4a89243a26456b495737d889402619d3e186cc
2017-08-14 10:34:04 +08:00
Kyle Machulis
649634a721
Bug 1387184 - Remove nsIDOMHTMLEmbedElement; r=bz
...
Removes nsIDOMHTMLEmbedElement and all references. HTML elements are
now handled by WebIDL. With the deprecation of extensions, XPCOM
interfaces to HTML elements are no longer needed.
MozReview-Commit-ID: DI4XVvdgPDI
--HG--
extra : rebase_source : 74bd92619e3d1db04c3dd40ec3022474fe1d647c
2017-08-09 12:05:08 -07:00
Wes Kocher
936a9461f6
Merge inbound to m-c a=merge
...
MozReview-Commit-ID: KRQeIGmhAPA
2017-08-10 18:14:34 -07:00
Masayuki Nakano
032d6a0a9c
Bug 1387406 - part2: nsIDocShell should have GetHTMLEditor() and SetHTMLEditor() r=smaug
...
C++ code should be accessible to editor of nsDocShell. However, nsIDocShell needs to have the methods. Therefore, this patch assumes that nsDocShell is the only subclass of nsIDocShell and creates 2 inline methods to access nsDocShell methods.
MozReview-Commit-ID: ByXtTB5X4cB
--HG--
extra : rebase_source : d68e407e35fa7c6f528ad325fa7925f83f962573
2017-08-04 22:12:03 +09:00
Masayuki Nakano
339262dc41
Bug 1387406 - part1: nsDocShellEditorData should store editor as HTMLEditor r=smaug
...
The editor stored by nsDocShellEditorData should be always HTMLEditor. So, it should store the editor as HTMLEditor and its getter and setter should treat the editor as HTMLEditor too.
MozReview-Commit-ID: GgfCd3zB887
--HG--
extra : rebase_source : 6c838a68911d47dce3aaf2dfc8bc6848e186e562
2017-08-04 21:42:13 +09:00
Honza Bambas
9d703fed04
Bug 1388192 - Drop result principal URI from a cloned session history entry when opening view-source: page. r=bz
2017-08-09 11:50:00 -04:00
Valentin Gosu
3b95ce67d2
Bug 1380617 - Fix tests that use nsIURI.host expecting unicode domain name r=smaug,honzab
...
MozReview-Commit-ID: GKnbpc8GMb2
2017-08-09 17:44:06 +02:00
Carsten "Tomcat" Book
e02df09b7c
Merge mozilla-central to mozilla-inbound
2017-08-08 13:23:59 +02:00
Nicholas Nethercote
1a6f1a62fa
Bug 1387381 - Remove nsXPIDLString local variables. r=erahm.
...
nsXPIDLStrings are marked as VOIDED upon initialization. Most of these local
nsXPIDLString variables are immediately set via getter_Copies(), which will
either assign a string value (using Adopt()) or do SetIsVoid(). These can be
trivially converted to nsString, which will get the same treatment.
The patch suitably converts the remaining nsXPIDLString local variable as well.
--HG--
extra : rebase_source : 5fff9f2c6844559198f601853f8db08564add7d5
2017-08-08 16:07:55 +10:00
Blake Kaplan
263a31a811
Bug 1374460 - Remove all code related to showModalDialog. r=smaug
...
MozReview-Commit-ID: GCGwBfIx2SJ
--HG--
extra : rebase_source : 44108de8ebbd9c0d8ed9ab69d50ad973c4883b6e
2017-07-13 16:42:03 -07:00
Carsten "Tomcat" Book
a24b9505f9
Merge mozilla-central to autoland
2017-08-07 13:16:54 +02:00
Nicholas Nethercote
f941156987
Bug 1386600 - Change nsIStringBundle methods to return |AString| instead of |wstring|. r=emk,sr=dbaron.
...
This removes about 2/3 of the occurrences of nsXPIDLString in the tree. The
places where nsXPIDLStrings are null-checked are replaced with |rv| checks.
The patch also removes a couple of unused declarations from
nsIStringBundle.idl.
Note that nsStringBundle::GetStringFromNameHelper() was merged into
GetStringFromName(), because they both would have had the same signature.
--HG--
extra : rebase_source : ac40bc31c2a4997f2db0bd5069cc008757a2df6d
2017-08-04 14:40:52 +10:00
Christoph Kerschbaumer
2e072b2667
Bug 1387812 - Convert docshell/test/test_bug694612.html to comply with new data: URI inheritance model. r=smaug
2017-08-06 12:13:08 +02:00
Henry Chang
a93f3d2ba4
Bug 1375277 - Move Safe Browsing UI events to a separate telemetry probe. r=francois
...
MozReview-Commit-ID: KDAklsznekw
--HG--
extra : rebase_source : 20d81369b18b12d9b5f6670d92bf3c7215c8c9a9
extra : intermediate-source : a2d99a6b07bb015f0bdc5c1687e250086ed09a5c
extra : source : 5460dbfebee4f99580b306a9b0ec754b890f5959
2017-08-02 14:01:44 +08:00
Henry Chang
af3b11c151
Bug 1375277 - New safebrowsing threat type "POTENTIALLY_HARMFUL_APPLICATION" introduced by v4. r=francois
...
As our threattype-listname conversion design, "goog-harmful-proto" is allocated
for this new threat type. This threat type is mainly for mobile.
MozReview-Commit-ID: G9GbgmHHHfp
--HG--
extra : rebase_source : 0681fcd9322b94451a86eafe57bf1ccc4b89db30
extra : intermediate-source : 28b0502d9add81beeae58a2c33f9fd5839d4d544
extra : source : 646f02f15131aa98ad37015b0a641304a3271796
2017-07-27 15:37:57 +08:00
Masatoshi Kimura
8b713b2b0f
Bug 1375125 - Stop using nsILocalFile in the tree. r=froydnj
...
This mechanically replaces nsILocalFile with nsIFile in
*.js, *.jsm, *.sjs, *.html, *.xul, *.xml, and *.py.
MozReview-Commit-ID: 4ecl3RZhOwC
--HG--
extra : rebase_source : 412880ea27766118c38498d021331a3df6bccc70
2017-08-04 17:49:22 +09:00
Masatoshi Kimura
90da924fda
Bug 1375123 - Remove nsIDOMWindowInternal. r=Ehsan
...
MozReview-Commit-ID: 2jjGFsxsLTz
--HG--
extra : rebase_source : 5cb538ff53369cb724b0d336de1e74dd8a7d35c1
2017-08-03 20:33:51 +09:00
Wes Kocher
2196b718d3
Merge inbound to central, a=merge
...
MozReview-Commit-ID: DlSLhaepjeU
2017-08-03 18:06:53 -07:00
Amy Chung
1f101b071c
Bug 1331680 - Part 1: Send required cookies to the content process on demand. r=jdm
2017-08-03 19:00:41 +08:00
Yoshi Huang
bf7f152bbe
Bug 1384825 : update browser_loadDisallowInherit.js for new data: URI origin model. r=smaug
...
Configured browser_loadDisallowInherit.js to run with legacy data: URI
behavior, also write a new browser_dataURI_unique_opaque_origin.js for
the new behavior.
2017-08-03 09:35:45 +08:00
Wes Kocher
baf6cddc4c
Merge inbound to central, a=merge
...
MozReview-Commit-ID: 9NFjSEt96iT
2017-08-02 17:11:51 -07:00
Michael Layzell
93173eaebd
Bug 1373672 - Part 3: Expose childOffset from nsIDocShell to use in nsSessionStoreUtils, r=ttaubert, r=smaug
...
The reasoning behind this is that with this change, removing a non-dynamic
docshell from the document dynamically shouldn't affect the indexes which we use
for both recording and restoring data in child docshells.
MozReview-Commit-ID: JIK8GBSWDEF
* * *
fixup
From c2cb8e33211348c36b1ce18bb62e6465fa46d3ae Mon Sep 17 00:00:00 2001
2017-08-02 19:08:19 +02:00
Michael Layzell
1b1fa80957
Bug 1373672 - Part 2: nsDocShell::mChildOffset should be signed, r=smaug
...
All consumers of this value expect the passed-in value to be signed, and a
negative value is stored into this variable (-1) when the docshell was
dynamically added. It makes more sense for this to be signed.
MozReview-Commit-ID: 8iKDOAx7O2R
2017-08-02 19:08:12 +02:00
Masatoshi Kimura
f143125cc2
Bug 1326520 - Rename nsIURI.path to pathQueryRef. r=valentin.gosu
...
MozReview-Commit-ID: DqJdTGopR9G
--HG--
extra : rebase_source : e8c9eb03468c075b79013b6e0bd8b367229c24cd
2017-07-29 20:50:21 +09:00
Sebastian Hengst
98f94d3aea
Backed out changeset dc318b0913b9 (bug 1373672)
2017-08-01 12:38:25 +02:00
Sebastian Hengst
73c25eaf60
Backed out changeset 36bb09c4b28e (bug 1373672)
2017-08-01 12:38:20 +02:00
Michael Layzell
2c2323bccd
Bug 1373672 - Part 3: Expose childOffset from nsIDocShell to use in nsSessionStoreUtils, r=ttaubert, r=smaug
...
The reasoning behind this is that with this change, removing a non-dynamic
docshell from the document dynamically shouldn't affect the indexes which we use
for both recording and restoring data in child docshells.
MozReview-Commit-ID: JIK8GBSWDEF
2017-08-01 11:22:53 +02:00
Michael Layzell
2d08ef7a27
Bug 1373672 - Part 2: nsDocShell::mChildOffset should be signed, r=smaug
...
All consumers of this value expect the passed-in value to be signed, and a
negative value is stored into this variable (-1) when the docshell was
dynamically added. It makes more sense for this to be signed.
MozReview-Commit-ID: 8iKDOAx7O2R
2017-08-01 11:20:56 +02:00
Christoph Kerschbaumer
c9a21fe70b
Bug 1385981 - Convert docshell/test/navigation/test_sessionhistory.html to comply with new data: URI inheritance model. r=smaug
2017-08-01 10:59:05 +02:00
Christoph Kerschbaumer
913d05755a
Bug 1385824 - Convert docshell/test/test_bug675587.html to comply with new data: URI inheritance model. r=smaug
2017-08-01 10:59:42 +02:00
Sebastian Hengst
915c63c332
merge mozilla-central to mozilla-inbound. r=merge a=merge
2017-07-31 11:28:37 +02:00
Nicholas Nethercote
72c884bf74
Bug 1384835 (part 3, attempt 2) - Remove the Preferences::Get*CString() variants that return nsAdoptingCString. r=froydnj.
...
--HG--
extra : rebase_source : d317b25be2ec21d1a60d25da3689e46cdce0b649
2017-07-31 14:28:48 +10:00
Honza Bambas
667a52f1fa
Bug 1380012 - Copy nsSHEntry::mResultPrincipalURI in its copy constructor. r=bz
2017-07-29 13:04:39 -04:00
Kyle Machulis
ffa9be1bed
Bug 1279218 - Remove Applet tag; r=bz
...
Removes applet tag interfaces, and changes HTML5 parser to output
HTMLUnknownElement when tag is found. Removes tag process from various
places in the browser.
MozReview-Commit-ID: 2zHhK2U2esX
--HG--
extra : rebase_source : d06ecaffd1cb656301e29b900bafde4c68a4606e
2017-07-10 16:00:30 -07:00
J. Ryan Stinnett
c79cb3fbb1
Bug 1380053 - Stylo reftest annotations for all OSes. r=manishearth
...
MozReview-Commit-ID: JNsNUOZfd2e
--HG--
extra : rebase_source : 05a71f9a0fe484c93931fb230cf0752a3b1b8b00
2017-07-20 22:02:00 -05:00
Carsten "Tomcat" Book
d360d49d2a
merge mozilla-inbound to mozilla-central a=merge
2017-07-27 10:57:25 +02:00
Xidorn Quan
d6ade853bf
Bug 1384162 part 3 - Move document container setting into nsContentDLF::CreateBlankDocument before adding any nodes. r=bz
...
MozReview-Commit-ID: KdXQH5eRD7a
--HG--
extra : rebase_source : 0f53d2bc304a3873c12c952794b8b665b9bc3999
2017-07-26 20:02:58 +10:00
Xidorn Quan
ae7bb9dd45
Bug 1384162 part 2 - Mondernize nsContentDLF::CreateBlankDocument. r=bz
...
MozReview-Commit-ID: CxAeysZbbuw
--HG--
extra : rebase_source : 86e3a24c20db5cd8db958333ab61e2aafa0865aa
2017-07-26 19:47:18 +10:00
Xidorn Quan
1358c75c5d
Bug 1384162 part 1 - DeCOMtaminate nsContentDLF::CreateBlankDocument. r=bz
...
MozReview-Commit-ID: 1KNNSIqrmZh
--HG--
extra : rebase_source : 8429bdd18f2c55acde245c4b4381735aff635042
2017-07-26 19:32:45 +10:00
Bevis Tseng
95b18d794e
Bug 1382172
- Name nsITimerCallback instances in native implementation. r=billm
...
--HG--
extra : rebase_source : 84de1abfcc30a6964144c2e6718a508c71027b65
2017-07-27 02:18:20 +08:00
Bevis Tseng
a7505864a8
Bug 1378930 - Part 2: Remove the aName parameter from SchedulerGroup/DocGroup/DispatcherTrait. r=billm
...
--HG--
extra : rebase_source : 11319e568a51d16754a6a9990f76c35c86c2bda7
2017-07-26 16:13:35 +08:00
Yoshi Huang
ab7ac78b9c
Bug 1382531 - Part 2: add pref for docshell/base/crashtests/914521.html. r=smaug
...
I found that use a seperate document will have differnet behavior than
the original test, so configured this test will run with pref off.
2017-07-25 09:56:18 +08:00
Yoshi Huang
7036b3761f
Bug 1382531 - Part 1: rewrite crashtest for data: URI is unique opaque origin. r=smaug
2017-07-25 09:56:02 +08:00
Wes Kocher
fd09155f06
Merge m-c to inbound, a=merge
...
MozReview-Commit-ID: 418vKEKrk3n
2017-07-24 18:10:56 -07:00
Carsten "Tomcat" Book
b3e81e29a0
Merge mozilla-central to autoland
2017-07-24 15:00:31 +02:00
Sylvestre Ledru
ca5e1f2280
Bug 1383657 - Fix the incorrectly placed 'break;' in the switch/case declaration r=mayhemer=mayhemer
...
MozReview-Commit-ID: 3BmLPWOLovj
--HG--
extra : rebase_source : 1070f1a07e893217b1b71329d8856734403960bc
2017-07-24 11:29:01 +02:00
Christoph Kerschbaumer
9c97294062
Bug 1331351: Block toplevel window data: URI navigations. r=smaug,francois
2017-07-24 18:51:21 +02:00
Yoshi Huang
a4f1345f5b
Bug 1383011 : rewrite test_principalInherit.xul. r=smaug
...
Use legacy data: URI behavior to make this test simpler.
If we were to use a new document for the iframe, we need to figure out
how to do postMessage from content side to a XUL window
2017-07-24 10:01:51 +08:00
Honza Bambas
0fbf49856d
Bug 1381702 - Bypass cache when (Ctrl-)F5 refreshing a page that reloads because of charset definition late in the markup. r=bz
...
This adds two new load types: LOAD_RELOAD_CHARSET_CHANGE_BYPASS_PROXY_AND_CACHE, LOAD_RELOAD_CHARSET_CHANGE_BYPASS_CACHE which are used when charset reaload is invoked and the original load was a cache-bypassing load.
2017-07-21 06:15:00 -04:00
Masatoshi Kimura
8ed4a80a4e
Bug 1322874 - Get rid of nsIURI.originCharset. r=valentin.gosu
...
nsIURI.originCharset had two use cases:
1) Dealing with the spec-incompliant feature of escapes in the hash
(reference) part of the URL.
2) For UI display of non-UTF-8 URLs.
For hash part handling, we use the document charset instead. For pretty
display of query strings on legacy-encoded pages, we no longer care to them
(see bug 817374 comment 18).
Also, the URL Standard has no concept of "origin charset". This patch
removes nsIURI.originCharset for reducing complexity and spec compliance.
MozReview-Commit-ID: 3tHd0VCWSqF
--HG--
extra : rebase_source : b2caa01f75e5dd26078a7679fd7caa319a65af14
2017-08-02 20:43:30 +09:00
Yoshi Huang
abec4b9645
Bug 1380263 - data: URI should inherit origin attributes. r=smaug
2017-07-19 14:41:40 +08:00
Boris Zbarsky
8fd50f23d4
Bug 1379762 part 2. Use a more reliable test to figure out when we can skip firing onload in nsDocumentViewer::LoadComplete. r=smaug
...
Unfortunately, GetRestoringDocument can be false by the time we reach
LoadComplete, if part of the restoration process managed to set up and then
remove onload blockers. If that happens, we still don't want to fire a load
event for a document that has already has one fired.
Note that we could also use a boolean on the document to record whether we've
fired a load event, as long as we were careful to unset it when the readyState
transitions backwards from COMPLETE (e.g. document.open). It's not clear which
approach is more robust.
2017-07-17 23:21:41 -04:00
Boris Zbarsky
24a1bc48da
Bug 1379762 part 1. Don't call MediaFeaturesChanged if our override device pixel ratio is set to its current value. r=dbaron
2017-07-17 23:21:41 -04:00
Nicholas Nethercote
c86dc10505
Bug 1380227 - Avoid many UTF16toUTF8 and UTF8toUTF16 conversions in nsStringBundle. r=emk.
...
Most of the names passed to nsIStringBundle::{Get,Format}StringFromUTF8Name
have one of the two following forms:
- a 16-bit C string literal, which is then converted to an 8-bit string in
order for the lookup to occur;
- an 8-bit C string literal converted to a 16-bit string, which is then
converted back to an 8-bit string in order for the lookup to occur.
This patch introduces and uses alternative methods that can take an 8-bit C
string literal, which requires changing some signatures in other methods and
functions. It replaces all C++ uses of the old methods.
The patch also changes the existing {Get,Format}StringFromName() methods so
they take an AUTF8String argument for the name instead of a wstring, because
that's nicer for JS code.
Even though there is a method for C++ code and a different one for JS code,
|binaryname| is used so that the existing method names can be used for the
common case in both languages.
The change reduces the number of NS_ConvertUTF8toUTF16 and
NS_ConvertUTF16toUTF8 conversions while running Speedometer v2 from ~270,000 to
~160,000. (Most of these conversions involved the string
"deprecatedReferrerDirective" in nsCSPParser.cpp.)
--HG--
extra : rebase_source : 3bee57a501035f76a81230d95186f8c3f460ff8e
2017-07-12 15:13:37 +10:00
Junior Hsu
ab6f1793a2
Bug 1373198 - Part 8: disable rcwn for dom mochitest tests which require deterministic cache behavior, r=smaug
2017-07-11 20:11:00 +02:00
Junior Hsu
daf1b50996
Bug 1373198 - Part 3-1: disable rcwn for dom mochitest tests which require deterministic cache behavior, r=bz
2017-07-11 02:04:00 +02:00
Yoshi Huang
94d1d69dc1
Bug 1373513 - Part 1: data:image, data:css, and data:fonts should be same origin. r=smaug
...
For font-face
https://drafts.csswg.org/css-fonts-3/#font-fetching-requirements
/* data url's with no redirects are treated as same origin */
src: url("data:application/font-woff;base64,...");
For image
https://html.spec.whatwg.org/multipage/images.html#updating-the-image-data
Step 12
⌛ Fetch request. Let this instance of the fetching algorithm be
associated with image request.
This will go to Fetch spec then.
For <link rel="stylesheet" href="data:text/css" ...>
https://html.spec.whatwg.org/multipage/semantics.html#obtaining-a-resource-from-a-link-element
Step 10
Fetch request.
This will also go to Fetch spec then.
[Fetch] specification,
https://fetch.spec.whatwg.org/#main-fetch , step 12,
request’s current url’s scheme is "data"
1. Set request’s response tainting to "basic".
And from
https://html.spec.whatwg.org/multipage/urls-and-fetching.html#terminology-3
A response whose type is "basic", "cors", or "default" is
CORS-same-origin.
For subresource loading using data: URI, it should be treated as same
origin.
2017-07-12 11:00:13 +08:00
Yoshi Huang
71b8c7686e
Bug 1377492 - fix mochitest-1 failure in docshell when data: URI is a unique origin. r=smaug
...
When we turn on the pref security.data_uri.unique_opaque_origin to make
data URI is unique origin, the following tests will fail because now
data document is treated as cross origin, so we replace data URIs with
seperate files, hence it will still in the same origin.
2017-07-12 10:35:54 +08:00
Sylvestre Ledru
4e9cf83ee8
Bug 1378712 - Remove all trailing whitespaces r=Ehsan
...
MozReview-Commit-ID: Kdz2xtTF9EG
--HG--
extra : rebase_source : 7235b3802f25bab29a8c6ba40a181a722f3df0ce
2017-07-06 14:00:35 +02:00
J. Ryan Stinnett
9679cb9dce
Bug 1371457 - Change restyle marker data to animation state. r=bholley,gregtatum
...
Stylo doesn't have a good equivalent for restyle hints to expose in markers and
the ones exposed for Gecko aren't very accurate either, so we don't want to
expose the restyle hint anymore.
At the same time, several animation restyle tests currently use the hint inside
the marker to check when animation-only restyles have happened. We can preserve
this by changing the data inside the marker to be a flag for whether the restyle
is animation only, which we know for both Gecko and Stylo.
MozReview-Commit-ID: 8L8KU8Ush7P
--HG--
extra : rebase_source : 4eef80653c1ef79ee1539d27fe6a70fbfaf441ad
2017-06-28 11:59:28 -07:00
Yoshi Huang
c6b138004a
Bug 1376592 - rewrite test_triggeringprincipal_window_open.html. r=ckerschb
...
See the test in
http://searchfox.org/mozilla-central/rev/fdb811340ac4e6b93703d72ee99217f3b1d250ac/docshell/test/navigation/test_triggeringprincipal_window_open.html#59
If we turn on the pref, dataWin.onload won't be called as now dataWin is
cross origin, so we change it to use postMessage instead.
2017-06-30 11:06:17 -07:00
Masatoshi Kimura
68794e5c6e
Bug 1376164 - Turn nsDocumentViewer::mHintCharset and mForceCharacterSet into const mozilla::Encoding*. r=hsivonen
...
MozReview-Commit-ID: HTi2eNwDH99
--HG--
extra : rebase_source : 13c702981c188a395b6026883c3731e816f55240
2017-06-25 22:46:08 +09:00
Carsten "Tomcat" Book
4e00eff077
merge mozilla-inbound to mozilla-central a=merge
2017-06-27 10:56:41 +02:00
Bill McCloskey
f115503a0b
Bug 1372405
- Provide names for all runnables in the tree (r=froydnj)
...
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-26 14:19:58 -07:00
Masatoshi Kimura
b515c9c804
Bug 1373984 - Turn nsIDocument::mCharacterSet into mozilla::NotNull<const mozilla::Encoding*>. r=hsivonen
...
MozReview-Commit-ID: GF0YXDwfA14
--HG--
extra : rebase_source : fdae0046f882d47fb539a7f882364e5c5caafdcd
extra : source : 49249788c0dee331ac2989dc39f0505d965a7bd8
2017-06-18 20:37:50 +09:00
Florian Quèze
2924991bf6
Bug 1368456 - remove Promise.jsm imports in tests, r=mconley.
2017-06-23 11:25:52 +02:00
Nicholas Nethercote
f1364a75ea
Bug 1374580 (part 3) - Remove ns{,C}Substring typedefs. r=froydnj.
...
All the instances are converted as follows.
- nsSubstring --> nsAString
- nsCSubstring --> nsACString
--HG--
extra : rebase_source : cfd2238c52e3cb4d13e3bd5ddb80ba6584ab6d91
2017-06-20 19:19:52 +10:00
Samael Wang
eaa22c46f8
Bug 1373604 - Only try to switch focus to targetDocShell if the load succeeds. r=smaug
...
MozReview-Commit-ID: H1TsRcbagg4
2017-06-21 14:54:15 +08:00
Florian Quèze
66f6d259bc
Bug 1374282 - script generated patch to remove Task.jsm calls, r=Mossop.
2017-06-22 12:51:42 +02:00
Carsten "Tomcat" Book
013fb0680e
merge mozilla-inbound to mozilla-central a=merge
2017-06-20 11:26:40 +02:00
Hiroyuki Ikezoe
954618ad23
Bug 1362903 - Use reftest-wait to ensure this test finishes. r=smaug
...
This prevents a subsequent test from being started before this test is finished.
MozReview-Commit-ID: FPgVVMk6qeC
--HG--
extra : rebase_source : 5789af451fe67660f66e8bc0dc0b5dc709918db0
2017-06-19 11:34:15 +09:00
Honza Bambas
9e38f7b8fc
Bug 1319111 - Expose 'result principal URI' on LoadInfo as a source for NS_GetFinalChannelURI (removes some use of LOAD_REPLACE flag). r=bz, r=mikedeboer
...
--HG--
extra : rebase_source : c9690f4b8decd39a10da676bd50ec09cb2ad8892
2017-05-30 18:07:59 +02:00
Kate McKinley
396962011a
Bug 1363546 - Store and report HSTS upgrade source r=francois,keeler,mayhemer p=francois
...
Add a field to the HSTS cache which indicates the source of the HSTS
entry if known, from the preload list, organically seen header, or HSTS
priming, or unknown otherwise. Also adds telemetry to collect the source
when upgrading in NS_ShouldSecureUpgrade.
MozReview-Commit-ID: 3IwyYe3Cn73
--HG--
extra : rebase_source : 9b8daac3aa02bd7a1b4285fb1e5731a817a76b7f
2017-05-23 15:31:37 -07:00
Christoph Kerschbaumer
829704554e
Bug 1370788 - Move XFO out of nsDSURIContentListener.cpp into dom/security. r=smaug
2017-06-19 06:59:44 +02:00
Masatoshi Kimura
838ccc4108
Bug 1369025 - Remove mozilla::dom::EncodingUtils. r=hsivonen
...
MozReview-Commit-ID: 5O5WtxbmATQ
--HG--
rename : dom/encoding/encodingsgroups.properties => intl/locale/encodingsgroups.properties
extra : rebase_source : 13143b43ee745b618e05ed1b6991d69781c2767d
2017-06-17 11:54:40 +09:00
Henri Sivonen
432653453a
Bug 1261841 part 2 - Use encoding_rs instead of uconv. r=emk,mystor.
...
MozReview-Commit-ID: 15Y5GTX98bv
2017-06-13 13:23:23 +03:00
Christoph Kerschbaumer
632fd14dfa
Bug 1024557 - Ignore x-frame-options if CSP with frame-ancestors exists. r=smaug
2017-06-07 21:17:49 +02:00
Christoph Kerschbaumer
86374cab11
Bug 1369014: Do not pass explicitly pass a triggeringPrincipal within nsDocShellTreeOwner::HandleEvent. r=smaug
...
--HG--
extra : rebase_source : 832b69c0edec7f004afdf410e231adb660df0769
2017-06-07 14:25:46 +02:00
Marco Bonardo
dd81367ed0
Bug 1337858 - Replace CopyFavicon in the Docshell with a proper favicons API. r=standard8
...
MozReview-Commit-ID: 8wjSbj0FTwE
--HG--
extra : rebase_source : 9957affac43f7e04dcd94d2fa9cf2d973cd327de
2017-05-18 16:48:23 +02:00
Geoff Brown
c353084858
Bug 1333702 - Allow assertion in test_bug385434.html; r=jmaher
...
Intermittent assertions observed for several months.
2017-06-02 08:46:06 -06:00
Ben Kelly
e89c30f6c4
Bug 1363829 P9 Make docshell chrome tests wait for next paint to avoid races. r=smaug
2017-05-31 17:13:19 -07:00
Christoph Kerschbaumer
d0c653622f
Bug 1357386: Gather telemetry for toplevel data: URI loads. r=dveditz,francois
2017-05-31 20:24:17 +02:00
Christoph Kerschbaumer
3fc12a8c6e
Bug 1363977 - Have loadTabs() provide the correct triggeringPrincipal. r=gijs,smaug
2017-05-29 21:32:21 +02:00
Carsten "Tomcat" Book
bdfe9a25bf
Backed out changeset 2b92af4575ae (bug 1357386)
2017-05-30 08:51:22 +02:00
Christoph Kerschbaumer
74a7c96cd0
Bug 1357386: Have loadTabs() provide the correct triggeringPrincipal. r=gijs,smaug
2017-05-30 08:31:08 +02:00
Julian Descottes
c1a123b391
Bug 1363327 - remove unused config variable MOZ_DEVTOOLS_ALL;r=ochameau
...
The variable MOZ_DEVTOOLS_ALL was only used in order to register about:debugging and should
no longer be needed.
MozReview-Commit-ID: 16di87Cad2n
--HG--
extra : rebase_source : 19be6ea118c00293e36b4a1d7e3441499ecb3c62
2017-05-23 19:38:07 +02:00
Julian Descottes
5fb78f1d7e
Bug 1363327 - register about:debugging dynamically using a manifest;r=ochameau
...
MozReview-Commit-ID: 2WG5zN6p1EK
--HG--
extra : rebase_source : e64de772772242fbae8de186df0f97ba60df92d2
2017-05-26 10:09:42 +02:00
Ryan VanderMeulen
8543438674
Merge inbound to m-c. a=merge
2017-05-25 16:34:16 -04:00
Honza Bambas
b852ed009a
Backout of 7f28c1084c47 (bug 1319111) for security checks breakage, r=me
2017-05-25 18:16:02 +02:00
Samael Wang
cb393d1f72
Bug 1363036 - Part 2: Reject AddEntry / ReplaceEntry if the entry has been associated to another SHistory. Cleanup mHistoryTracker if root docshell changes. r=smaug
...
MozReview-Commit-ID: 9s4dQG18JUN
--HG--
extra : rebase_source : 728dcdc63c11aaf177faa4e093750a69da8175e4
2017-05-22 15:36:06 +08:00
Samael Wang
ecbe18e933
Bug 1363036 - Part 1: Remove MOZ_DIAGNOSTIC_ASSERTs previously added for bug hunting. r=smaug
...
MozReview-Commit-ID: BAkuRlHtMcP
--HG--
extra : rebase_source : 5e708d0dacec9a673851d689d1f5274a0f1b69aa
2017-05-22 11:25:54 +08:00
Honza Bambas
5f3173e90f
Bug 1365306 - Remove net::ThrottlingService, don't suspend/resume download channels on page load. r=hurley
2017-05-18 14:09:00 -04:00
Honza Bambas
2dfe5d94b8
Bug 1319111 - Expose 'result principal URI' on LoadInfo as a source for NS_GetFinalChannelURI (removes some use of LOAD_REPLACE flag). r=bz
2017-05-23 08:09:00 -04:00
Carsten "Tomcat" Book
067f1fa700
Merge mozilla-central to mozilla-inbound
2017-05-18 14:59:47 +02:00
Bob Owen
73b521bf6c
Bug 1351358 Part 1: Add flag to nsISHEntry to indicate if it was originally loaded in this process. r=bz
...
This flag is for when we've loaded a URI in a remote type that is not the default
for compatibility reasons (for example related http in the file content process).
So that we can load the history entry in that same process as well.
2017-05-18 12:08:56 +01:00
Samael Wang
da20faa46e
Bug 1363036 - Add MOZ_DIAGNOSTIC_ASSERTs for bug hunting. r=smaug
...
MozReview-Commit-ID: JPnkkJlkwDY
2017-05-16 10:54:01 +08:00
Geoff Brown
061c806f3d
Bug 1300351 - Fix non-standard manifest annotation; r=me,test-only
...
Just introduced this - did not put spaces in the right place.
2017-05-15 16:17:02 -06:00
Geoff Brown
0f0c36efe3
Bug 1300351 - Disable browser_onbeforeunload_navigation.js on non-debug windows; r=jmaher
2017-05-15 16:02:02 -06:00
Christoph Kerschbaumer
e4f38c8d7c
Bug 1362993 - Rewrite gBrowser.addTab() to use BrowserTestUtils.addTab(). r=florian
2017-05-15 21:49:50 +02:00
Honza Bambas
d6d727a69e
backout of f9abb9c83452 (bug 1319111) for crashes, r=bz
2017-05-13 13:55:11 +02:00
Wes Kocher
0a1e1fe23b
Backed out changeset 95ff98f1c2e5 (bug 1319111) for talos failures a=backout
...
MozReview-Commit-ID: Gs09moFm5rQ
2017-05-12 18:24:42 -07:00
Honza Bambas
70f62bdec1
backout of f9abb9c83452 (bug 1319111) for crashes, r=bz
2017-05-12 22:13:49 +02:00
Christoph Kerschbaumer
8972930163
Bug 1363687 - Have gBrowser.loadOneTab() provide a valid triggeringPrincipal. r=gijs
2017-05-11 08:43:54 +02:00
Wes Kocher
1b5ad2c128
Merge inbound to central, a=merge
...
MozReview-Commit-ID: DfRZi0gKjit
2017-05-10 16:48:03 -07:00
Gijs Kruitbosch
faf81a4714
Bug 1087380 - avoid alternate (www....com) URI fixup for localhost and items with ports, r=bz
...
MozReview-Commit-ID: HB9SxRSWnz
--HG--
extra : rebase_source : 99a9708588b277e31c8082b9579371609fc658d1
2017-05-06 19:59:24 +01:00