Nicholas Nethercote
723f585d9c
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.
2017-08-04 14:40:52 +10:00
Timothy Nikkel
a456c66e85
Backed out changeset 497dbf087ad5 (add diagnostic asserts) (bug 1354933)
2017-07-07 14:54:55 -05:00
Timothy Nikkel
3bab383a09
Back out changeset 43af422173e3 (add diagnostic asserts) (bug 1354933)
2017-06-22 15:40:40 -05:00
Bevis Tseng
2ecbda13e2
Bug 1378930 - Part 2: Remove the aName parameter from SchedulerGroup/DocGroup/DispatcherTrait. r=billm
2017-07-26 16:13:35 +08:00
Jared Wein
eb319011a3
Bug 1383662 - Only dispatch TextZoomChange events if the zoom level has changed. r=Felipe
...
MozReview-Commit-ID: 8reTfu6R5s3
2017-07-24 11:15:03 -04:00
Masayuki Nakano
db6712675e
Bug 1376693 - part3: Make callers of nsPrintEngine::Print() and nsPrintEngine::PrintPreview() guarantee that instance of nsPrintEngine won't be deleted during the calls r=dholbert
...
This patch makes callers of nsPrintEngine::Print() and
nsPrintEngine::PrintPreview() grab the nsPrintEngine instance with local
variable before calling them. That guarantees that instance of nPrintEngine
won't be deleted during the calls. (We already had a RefPtr in CommonPrint
that basically did this. This patch moves it out to the callers to strengthen
its guarantee.)
MozReview-Commit-ID: 2jlYC4RKAg6
2017-07-19 14:06:04 +09:00
Boris Zbarsky
e09114d150
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
Sylvestre Ledru
9d4a84d778
Bug 1378712 - Remove all trailing whitespaces r=Ehsan
...
MozReview-Commit-ID: Kdz2xtTF9EG
2017-07-06 14:00:35 +02:00
Cameron McCormack
0d5d83a54e
Bug 1362924 - Part 2: Add script blockers around remaining PresShell::{Destroy,Initialize} calls to protect against re-entrant nsDocumentViewer calls. r=tnikkel
...
MozReview-Commit-ID: G0lUGsNLb2b
2017-06-28 09:35:45 -04:00
Carsten "Tomcat" Book
f66a9b5521
Backed out changeset d9b2f155996d (bug 1362924)
2017-06-28 15:46:35 +02:00
Cameron McCormack
0e1fed4aa4
Bug 1362924 - Part 2: Add script blockers around remaining PresShell::{Destroy,Initialize} calls to protect against re-entrant nsDocumentViewer calls. r=tnikkel
...
MozReview-Commit-ID: G0lUGsNLb2b
2017-06-28 09:35:45 -04:00
Masatoshi Kimura
3f4ffc616a
Bug 1376164 - Turn nsDocumentViewer::mHintCharset and mForceCharacterSet into const mozilla::Encoding*. r=hsivonen
...
MozReview-Commit-ID: HTi2eNwDH99
2017-06-25 22:46:08 +09:00
Cameron McCormack
bfb8c04b71
Bug 1373874 - stylo: Clear Servo data from NAC created by position:fixed replicated frames too. r=bz
...
We don't need the call to ClearServoDataFromSubtree in
nsDocumentViewer::SetPageMode because the pres shell destruction
will call BeginShutdown on the style set, which will do it for us.
MozReview-Commit-ID: ErSAyr3l0wm
2017-06-18 17:57:55 +08:00
Masatoshi Kimura
1fd69c2f1a
Bug 1369025 - Remove mozilla::dom::EncodingUtils. r=hsivonen
...
MozReview-Commit-ID: 5O5WtxbmATQ
2017-06-17 11:54:40 +09:00
Alexis Beingessner
3117218f13
Bug 1088760 - Remove nsRenderingContext, replacing all of its uses with gfxContext. r=jwatt,jrmuizel
...
MozReview-Commit-ID: K1WUIOnvazF
2017-06-13 11:00:10 -04:00
Sebastian Hengst
1b1d14e565
Backed out changeset 3d1ce85e6348 (bug 1088760) for bustage, at least on Android at layout/generic/nsPluginFrame.cpp:1612. r=backout
2017-06-13 00:30:03 +02:00
Alexis Beingessner
c6fbc5e17e
Bug 1088760 - Remove nsRenderingContext, replacing all of its uses with gfxContext. r=jwatt,jrmuizel
...
MozReview-Commit-ID: K1WUIOnvazF
2017-06-12 17:32:48 -04:00
Timothy Nikkel
e10af9e2a5
Bug 1354933. Add some asserts for document viewer teardown. r=mats
2017-06-03 01:31:12 -05:00
Masayuki Nakano
7e490a72a1
Bug 1354443 part.3 While nsDocumentViewer is destroying mPrintEngine, null out its pointer & transfer ownership to local var r=dholbert
...
MozReview-Commit-ID: ALRlOC07SY2
2017-04-28 16:25:01 +09:00
Olli Pettay
68f120583d
Bug 1363396, ensure ContentViewer listeners are handled only when needed, r=mccr8
2017-05-11 02:20:27 +03:00
Bevis Tseng
769ea3d11b
Bug 1356558 - Do not run ScriptRunner in the intermediate state before destroying PreShell, PresContext, etc at nsDocumentViewer::Hide() is done. r=bz
...
Do not run ScriptRunners queued by DestroyPresShell() in the intermediate state
before we're done destroying PresShell, PresContext, ViewManager, etc.
MozReview-Commit-ID: LNP7Lp7zekS
2017-04-24 19:13:18 +08:00
Aryeh Gregor
649622abe1
Bug 1358893 - Stop using document.createEvent("beforeunloadevent") internally; r=smaug
...
We want to see if we can drop support due to web pages not using it.
Edge and Safari already don't support it, and Chrome reports that usage
is low enough that they're willing to drop it. But telemetry doesn't
tell us about web usage if we're triggering it via our own internal
code.
MozReview-Commit-ID: 5YBfhQJExHC
2017-04-23 18:18:56 +03:00
Emilio Cobos Álvarez
643f3f8618
Bug 1361051: rename mozilla::FrameType to mozilla::LayoutFrameType. r=xidorn
...
This avoids conflicts with mozilla::dom::FrameType.
MozReview-Commit-ID: 7aEMbHRaTFk
2017-05-01 19:32:52 +02:00
Emilio Cobos Álvarez
3731858edf
Bug 1360241: Devirtualize nsIFrame::GetType. r=heycam
...
MozReview-Commit-ID: 5Nzhyta5Hle
2017-04-30 17:30:08 +02:00
Timothy Nikkel
e16c11262c
Bug 1354933. Add annotation if the view is for a printing document if the view has a frame in its destructor. r=mats
2017-04-27 17:50:00 -05:00
Nicolas B. Pierron
754ef645c3
Bug 900784 part 1.5 - Encode JS bytecode when no more scripts are executed. r=mrbkap
2017-04-21 16:57:58 +00:00
Botond Ballo
6fc7c274ee
Bug 1312697 - Do not consider the page to be finished loading if it's in the 'stopped' state. r=tnikkel
...
MozReview-Commit-ID: 2rnvkwsmQCQ
2017-02-14 16:58:34 -05:00
Jan Henning
bca286138d
Bug 1328868 - Part 3 - Make the effective text zoom retrievable from JS. r=tnikkel
...
We want to read this value during testing.
MozReview-Commit-ID: FVA7VdvSTEt
2017-02-25 19:27:15 +01:00
KuoE0
135fb38f65
Bug 1342863 - (Part 4) DocGroup labeling for runnables dispatched by NS_DispatchTo(Main|Current)Thread in nsDocumentViewer. r=dholbert
...
MozReview-Commit-ID: 9f32OTpim7V
2017-03-15 12:08:32 +08:00
Carsten "Tomcat" Book
037f41844d
Backed out changeset 1b57aaf3cb59 (bug 1342863)
2017-03-23 08:41:31 +01:00
KuoE0
f67a9cba18
Bug 1342863 - (Part 4) DocGroup labeling for runnables dispatched by NS_DispatchTo(Main|Current)Thread in nsDocumentViewer. r=dholbert
...
MozReview-Commit-ID: 9f32OTpim7V
2017-03-15 12:08:32 +08:00
Ting-Yu Lin
900bd55b15
Bug 1338446 Part 3 - Label SheetLoadData in Loader::PostLoadEvent. r=heycam
...
When constructing a Loader without passing a document, we added a DocGroup
parameter so that we could still use it to dispatch events to the DocGroup.
Delete NS_ENSURE_TRUE because new() is infallable.
Use another runnable pointer for calling dispatching because forget() will
nuke the pointer and we need to use evt afterwards.
MozReview-Commit-ID: Ce2K6j4pUhA
2017-03-13 17:00:57 +08:00
Kan-Ru Chen
51360ecea9
Bug 1346161 - Remove HANDLE_UNLOAD_MS and HANDLE_BEFOREUNLOAD_MS telemetry probes. r=smaug
...
MozReview-Commit-ID: 91WAGDKAAMu
2017-03-13 14:47:29 +08:00
Jessica Jong
be4c818826
Bug 1340086 - Remove uses of AnimationsPaused() since it is always false after bug 1316330. r=mrbkap
2017-02-22 01:00:00 -05:00
Cameron McCormack
b16e5f7bca
Bug 1337258 - Support ServoStyleSheets in nsStyleSheetService. r=xidorn
...
MozReview-Commit-ID: 4vaHzDBZHFg
2017-02-21 10:42:27 +08:00
Bill McCloskey
f79edeabc9
Bug 1339289 - Give names to a lot of common runnables (r=ehsan)
...
MozReview-Commit-ID: 5IdvK6kgoAW
2017-02-15 12:30:01 -08:00
Olli Pettay
077c9fbfff
Bug 1110928, trigger ZoneGC after evicting from bfcache, r=mccr8
2017-01-23 19:25:13 +02:00
a4d85ed9fb
Bug 1110928, part 4 - Try to pass a relevant zone to PokeGC. r=smaug
2017-01-23 19:22:26 +02:00
Andrew McCreight
13f754c9a1
Bug 1110928, part 2 - Call PokeGC in nsDocumentViewer::PageHide before the call to OnPageHide. r=smaug
...
This ensures that the document isn't destroyed when we call PokeGC, which will be useful later.
2017-01-23 19:21:13 +02:00
Andrew McCreight
9b8a0478d7
Bug 1110928, part 1 - Hoist the LOAD_END PokeGC out of nsJSContext::LoadEnd. r=smaug
...
nsDocumentViewer knows which document is involved which will help us later.
Also, fix a typo in the comment.
2017-01-23 19:20:54 +02:00
Julian Seward
ce27f2a170
Bug 1232696 - Remove NS_DECL_AND_IMPL_ZEROING_OPERATOR_NEW as it causes segfaulting for GCC 6 builds (3 of 5, fixes for layout/). r=dholbert.
2017-01-24 17:11:13 +01:00
Wes Kocher
a5b654a9fa
Backed out 6 changesets (bug 1110928) for valgrind failures a=backout
...
Backed out changeset 97a60b61a65a (bug 1110928)
Backed out changeset 5b62dda2ebd0 (bug 1110928)
Backed out changeset b587547a6df1 (bug 1110928)
Backed out changeset fb7cb3957c0d (bug 1110928)
Backed out changeset 41d7f44db1ee (bug 1110928)
Backed out changeset e809ddd9c7db (bug 1110928)
MozReview-Commit-ID: L0DCJ0HD1sG
2017-01-23 17:34:23 -08:00
Olli Pettay
467ec658b0
Bug 1110928, trigger ZoneGC after evicting from bfcache, r=mccr8
2017-01-23 19:25:13 +02:00
8c35a4c4ec
Bug 1110928, part 4 - Try to pass a relevant zone to PokeGC. r=smaug
2017-01-23 19:22:26 +02:00
Andrew McCreight
8d51bd0207
Bug 1110928, part 2 - Call PokeGC in nsDocumentViewer::PageHide before the call to OnPageHide. r=smaug
...
This ensures that the document isn't destroyed when we call PokeGC, which will be useful later.
2017-01-23 19:21:13 +02:00
Andrew McCreight
86148982a7
Bug 1110928, part 1 - Hoist the LOAD_END PokeGC out of nsJSContext::LoadEnd. r=smaug
...
nsDocumentViewer knows which document is involved which will help us later.
Also, fix a typo in the comment.
2017-01-23 19:20:54 +02:00
Dalmir da Silva
a87a488465
Bug 1308461 - Prevent dispatch of nested or multiple pairs of beforeprint/afterprint events. r=jwatt,dholbert
2017-01-07 00:13:56 +00:00
Cameron McCormack
5f9911da79
Bug 1328832 - Part 2: Rename mozFlushType to mozilla::FlushType and make it an enum class. r=bzbarsky
...
MozReview-Commit-ID: D3fIngSHSsl
2017-01-05 15:31:56 +08:00
Bobby Holley
3775205e64
Bug 1317016 - Basic infrastructure for RestyleHint-driven traversal. r=emilio
...
MozReview-Commit-ID: 7wH5XcILVmX
2016-11-25 10:06:39 -08:00
Wes Kocher
fe11464d41
Backed out changeset 41f004509646 (bug 1315394) for android crashtest assertions a=backout
2016-11-11 11:17:53 -08:00